Skip to content

Commit 3607daf

Browse files
JohnTitoranp
authored andcommitted
More rustup
1 parent ebacb8a commit 3607daf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bin/miri-rustc-tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extern crate rustc_driver;
77
extern crate rustc_errors;
88
extern crate rustc_interface;
99
extern crate rustc_metadata;
10-
extern crate syntax;
10+
extern crate rustc_span;
1111

1212
use std::io;
1313
use std::io::Write;
@@ -40,7 +40,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
4040
impl<'tcx, 'hir> itemlikevisit::ItemLikeVisitor<'hir> for Visitor<'tcx> {
4141
fn visit_item(&mut self, i: &'hir hir::Item) {
4242
if let hir::ItemKind::Fn(.., body_id) = i.kind {
43-
if i.attrs.iter().any(|attr| attr.check_name(syntax::symbol::sym::test))
43+
if i.attrs.iter().any(|attr| attr.check_name(rustc_span::symbol::sym::test))
4444
{
4545
let config = MiriConfig {
4646
validate: true,

src/bin/miri.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ extern crate rustc_driver;
1212
extern crate rustc_errors;
1313
extern crate rustc_interface;
1414
extern crate rustc_metadata;
15-
extern crate syntax;
15+
extern crate rustc_span;
1616

1717
use std::convert::TryFrom;
1818
use std::env;

0 commit comments

Comments
 (0)