diff options
| author | Stein Somers <git@steinsomers.be> | 2019-02-18 00:31:41 +0100 |
|---|---|---|
| committer | Stein Somers <git@steinsomers.be> | 2019-02-18 00:31:41 +0100 |
| commit | 01bebdf19321a1597f35c2fc2130f1627e944bcf (patch) | |
| tree | 2c71bc6a77545eacabdc67b1fcaa5f52dd22878c /src/libsyntax/std_inject.rs | |
| parent | 0b9ad6e6fd017837647eed8e5ae824d1f6e278b2 (diff) | |
| parent | 9a3392e174a432a5f06c1157befc1ce0fae74bec (diff) | |
| download | rust-01bebdf19321a1597f35c2fc2130f1627e944bcf.tar.gz rust-01bebdf19321a1597f35c2fc2130f1627e944bcf.zip | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/libsyntax/std_inject.rs')
| -rw-r--r-- | src/libsyntax/std_inject.rs | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/libsyntax/std_inject.rs b/src/libsyntax/std_inject.rs index e0770834421..b9758bd655c 100644 --- a/src/libsyntax/std_inject.rs +++ b/src/libsyntax/std_inject.rs @@ -1,14 +1,15 @@ -use ast; -use attr; +use crate::ast; +use crate::attr; +use crate::edition::Edition; +use crate::ext::hygiene::{Mark, SyntaxContext}; +use crate::symbol::{Symbol, keywords}; +use crate::source_map::{ExpnInfo, MacroAttribute, dummy_spanned, hygiene, respan}; +use crate::ptr::P; +use crate::tokenstream::TokenStream; + use std::cell::Cell; use std::iter; -use edition::Edition; -use ext::hygiene::{Mark, SyntaxContext}; -use symbol::{Symbol, keywords}; use syntax_pos::{DUMMY_SP, Span}; -use source_map::{ExpnInfo, MacroAttribute, dummy_spanned, hygiene, respan}; -use ptr::P; -use tokenstream::TokenStream; /// Craft a span that will be ignored by the stability lint's /// call to source_map's `is_internal` check. @@ -19,7 +20,9 @@ fn ignored_span(sp: Span) -> Span { call_site: DUMMY_SP, def_site: None, format: MacroAttribute(Symbol::intern("std_inject")), - allow_internal_unstable: true, + allow_internal_unstable: Some(vec![ + Symbol::intern("prelude_import"), + ].into()), allow_internal_unsafe: false, local_inner_macros: false, edition: hygiene::default_edition(), |
