diff options
| author | Caleb Cartwright <caleb.cartwright@outlook.com> | 2020-02-08 22:21:37 -0600 |
|---|---|---|
| committer | Caleb Cartwright <caleb.cartwright@outlook.com> | 2020-02-08 22:21:37 -0600 |
| commit | c60416ed2167716dd6e7141573fbc6dde42e09e3 (patch) | |
| tree | 621aabfd04dae5bd57c240d4e1febc7a17f43983 /src/modules | |
| parent | 1838235248bbde125bbc6c12fb493e1979088bb5 (diff) | |
deps: update rustc-ap to v642.0.0
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/visitor.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/visitor.rs b/src/modules/visitor.rs index e9223ce9644..4ef1daf7475 100644 --- a/src/modules/visitor.rs +++ b/src/modules/visitor.rs @@ -1,9 +1,9 @@ +use rustc_parse::{stream_to_parser_with_base_dir, Directory}; +use rustc_session::parse::ParseSess; +use rustc_span::{symbol::kw, Symbol}; use syntax::ast; -use syntax::parse::token::{DelimToken, TokenKind}; -use syntax::parse::{stream_to_parser_with_base_dir, Directory, ParseSess}; -use syntax::symbol::kw; +use syntax::token::{DelimToken, TokenKind}; use syntax::visit::Visitor; -use syntax_pos::Symbol; use crate::attr::MetaVisitor; @@ -65,8 +65,9 @@ impl<'a, 'ast: 'a> CfgIfVisitor<'a> { } }; + let ts = mac.args.inner_tokens(); let mut parser = - stream_to_parser_with_base_dir(self.parse_sess, mac.tts.clone(), self.base_dir.clone()); + stream_to_parser_with_base_dir(self.parse_sess, ts.clone(), self.base_dir.clone()); parser.cfg_mods = false; let mut process_if_cfg = true; |
