@@ -30,11 +30,9 @@ use syntax::ast;
30
30
use syntax:: attr;
31
31
use syntax:: source_map;
32
32
use syntax:: edition:: Edition ;
33
- use syntax:: ext:: base:: { SyntaxExtension , SyntaxExtensionKind } ;
34
- use syntax:: ext:: proc_macro:: BangProcMacro ;
35
33
use syntax:: parse:: source_file_to_stream;
36
34
use syntax:: parse:: parser:: emit_unclosed_delims;
37
- use syntax:: symbol:: { Symbol , sym } ;
35
+ use syntax:: symbol:: Symbol ;
38
36
use syntax_pos:: { Span , FileName } ;
39
37
use rustc_data_structures:: bit_set:: BitSet ;
40
38
@@ -437,14 +435,6 @@ impl cstore::CStore {
437
435
let data = self . get_crate_data ( id. krate ) ;
438
436
if data. is_proc_macro_crate ( ) {
439
437
return LoadedMacro :: ProcMacro ( data. get_proc_macro ( id. index , sess) . ext ) ;
440
- } else if data. name == sym:: proc_macro && data. item_name ( id. index ) == sym:: quote {
441
- let client = proc_macro:: bridge:: client:: Client :: expand1 ( proc_macro:: quote) ;
442
- let kind = SyntaxExtensionKind :: Bang ( Box :: new ( BangProcMacro { client } ) ) ;
443
- let ext = SyntaxExtension {
444
- allow_internal_unstable : Some ( [ sym:: proc_macro_def_site] [ ..] . into ( ) ) ,
445
- ..SyntaxExtension :: default ( kind, data. root . edition )
446
- } ;
447
- return LoadedMacro :: ProcMacro ( Lrc :: new ( ext) ) ;
448
438
}
449
439
450
440
let def = data. get_macro ( id. index ) ;
0 commit comments