1
Fork 0

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

View file

@ -5,9 +5,9 @@
use std::str::FromStr; use std::str::FromStr;
use crate::ast; use syntax::ast;
use crate::visit; use syntax::visit;
use crate::visit::Visitor; use syntax::visit::Visitor;
enum Mode { enum Mode {
Expression, 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 { 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 { if sess.opts.debugging_opts.hir_stats {

View file

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