{syntax -> rustc_ast_passes}::show_span
This commit is contained in:
parent
6cbcb83022
commit
ae213db0f5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user