|
17 | 17 | #![feature(rustc_diagnostic_macros)] |
18 | 18 | #![feature(slice_sort_by_cached_key)] |
19 | 19 |
|
| 20 | +#[macro_use] |
| 21 | +extern crate bitflags; |
20 | 22 | #[macro_use] |
21 | 23 | extern crate log; |
22 | 24 | #[macro_use] |
@@ -1210,10 +1212,6 @@ impl<'a> NameBinding<'a> { |
1210 | 1212 | } |
1211 | 1213 | } |
1212 | 1214 |
|
1213 | | - fn get_macro<'b: 'a>(&self, resolver: &mut Resolver<'a, 'b>) -> Lrc<SyntaxExtension> { |
1214 | | - resolver.get_macro(self.def_ignoring_ambiguity()) |
1215 | | - } |
1216 | | - |
1217 | 1215 | // We sometimes need to treat variants as `pub` for backwards compatibility |
1218 | 1216 | fn pseudo_vis(&self) -> ty::Visibility { |
1219 | 1217 | if self.is_variant() && self.def().def_id().is_local() { |
@@ -3664,8 +3662,8 @@ impl<'a, 'crateloader: 'a> Resolver<'a, 'crateloader> { |
3664 | 3662 | self.resolve_ident_in_module(module, ident, ns, record_used, path_span) |
3665 | 3663 | } else if opt_ns == Some(MacroNS) { |
3666 | 3664 | assert!(ns == TypeNS); |
3667 | | - self.resolve_lexical_macro_path_segment(ident, ns, None, parent_scope, record_used, |
3668 | | - record_used, path_span).map(|(b, _)| b) |
| 3665 | + self.early_resolve_ident_in_lexical_scope(ident, ns, None, parent_scope, |
| 3666 | + record_used, record_used, path_span) |
3669 | 3667 | } else { |
3670 | 3668 | let record_used_id = |
3671 | 3669 | if record_used { crate_lint.node_id().or(Some(CRATE_NODE_ID)) } else { None }; |
|
0 commit comments