@@ -40,7 +40,7 @@ extern crate rustc_target;
40
40
extern crate syntax_pos;
41
41
42
42
use 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 } ;
44
44
use rustc:: session;
45
45
use rustc:: util;
46
46
@@ -174,17 +174,17 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
174
174
UNUSED_ATTRIBUTES ,
175
175
UNUSED_MACROS ,
176
176
UNUSED_ALLOCATION ,
177
- UNUSED_DOC_COMMENT ,
177
+ UNUSED_DOC_COMMENTS ,
178
178
UNUSED_EXTERN_CRATES ,
179
179
UNUSED_FEATURES ,
180
180
UNUSED_LABELS ,
181
181
UNUSED_PARENS ) ;
182
182
183
183
add_lint_group ! ( sess,
184
184
"rust_2018_idioms" ,
185
- BARE_TRAIT_OBJECT ,
185
+ BARE_TRAIT_OBJECTS ,
186
186
UNREACHABLE_PUB ,
187
- UNNECESSARY_EXTERN_CRATE ) ;
187
+ UNNECESSARY_EXTERN_CRATES ) ;
188
188
189
189
// Guidelines for creating a future incompatibility lint:
190
190
//
@@ -272,14 +272,14 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
272
272
edition: Some ( Edition :: Edition2018 ) ,
273
273
} ,
274
274
FutureIncompatibleInfo {
275
- id: LintId :: of( UNSTABLE_NAME_COLLISION ) ,
275
+ id: LintId :: of( UNSTABLE_NAME_COLLISIONS ) ,
276
276
reference: "issue #48919 <https://github.com/rust-lang/rust/issues/48919>" ,
277
277
edition: None ,
278
278
// Note: this item represents future incompatibility of all unstable functions in the
279
279
// standard library, and thus should never be removed or changed to an error.
280
280
} ,
281
281
FutureIncompatibleInfo {
282
- id: LintId :: of( ABSOLUTE_PATH_NOT_STARTING_WITH_CRATE ) ,
282
+ id: LintId :: of( ABSOLUTE_PATHS_NOT_STARTING_WITH_CRATE ) ,
283
283
reference: "issue TBD" ,
284
284
edition: Some ( Edition :: Edition2018 ) ,
285
285
} ,
@@ -291,6 +291,11 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
291
291
] ) ;
292
292
293
293
// 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" ) ;
294
299
store. register_renamed ( "unknown_features" , "unused_features" ) ;
295
300
store. register_removed ( "unsigned_negation" , "replaced by negate_unsigned feature gate" ) ;
296
301
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>) {
325
330
"converted into hard error, see https://github.com/rust-lang/rust/issues/48950" ) ;
326
331
store. register_removed ( "resolve_trait_on_defaulted_unit" ,
327
332
"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`" ) ;
330
333
}
0 commit comments