@@ -92,7 +92,7 @@ pub struct DumpVisitor<'l, 'tcx: 'l, 'll, O: DumpOutput + 'll> {
92
92
// we only write one macro def per unique macro definition, and
93
93
// one macro use per unique callsite span.
94
94
// mac_defs: FxHashSet<Span>,
95
- macro_calls : FxHashSet < Span > ,
95
+ // macro_calls: FxHashSet<Span>,
96
96
}
97
97
98
98
impl < ' l , ' tcx : ' l , ' ll , O : DumpOutput + ' ll > DumpVisitor < ' l , ' tcx , ' ll , O > {
@@ -108,7 +108,7 @@ impl<'l, 'tcx: 'l, 'll, O: DumpOutput + 'll> DumpVisitor<'l, 'tcx, 'll, O> {
108
108
span : span_utils,
109
109
cur_scope : CRATE_NODE_ID ,
110
110
// mac_defs: FxHashSet::default(),
111
- macro_calls : FxHashSet :: default ( ) ,
111
+ // macro_calls: FxHashSet::default(),
112
112
}
113
113
}
114
114
@@ -1030,18 +1030,20 @@ impl<'l, 'tcx: 'l, 'll, O: DumpOutput + 'll> DumpVisitor<'l, 'tcx, 'll, O> {
1030
1030
/// If the span is not macro-generated, do nothing, else use callee and
1031
1031
/// callsite spans to record macro definition and use data, using the
1032
1032
/// mac_uses and mac_defs sets to prevent multiples.
1033
- fn process_macro_use ( & mut self , span : Span ) {
1034
- let source_span = span. source_callsite ( ) ;
1035
- if !self . macro_calls . insert ( source_span) {
1036
- return ;
1037
- }
1033
+ fn process_macro_use ( & mut self , _span : Span ) {
1034
+ // FIXME if we're not dumping the defs (see below), there is no point
1035
+ // dumping refs either.
1036
+ // let source_span = span.source_callsite();
1037
+ // if !self.macro_calls.insert(source_span) {
1038
+ // return;
1039
+ // }
1038
1040
1039
- let data = match self . save_ctxt . get_macro_use_data ( span) {
1040
- None => return ,
1041
- Some ( data) => data,
1042
- } ;
1041
+ // let data = match self.save_ctxt.get_macro_use_data(span) {
1042
+ // None => return,
1043
+ // Some(data) => data,
1044
+ // };
1043
1045
1044
- self . dumper . macro_use ( data) ;
1046
+ // self.dumper.macro_use(data);
1045
1047
1046
1048
// FIXME write the macro def
1047
1049
// let mut hasher = DefaultHasher::new();
0 commit comments