1+ use crate :: errors:: { EmojiIdentifier , FerrisIdentifier } ;
12use crate :: interface:: { Compiler , Result } ;
23use crate :: proc_macro_decls;
34use crate :: util;
@@ -13,7 +14,6 @@ use rustc_expand::base::{ExtCtxt, LintStoreExpand, ResolverExpand};
1314use rustc_hir:: def_id:: StableCrateId ;
1415use rustc_hir:: definitions:: Definitions ;
1516use rustc_lint:: { BufferedEarlyLint , EarlyCheckNode , LintStore } ;
16- use rustc_macros:: SessionDiagnostic ;
1717use rustc_metadata:: creader:: CStore ;
1818use rustc_middle:: arena:: Arena ;
1919use rustc_middle:: dep_graph:: DepGraph ;
@@ -31,7 +31,7 @@ use rustc_session::output::filename_for_input;
3131use rustc_session:: search_paths:: PathKind ;
3232use rustc_session:: { Limit , Session } ;
3333use rustc_span:: symbol:: { sym, Symbol } ;
34- use rustc_span:: { FileName , Span } ;
34+ use rustc_span:: FileName ;
3535use rustc_trait_selection:: traits;
3636use rustc_typeck as typeck;
3737use tracing:: { info, warn} ;
@@ -264,23 +264,6 @@ impl LintStoreExpand for LintStoreExpandImpl<'_> {
264264 }
265265}
266266
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-
284267/// Runs the "early phases" of the compiler: initial `cfg` processing, loading compiler plugins,
285268/// syntax expansion, secondary `cfg` expansion, synthesis of a test
286269/// harness if one is to be provided, injection of a dependency on the
0 commit comments