Skip to content

Commit

Permalink
remove NRT feature spec (#43686)
Browse files Browse the repository at this point in the history
* remove NRT feature spec

The Nullable Reference Types features have been merged into the draft standard.

Remove the feature specs from our platform, and update any section anchors.

* warnings, part 1

Fix warnings, part 1.

* warnings, part 2
  • Loading branch information
BillWagner authored Nov 21, 2024
1 parent 8a99fd3 commit 4b1213f
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 12 deletions.
24 changes: 24 additions & 0 deletions .openpublishing.redirection.csharp.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@
"source_path_from_root": "/redirections/proposals/csharp-7.3/tuple-equality.md",
"redirect_url": "/dotnet/csharp/language-reference/language-specification/expressions#121211-tuple-equality-operators"
},
{
"source_path_from_root": "/redirections/proposals/csharp-8.0/nullable-reference-types.md",
"redirect_url": "/dotnet/csharp/language-reference/language-specification/types.md#893-nullable-reference-types"
},
{
"source_path_from_root": "/redirections/proposals/csharp-9.0/nullable-reference-types-specification.md",
"redirect_url": "/dotnet/csharp/language-reference/language-specification/types.md#893-nullable-reference-types"
},
{
"source_path_from_root": "/redirections/proposals/csharp-10.0/generic-attributes.md",
"redirect_url": "/dotnet/csharp/language-reference/proposals/csharp-11.0/generic-attributes"
Expand Down Expand Up @@ -1378,6 +1386,22 @@
"source_path_from_root": "/docs/csharp/language-reference/proposals/csharp-8.0/static-local-functions.md",
"redirect_url": "/dotnet/csharp/language-reference/language-specification/statements.md#1364-local-function-declarations"
},
{
"source_path_from_root": "/docs/csharp/language-reference/proposals/csharp-8.0/nullable-reference-types.md",
"redirect_url": "/dotnet/csharp/language-reference/language-specification/types.md#893-nullable-reference-types"
},
{
"source_path_from_root": "/docs/csharp/language-reference/proposals/csharp-9.0/nullable-reference-types-specification.md",
"redirect_url": "/dotnet/csharp/language-reference/language-specification/types.md#893-nullable-reference-types"
},
{
"source_path_from_root": "/docs/csharp/language-reference/proposals/csharp-9.0/nullable-constructor-analysis.md",
"redirect_url": "/dotnet/csharp/language-reference/language-specification/types.md#893-nullable-reference-types"
},
{
"source_path_from_root": "/docs/csharp/language-reference/proposals/csharp-9.0/nullable-parameter-default-value-analysis.md",
"redirect_url": "/dotnet/csharp/language-reference/language-specification/types.md#893-nullable-reference-types"
},
{
"source_path_from_root": "/docs/csharp/language-reference/proposals/csharp-9.0/index.md",
"redirect_url": "/dotnet/csharp/language-reference/proposals/csharp-9.0/records"
Expand Down
10 changes: 5 additions & 5 deletions docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@
"csharp-8.0/shadowing-in-nested-functions.md",
"csharp-8.0/static-local-functions.md",
"csharp-8.0/unconstrained-null-coalescing.md",
"csharp-8.0/nullable-reference-types-specification.md"
"csharp-8.0/nullable-reference-types.md",
"csharp-8.0/nullable-reference-types-specification.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"
]
},
{
Expand Down Expand Up @@ -599,7 +603,6 @@
"_csharpstandard/standard/standard-library.md": "Standard library",
"_csharpstandard/standard/documentation-comments.md": "Documentation comments",
"_csharpstandard/standard/Bibliography.md": "Bibliography",
"_csharplang/proposals/csharp-8.0/nullable-reference-types.md": "Null reference types - proposal",
"_csharplang/proposals/csharp-8.0/patterns.md": "Recursive pattern matching",
"_csharplang/proposals/csharp-8.0/default-interface-methods.md": "Default interface methods",
"_csharplang/proposals/csharp-8.0/async-streams.md": "Async streams",
Expand All @@ -617,7 +620,6 @@
"_csharplang/proposals/csharp-9.0/local-function-attributes.md": "Attributes on local functions",
"_csharplang/proposals/csharp-9.0/module-initializers.md": "Module initializers",
"_csharplang/proposals/csharp-9.0/native-integers.md": "Native sized integers",
"_csharplang/proposals/csharp-9.0/nullable-reference-types-specification.md": "Nullable reference types - specification",
"_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",
Expand Down Expand Up @@ -722,7 +724,6 @@
"_csharpstandard/standard/standard-library.md": "This appendix lists requirements of the specification library. The C# language relies on these types for some of its behavior.",
"_csharpstandard/standard/documentation-comments.md": "This appendix describes XML comments that are used to document your program.",
"_csharpstandard/standard/Bibliography.md": "This appendix lists external standards referenced in this specification.",
"_csharplang/proposals/csharp-8.0/nullable-reference-types.md": "This feature specification describes nullable reference types.",
"_csharplang/proposals/csharp-8.0/patterns.md": "This feature specification describes recursive pattern matching, where patterns can nest inside other patterns.",
"_csharplang/proposals/csharp-8.0/default-interface-methods.md": "This feature specification describe the syntax updates necessary to support default interface methods. This includes declaring bodies in interface declarations, and supporting modifiers on declarations.",
"_csharplang/proposals/csharp-8.0/async-streams.md": "This feature specification describes async streams, which return streams of data asynchronously, typically as each element is produced or available.",
Expand All @@ -740,7 +741,6 @@
"_csharplang/proposals/csharp-9.0/local-function-attributes.md": "This feature specification describes rules to apply attributes on local functions.",
"_csharplang/proposals/csharp-9.0/module-initializers.md": "This feature specification describes how to declare module initializers, which are methods called by the runtime when a module, or assembly, is loaded.",
"_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/nullable-reference-types-specification.md": "This feature specification provides a more complete specification for nullable reference 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.",
Expand Down
3 changes: 1 addition & 2 deletions docs/csharp/nullable-references.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,7 @@ In the preceding example, the declaration of the array shows it holds non-nullab

## See also

- [Nullable reference types proposal](~/_csharplang/proposals/csharp-8.0/nullable-reference-types.md)
- [Draft nullable reference types specification](~/_csharplang/proposals/csharp-9.0/nullable-reference-types-specification.md)
- [Nullable reference types specification](~/_csharpstandard/standard/types.md#893-nullable-reference-types)
- [Unconstrained type parameter annotations](~/_csharplang/proposals/csharp-9.0/unconstrained-type-parameter-annotations.md)
- [Intro to nullable references tutorial](tutorials/nullable-reference-types.md)
- [**Nullable** (C# Compiler option)](language-reference/compiler-options/language.md#nullable)
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/specification/feature-spec-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ms.date: 05/08/2024
---
# Feature specifications

Because the [C# standard specification](overview.md) has fallen behind the latest C# implementation, this section contains the [Microsoft specifications](~/_csharplang/proposals/csharp-8.0/nullable-reference-types.md) for those newer features that haven't yet been incorporated into the standard. You can read these specifications to get information on newer features.
Because the [C# standard specification](overview.md) has fallen behind the latest C# implementation, this section contains the [Microsoft specifications](~/_csharplang/proposals/csharp-10.0/enhanced-line-directives.md) for those newer features that haven't yet been incorporated into the standard. You can read these specifications to get information on newer features.

The feature specifications began as proposals for the design. They include proposed changes to the standard. The C# language design team and compiler team produce these feature specifications. The purpose of the proposals is to guide the design and implementation of the feature. They might include proposed features that haven't yet been implemented. The actual implementation might have modified behavior. Those changes are captured in the language design meeting (LDM) notes. The LDM notes are the minutes of the language design meetings. In most cases, the pertinent LDM notes are linked from the feature specifications.

Expand Down
4 changes: 0 additions & 4 deletions docs/csharp/specification/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ items:
href: ../../../_csharplang/proposals/csharp-9.0/skip-localsinit.md
- name: Types
items:
- name: Nullable reference types - proposal
href: ../../../_csharplang/proposals/csharp-8.0/nullable-reference-types.md
- name: Nullable reference types - specification
href: ../../../_csharplang/proposals/csharp-9.0/nullable-reference-types-specification.md
- name: Records
href: ../../../_csharplang/proposals/csharp-9.0/records.md
- name: Record structs
Expand Down

0 comments on commit 4b1213f

Please sign in to comment.