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 5619408 commit f66030dCopy full SHA for f66030d
crates/rustc_codegen_spirv/src/lib.rs
@@ -142,11 +142,12 @@ fn is_blocklisted_fn<'tcx>(
142
// Helper for detecting `<_ as core::fmt::Debug>::fmt` (in impls).
143
let is_debug_fmt_method = |def_id| match tcx.opt_associated_item(def_id) {
144
Some(assoc) if assoc.ident(tcx).name == sym::fmt => match assoc.container {
145
- ty::ImplContainer(impl_def_id) => {
+ ty::ImplContainer => {
146
+ let impl_def_id = assoc.container_id(tcx);
147
tcx.impl_trait_ref(impl_def_id).map(|tr| tr.def_id)
148
== Some(debug_trait_def_id)
149
}
- ty::TraitContainer(_) => false,
150
+ ty::TraitContainer => false,
151
},
152
_ => false,
153
};
0 commit comments