Skip to content

Commit f66030d

Browse files
oisyneddyb
authored andcommitted
Compile fixes
1 parent 5619408 commit f66030d

File tree

1 file changed

+3
-2
lines changed
  • crates/rustc_codegen_spirv/src

1 file changed

+3
-2
lines changed

crates/rustc_codegen_spirv/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,12 @@ fn is_blocklisted_fn<'tcx>(
142142
// Helper for detecting `<_ as core::fmt::Debug>::fmt` (in impls).
143143
let is_debug_fmt_method = |def_id| match tcx.opt_associated_item(def_id) {
144144
Some(assoc) if assoc.ident(tcx).name == sym::fmt => match assoc.container {
145-
ty::ImplContainer(impl_def_id) => {
145+
ty::ImplContainer => {
146+
let impl_def_id = assoc.container_id(tcx);
146147
tcx.impl_trait_ref(impl_def_id).map(|tr| tr.def_id)
147148
== Some(debug_trait_def_id)
148149
}
149-
ty::TraitContainer(_) => false,
150+
ty::TraitContainer => false,
150151
},
151152
_ => false,
152153
};

0 commit comments

Comments
 (0)