1
+ use crate :: errors:: { EmojiIdentifier , FerrisIdentifier } ;
1
2
use crate :: interface:: { Compiler , Result } ;
2
3
use crate :: proc_macro_decls;
3
4
use crate :: util;
@@ -13,7 +14,6 @@ use rustc_expand::base::{ExtCtxt, LintStoreExpand, ResolverExpand};
13
14
use rustc_hir:: def_id:: StableCrateId ;
14
15
use rustc_hir:: definitions:: Definitions ;
15
16
use rustc_lint:: { BufferedEarlyLint , EarlyCheckNode , LintStore } ;
16
- use rustc_macros:: SessionDiagnostic ;
17
17
use rustc_metadata:: creader:: CStore ;
18
18
use rustc_middle:: arena:: Arena ;
19
19
use rustc_middle:: dep_graph:: DepGraph ;
@@ -31,7 +31,7 @@ use rustc_session::output::filename_for_input;
31
31
use rustc_session:: search_paths:: PathKind ;
32
32
use rustc_session:: { Limit , Session } ;
33
33
use rustc_span:: symbol:: { sym, Symbol } ;
34
- use rustc_span:: { FileName , Span } ;
34
+ use rustc_span:: FileName ;
35
35
use rustc_trait_selection:: traits;
36
36
use rustc_typeck as typeck;
37
37
use tracing:: { info, warn} ;
@@ -264,23 +264,6 @@ impl LintStoreExpand for LintStoreExpandImpl<'_> {
264
264
}
265
265
}
266
266
267
- #[ derive( SessionDiagnostic ) ]
268
- #[ diag( interface:: ferris_identifier) ]
269
- struct FerrisIdentifier {
270
- #[ primary_span]
271
- spans : Vec < Span > ,
272
- #[ suggestion( code = "ferris" , applicability = "maybe-incorrect" ) ]
273
- first_span : Span ,
274
- }
275
-
276
- #[ derive( SessionDiagnostic ) ]
277
- #[ diag( interface:: emoji_identifier) ]
278
- struct EmojiIdentifier {
279
- #[ primary_span]
280
- spans : Vec < Span > ,
281
- ident : Symbol ,
282
- }
283
-
284
267
/// Runs the "early phases" of the compiler: initial `cfg` processing, loading compiler plugins,
285
268
/// syntax expansion, secondary `cfg` expansion, synthesis of a test
286
269
/// harness if one is to be provided, injection of a dependency on the
0 commit comments