@@ -256,6 +256,14 @@ mod reexport {
256
256
crate use syntax:: ast:: { Name , NodeId } ;
257
257
}
258
258
259
+ /// Register all pre expansion lints
260
+ ///
261
+ /// Pre-expansion lints run before any macro expansion has happened.
262
+ ///
263
+ /// Note that due to the architechture of the compiler, currently `cfg_attr` attributes will still
264
+ /// be expanded even when using a pre-expansion pass.
265
+ ///
266
+ /// Used in `./src/driver.rs`.
259
267
pub fn register_pre_expansion_lints (
260
268
session : & rustc:: session:: Session ,
261
269
store : & mut rustc:: lint:: LintStore ,
@@ -280,6 +288,7 @@ pub fn register_pre_expansion_lints(
280
288
store. register_pre_expansion_pass ( Some ( session) , true , false , box dbg_macro:: Pass ) ;
281
289
}
282
290
291
+ #[ doc( hidden) ]
283
292
pub fn read_conf ( reg : & rustc_plugin:: Registry < ' _ > ) -> Conf {
284
293
match utils:: conf:: file_from_args ( reg. args ( ) ) {
285
294
Ok ( file_name) => {
@@ -337,6 +346,9 @@ pub fn read_conf(reg: &rustc_plugin::Registry<'_>) -> Conf {
337
346
}
338
347
}
339
348
349
+ /// Register all lints and lint groups with the rustc plugin registry
350
+ ///
351
+ /// Used in `./src/driver.rs`.
340
352
#[ allow( clippy:: too_many_lines) ]
341
353
#[ rustfmt:: skip]
342
354
pub fn register_plugins ( reg : & mut rustc_plugin:: Registry < ' _ > , conf : & Conf ) {
@@ -1091,6 +1103,9 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
1091
1103
] ) ;
1092
1104
}
1093
1105
1106
+ /// Register renamed lints.
1107
+ ///
1108
+ /// Used in `./src/driver.rs`.
1094
1109
pub fn register_renamed ( ls : & mut rustc:: lint:: LintStore ) {
1095
1110
ls. register_renamed ( "clippy::stutter" , "clippy::module_name_repetitions" ) ;
1096
1111
ls. register_renamed ( "clippy::new_without_default_derive" , "clippy::new_without_default" ) ;
0 commit comments