Skip to content
Permalink
Browse files

{syntax -> rustc_ast_passes}::show_span

  • Loading branch information
Centril committed Jan 5, 2020
1 parent 6cbcb83 commit ae213db0f5d9a513cae9624b1a341f516bb8e1e9
@@ -6,3 +6,4 @@

pub mod ast_validation;
pub mod feature_gate;
pub mod show_span;
@@ -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,
@@ -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 {
@@ -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;

0 comments on commit ae213db

Please sign in to comment.
You can’t perform that action at this time.