Skip to content

Commit

Permalink
Fixes dotnet#44167
Browse files Browse the repository at this point in the history
The `skiplocalsinit` flag is a compiler feature that is already documented in the compiler switches section. It's not a *language feature*, so remove the speclet from publication in the standard section.
  • Loading branch information
BillWagner committed Jan 9, 2025
1 parent 97e9294 commit 4a77ee6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"csharp-8.0/nested-stackalloc.md",
"csharp-9.0/nullable-reference-types-specification.md",
"csharp-9.0/nullable-constructor-analysis.md",
"csharp-9.0/nullable-parameter-default-value-analysis.md"
"csharp-9.0/nullable-parameter-default-value-analysis.md",
"csharp-9.0/skip-localsinit.md"
]
},
{
Expand Down Expand Up @@ -625,7 +626,6 @@
"_csharplang/proposals/csharp-9.0/native-integers.md": "Native sized integers",
"_csharplang/proposals/csharp-9.0/patterns3.md": "Pattern matching changes",
"_csharplang/proposals/csharp-9.0/records.md": "Records",
"_csharplang/proposals/csharp-9.0/skip-localsinit.md": "Suppress emitting localsinit flag",
"_csharplang/proposals/csharp-9.0/static-anonymous-functions.md": "Static anonymous functions",
"_csharplang/proposals/csharp-9.0/target-typed-conditional-expression.md": "Target-typed conditional expression",
"_csharplang/proposals/csharp-9.0/target-typed-new.md": "Target-typed new expressions",
Expand Down Expand Up @@ -745,7 +745,6 @@
"_csharplang/proposals/csharp-9.0/native-integers.md": "This feature specification describes native sized integers, which are integer types that use the processor's natural integral types.",
"_csharplang/proposals/csharp-9.0/patterns3.md": "This feature specification describes the additional pattern matching syntax added in C# 9.0. This includes relational patterns, 'and' and 'or' patterns, negated patterns and parenthesized patterns.",
"_csharplang/proposals/csharp-9.0/records.md": "This feature specification describes records. Records are reference types that provide value based equality semantics.",
"_csharplang/proposals/csharp-9.0/skip-localsinit.md": "This feature specification describes a performance enhancement to suppress emitting localsinit flag. This will prevent the runtime from initializing memory to 0 as part of allocating it.",
"_csharplang/proposals/csharp-9.0/static-anonymous-functions.md": "This feature specification describes static anonymous functions. Static anonymous functions are lambda expressions that are prohibited from accessing variables in the enclosing scope. That prevents them from creating a closure.",
"_csharplang/proposals/csharp-9.0/target-typed-conditional-expression.md": "This feature specification describes syntax rules to find a best match for the target of a conditional expression (?:).",
"_csharplang/proposals/csharp-9.0/target-typed-new.md": "This feature specification describes the enhancements to 'new' where the target type can be inferred from the variable declaration.",
Expand Down
2 changes: 0 additions & 2 deletions docs/csharp/specification/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ items:
href: ../../../_csharplang/proposals/csharp-9.0/top-level-statements.md
- name: Module initializers
href: ../../../_csharplang/proposals/csharp-9.0/module-initializers.md
- name: Suppress emitting localsinit flag
href: ../../../_csharplang/proposals/csharp-9.0/skip-localsinit.md
- name: Types
items:
- name: Records
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/whats-new/csharp-version-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ C# 9 was released with .NET 5. It's the default language version for any assembl
- [Performance and interop](#performance-and-interop)
- [Native sized integers](~/_csharplang/proposals/csharp-9.0/native-integers.md)
- [Function pointers](~/_csharplang/proposals/csharp-9.0/function-pointers.md)
- [Suppress emitting localsinit flag](~/_csharplang/proposals/csharp-9.0/skip-localsinit.md)
- [Suppress emitting localsinit flag](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-9.0/skip-localsinit.md)
- [Module initializers](~/_csharplang/proposals/csharp-9.0/module-initializers.md)
- [New features for partial methods](~/_csharplang/proposals/csharp-9.0/extending-partial-methods.md)
- [Fit and finish features](#fit-and-finish-features)
Expand Down

0 comments on commit 4a77ee6

Please sign in to comment.