Skip to content

Commit 5d3825f

Browse files
oli-obkRalfJung
andauthored
Update src/bin/miri-rustc-tests.rs
Co-Authored-By: RalfJung <[email protected]>
1 parent 8ee6799 commit 5d3825f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/miri-rustc-tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
4747
impl<'a, 'tcx: 'a, 'hir> itemlikevisit::ItemLikeVisitor<'hir> for Visitor<'a, 'tcx> {
4848
fn visit_item(&mut self, i: &'hir hir::Item) {
4949
if let hir::ItemKind::Fn(.., body_id) = i.node {
50-
if i.attrs.iter().any(|attr| attr.ident_str() == Some("test")) {
50+
if i.attrs.iter().any(|attr| attr.check_name("test")) {
5151
let config = MiriConfig { validate: true, args: vec![] };
5252
let did = self.0.hir().body_owner_def_id(body_id);
5353
println!("running test: {}", self.0.def_path_debug_str(did));

0 commit comments

Comments
 (0)