@@ -40,7 +40,7 @@ extern crate rustc_target;
4040extern crate syntax_pos;
4141
4242use rustc:: lint;
43- use rustc:: lint:: builtin:: { BARE_TRAIT_OBJECT , ABSOLUTE_PATH_NOT_STARTING_WITH_CRATE } ;
43+ use rustc:: lint:: builtin:: { BARE_TRAIT_OBJECTS , ABSOLUTE_PATHS_NOT_STARTING_WITH_CRATE } ;
4444use rustc:: session;
4545use rustc:: util;
4646
@@ -174,17 +174,17 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
174174 UNUSED_ATTRIBUTES ,
175175 UNUSED_MACROS ,
176176 UNUSED_ALLOCATION ,
177- UNUSED_DOC_COMMENT ,
177+ UNUSED_DOC_COMMENTS ,
178178 UNUSED_EXTERN_CRATES ,
179179 UNUSED_FEATURES ,
180180 UNUSED_LABELS ,
181181 UNUSED_PARENS ) ;
182182
183183 add_lint_group ! ( sess,
184184 "rust_2018_idioms" ,
185- BARE_TRAIT_OBJECT ,
185+ BARE_TRAIT_OBJECTS ,
186186 UNREACHABLE_PUB ,
187- UNNECESSARY_EXTERN_CRATE ) ;
187+ UNNECESSARY_EXTERN_CRATES ) ;
188188
189189 // Guidelines for creating a future incompatibility lint:
190190 //
@@ -272,14 +272,14 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
272272 edition: Some ( Edition :: Edition2018 ) ,
273273 } ,
274274 FutureIncompatibleInfo {
275- id: LintId :: of( UNSTABLE_NAME_COLLISION ) ,
275+ id: LintId :: of( UNSTABLE_NAME_COLLISIONS ) ,
276276 reference: "issue #48919 <https://github.com/rust-lang/rust/issues/48919>" ,
277277 edition: None ,
278278 // Note: this item represents future incompatibility of all unstable functions in the
279279 // standard library, and thus should never be removed or changed to an error.
280280 } ,
281281 FutureIncompatibleInfo {
282- id: LintId :: of( ABSOLUTE_PATH_NOT_STARTING_WITH_CRATE ) ,
282+ id: LintId :: of( ABSOLUTE_PATHS_NOT_STARTING_WITH_CRATE ) ,
283283 reference: "issue TBD" ,
284284 edition: Some ( Edition :: Edition2018 ) ,
285285 } ,
@@ -291,6 +291,11 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
291291 ] ) ;
292292
293293 // Register renamed and removed lints
294+ store. register_renamed ( "single_use_lifetime" , "single_use_lifetimes" ) ;
295+ store. register_renamed ( "elided_lifetime_in_path" , "elided_lifetimes_in_paths" ) ;
296+ store. register_renamed ( "bare_trait_object" , "bare_trait_objects" ) ;
297+ store. register_renamed ( "unstable_name_collision" , "unstable_name_collisions" ) ;
298+ store. register_renamed ( "unused_doc_comment" , "unused_doc_comments" ) ;
294299 store. register_renamed ( "unknown_features" , "unused_features" ) ;
295300 store. register_removed ( "unsigned_negation" , "replaced by negate_unsigned feature gate" ) ;
296301 store. register_removed ( "negate_unsigned" , "cast a signed value instead" ) ;
@@ -325,6 +330,4 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
325330 "converted into hard error, see https://github.com/rust-lang/rust/issues/48950" ) ;
326331 store. register_removed ( "resolve_trait_on_defaulted_unit" ,
327332 "converted into hard error, see https://github.com/rust-lang/rust/issues/48950" ) ;
328- store. register_removed ( "absolute_path_starting_with_module" ,
329- "renamed to `absolute_path_not_starting_with_crate`" ) ;
330333}
0 commit comments