Use FutureIncompatibilityReason to denote edition

This commit is contained in:
lrh2000 2021-06-26 23:40:07 +08:00
parent 2bcd663100
commit e9fc942b4d

View file

@ -3296,7 +3296,7 @@ declare_lint! {
"identifiers that will be parsed as a prefix in Rust 2021",
@future_incompatible = FutureIncompatibleInfo {
reference: "issue #84978 <https://github.com/rust-lang/rust/issues/84978>",
edition: Some(Edition::Edition2021),
reason: FutureIncompatibilityReason::EditionError(Edition::Edition2021),
};
crate_level_only
}