We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ee6799 commit 5d3825fCopy full SHA for 5d3825f
src/bin/miri-rustc-tests.rs
@@ -47,7 +47,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
47
impl<'a, 'tcx: 'a, 'hir> itemlikevisit::ItemLikeVisitor<'hir> for Visitor<'a, 'tcx> {
48
fn visit_item(&mut self, i: &'hir hir::Item) {
49
if let hir::ItemKind::Fn(.., body_id) = i.node {
50
- if i.attrs.iter().any(|attr| attr.ident_str() == Some("test")) {
+ if i.attrs.iter().any(|attr| attr.check_name("test")) {
51
let config = MiriConfig { validate: true, args: vec![] };
52
let did = self.0.hir().body_owner_def_id(body_id);
53
println!("running test: {}", self.0.def_path_debug_str(did));
0 commit comments