{syntax -> rustc_ast_passes}::show_span

This commit is contained in:
Mazdak Farrokhzad 2020-01-05 11:21:26 +01:00
parent 6cbcb83022
commit ae213db0f5
4 changed files with 5 additions and 5 deletions

View File

@ -6,3 +6,4 @@
pub mod ast_validation;
pub mod feature_gate;
pub mod show_span;

View File

@ -5,9 +5,9 @@
use std::str::FromStr;
use crate::ast;
use crate::visit;
use crate::visit::Visitor;
use syntax::ast;
use syntax::visit;
use syntax::visit::Visitor;
enum Mode {
Expression,

View File

@ -70,7 +70,7 @@ pub fn parse<'a>(sess: &'a Session, input: &Input) -> PResult<'a, ast::Crate> {
}
if let Some(ref s) = sess.opts.debugging_opts.show_span {
syntax::show_span::run(sess.diagnostic(), s, &krate);
rustc_ast_passes::show_span::run(sess.diagnostic(), s, &krate);
}
if sess.opts.debugging_opts.hir_stats {

View File

@ -77,7 +77,6 @@ pub mod entry;
pub mod expand;
pub mod mut_visit;
pub mod ptr;
pub mod show_span;
pub use rustc_session::parse as sess;
pub mod token;
pub mod tokenstream;