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 ad1a677 commit a150414Copy full SHA for a150414
compiler/rustc_passes/src/liveness.rs
@@ -1521,7 +1521,9 @@ impl<'tcx> Liveness<'_, 'tcx> {
1521
}
1522
1523
fn warn_about_unused_args(&self, body: &hir::Body<'_>, entry_ln: LiveNode) {
1524
- if let Some(intrinsic) = self.ir.tcx.intrinsic(body.value.hir_id.owner.def_id) {
+ if let Some(intrinsic) =
1525
+ self.ir.tcx.intrinsic(self.ir.tcx.hir().body_owner_def_id(body.id()))
1526
+ {
1527
if intrinsic.must_be_overridden {
1528
return;
1529
0 commit comments