File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ use std::cell::{Cell, RefCell};
25
25
use std:: collections:: BTreeSet ;
26
26
use std:: fmt;
27
27
use std:: sync:: Arc ;
28
+ use rustc_span:: EiiId ,
28
29
29
30
use diagnostics:: { ImportSuggestion , LabelSuggestion , Suggestion } ;
30
31
use effective_visibilities:: EffectiveVisibilitiesVisitor ;
@@ -1227,6 +1228,9 @@ pub struct Resolver<'ra, 'tcx> {
1227
1228
current_crate_outer_attr_insert_span : Span ,
1228
1229
1229
1230
mods_with_parse_errors : FxHashSet < DefId > ,
1231
+
1232
+ /// Map of defids for all items marked with #[eii(<eii id>)].
1233
+ eii : FxHashMap < EiiId , DefId > ,
1230
1234
}
1231
1235
1232
1236
/// This provides memory for the rest of the crate. The `'ra` lifetime that is
Original file line number Diff line number Diff line change @@ -1204,6 +1204,12 @@ rustc_index::newtype_index! {
1204
1204
pub struct AttrId { }
1205
1205
}
1206
1206
1207
+ rustc_index:: newtype_index! {
1208
+ #[ orderable]
1209
+ #[ debug_format = "EiiId({})" ]
1210
+ pub struct EiiId { }
1211
+ }
1212
+
1207
1213
/// This trait is used to allow encoder specific encodings of certain types.
1208
1214
/// It is similar to rustc_type_ir's TyEncoder.
1209
1215
pub trait SpanEncoder : Encoder {
You can’t perform that action at this time.
0 commit comments