diff options
| author | Ralf Jung <post@ralfj.de> | 2024-07-14 08:18:03 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-07-14 08:18:03 +0200 |
| commit | 2dd5369eda4337f44a8bb666bfd38b2c5e3b0fde (patch) | |
| tree | 7de7922ebcdfb5916387cdc6ce2ad2318da5e500 /compiler/rustc_feature/src/lib.rs | |
| parent | c1e3f03e602a7af08049f38ffafa09622f28e1d0 (diff) | |
| download | rust-2dd5369eda4337f44a8bb666bfd38b2c5e3b0fde.tar.gz rust-2dd5369eda4337f44a8bb666bfd38b2c5e3b0fde.zip | |
clarify the meaning of the version number for accepted/removed features
Diffstat (limited to 'compiler/rustc_feature/src/lib.rs')
| -rw-r--r-- | compiler/rustc_feature/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/lib.rs b/compiler/rustc_feature/src/lib.rs index bf429364318..e9d3ce0a074 100644 --- a/compiler/rustc_feature/src/lib.rs +++ b/compiler/rustc_feature/src/lib.rs @@ -31,6 +31,10 @@ use std::num::NonZero; #[derive(Debug, Clone)] pub struct Feature { pub name: Symbol, + /// For unstable features: the version the feature was added in. + /// For accepted features: the version the feature got stabilized in. + /// For removed features we are inconsistent; sometimes this is the + /// version it got added, sometimes the version it got removed. pub since: &'static str, issue: Option<NonZero<u32>>, } |
