Merge pull request #663 from RalfJung/range-contains

remove stabilized feature
This commit is contained in:
Ralf Jung 2019-03-18 18:05:04 +01:00 committed by GitHub
commit 4fe23fa38f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
nightly-2019-03-11
nightly-2019-03-18

View file

@ -47,7 +47,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
impl<'a, 'tcx: 'a, 'hir> itemlikevisit::ItemLikeVisitor<'hir> for Visitor<'a, 'tcx> {
fn visit_item(&mut self, i: &'hir hir::Item) {
if let hir::ItemKind::Fn(.., body_id) = i.node {
if i.attrs.iter().any(|attr| attr.name() == "test") {
if i.attrs.iter().any(|attr| attr.check_name("test")) {
let config = MiriConfig { validate: true, args: vec![] };
let did = self.0.hir().body_owner_def_id(body_id);
println!("running test: {}", self.0.def_path_debug_str(did));

View file

@ -1,4 +1,4 @@
#![feature(rustc_private, range_contains)]
#![feature(rustc_private)]
#![allow(clippy::cast_lossless)]