Rename the 2018 edition lint names · rust-lang/rust@d636aec (original) (raw)
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -179,7 +179,7 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) { | ||
179 | 179 | UNUSED_PARENS); |
180 | 180 | |
181 | 181 | add_lint_group!(sess, |
182 | -"rust_2018_migration", | |
182 | +"rust_2018_idioms", | |
183 | 183 | BARE_TRAIT_OBJECT, |
184 | 184 | UNREACHABLE_PUB, |
185 | 185 | UNNECESSARY_EXTERN_CRATE); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -50,8 +50,8 @@ impl fmt::Display for Edition { | ||
50 | 50 | impl Edition { |
51 | 51 | pub fn lint_name(&self) -> &'static str { |
52 | 52 | match *self { |
53 | -Edition::Edition2015 => "rust_2015_breakage", | |
54 | -Edition::Edition2018 => "rust_2018_breakage", | |
53 | +Edition::Edition2015 => "rust_2015_compatibility", | |
54 | +Edition::Edition2018 => "rust_2018_compatibility", | |
55 | 55 | } |
56 | 56 | } |
57 | 57 |