We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c79776 commit 889f5abCopy full SHA for 889f5ab
src/cargo/util/lints.rs
@@ -199,13 +199,15 @@ pub struct LintGroup {
199
pub default_level: LintLevel,
200
pub desc: &'static str,
201
pub edition_lint_opts: Option<(Edition, LintLevel)>,
202
+ pub feature_gate: Option<&'static Feature>,
203
}
204
205
const TEST_DUMMY_UNSTABLE: LintGroup = LintGroup {
206
name: "test_dummy_unstable",
207
desc: "test_dummy_unstable is meant to only be used in tests",
208
default_level: LintLevel::Allow,
209
edition_lint_opts: None,
210
+ feature_gate: Some(Feature::test_dummy_unstable()),
211
};
212
213
#[derive(Copy, Clone, Debug)]
0 commit comments