Skip to content

Commit

Permalink
More rustup
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor authored and anp committed Jan 6, 2020
1 parent ebacb8a commit 3607daf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/bin/miri-rustc-tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extern crate rustc_driver;
extern crate rustc_errors;
extern crate rustc_interface;
extern crate rustc_metadata;
extern crate syntax;
extern crate rustc_span;

use std::io;
use std::io::Write;
Expand Down Expand Up @@ -40,7 +40,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
impl<'tcx, 'hir> itemlikevisit::ItemLikeVisitor<'hir> for Visitor<'tcx> {
fn visit_item(&mut self, i: &'hir hir::Item) {
if let hir::ItemKind::Fn(.., body_id) = i.kind {
if i.attrs.iter().any(|attr| attr.check_name(syntax::symbol::sym::test))
if i.attrs.iter().any(|attr| attr.check_name(rustc_span::symbol::sym::test))
{
let config = MiriConfig {
validate: true,
Expand Down
2 changes: 1 addition & 1 deletion src/bin/miri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extern crate rustc_driver;
extern crate rustc_errors;
extern crate rustc_interface;
extern crate rustc_metadata;
extern crate syntax;
extern crate rustc_span;

use std::convert::TryFrom;
use std::env;
Expand Down

0 comments on commit 3607daf

Please sign in to comment.