From c60416ed2167716dd6e7141573fbc6dde42e09e3 Mon Sep 17 00:00:00 2001 From: Caleb Cartwright Date: Sat, 8 Feb 2020 22:21:37 -0600 Subject: deps: update rustc-ap to v642.0.0 --- src/modules/visitor.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/modules') 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; -- cgit 1.4.1-3-g733a5