diff --git a/compiler/rustc_hir_analysis/src/check/wfcheck.rs b/compiler/rustc_hir_analysis/src/check/wfcheck.rs index c70a886181250..ca359b34a2754 100644 --- a/compiler/rustc_hir_analysis/src/check/wfcheck.rs +++ b/compiler/rustc_hir_analysis/src/check/wfcheck.rs @@ -149,7 +149,7 @@ where match ty.kind() { ty::Adt(def, _) => { let adt_did = with_no_trimmed_paths!(infcx.tcx.def_path_str(def.0.did)); - if adt_did == "bevy_ecs::system::ParamSet" { + if adt_did.contains("ParamSet") { return Ok(()); } }