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 c94e774 commit 81ec9e6Copy full SHA for 81ec9e6
src/cargo/util/lints.rs
@@ -220,13 +220,15 @@ pub struct LintGroup {
220
pub default_level: LintLevel,
221
pub desc: &'static str,
222
pub edition_lint_opts: Option<(Edition, LintLevel)>,
223
+ pub feature_gate: Option<&'static Feature>,
224
}
225
226
const TEST_DUMMY_UNSTABLE: LintGroup = LintGroup {
227
name: "test_dummy_unstable",
228
desc: "test_dummy_unstable is meant to only be used in tests",
229
default_level: LintLevel::Allow,
230
edition_lint_opts: None,
231
+ feature_gate: Some(Feature::test_dummy_unstable()),
232
};
233
234
#[derive(Copy, Clone, Debug)]
0 commit comments