Skip to content

Commit ae213db

Browse files
committed
{syntax -> rustc_ast_passes}::show_span
1 parent 6cbcb83 commit ae213db

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/librustc_ast_passes/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66

77
pub mod ast_validation;
88
pub mod feature_gate;
9+
pub mod show_span;

src/libsyntax/show_span.rs renamed to src/librustc_ast_passes/show_span.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
66
use std::str::FromStr;
77

8-
use crate::ast;
9-
use crate::visit;
10-
use crate::visit::Visitor;
8+
use syntax::ast;
9+
use syntax::visit;
10+
use syntax::visit::Visitor;
1111

1212
enum Mode {
1313
Expression,

src/librustc_interface/passes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub fn parse<'a>(sess: &'a Session, input: &Input) -> PResult<'a, ast::Crate> {
7070
}
7171

7272
if let Some(ref s) = sess.opts.debugging_opts.show_span {
73-
syntax::show_span::run(sess.diagnostic(), s, &krate);
73+
rustc_ast_passes::show_span::run(sess.diagnostic(), s, &krate);
7474
}
7575

7676
if sess.opts.debugging_opts.hir_stats {

src/libsyntax/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ pub mod entry;
7777
pub mod expand;
7878
pub mod mut_visit;
7979
pub mod ptr;
80-
pub mod show_span;
8180
pub use rustc_session::parse as sess;
8281
pub mod token;
8382
pub mod tokenstream;

0 commit comments

Comments
 (0)