clarify the meaning of the version number for accepted/removed features

This commit is contained in:
Ralf Jung
2024-07-14 08:18:03 +02:00
parent c1e3f03e60
commit 2dd5369eda
3 changed files with 14 additions and 0 deletions

View File

@@ -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>>,
}