Skip to content

Commit 13b91dd

Browse files
committed
rustc_intrinsic: support functions without body; they are implicitly marked as must-be-overridden
1 parent 7039b78 commit 13b91dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/miri.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ impl rustc_driver::Callbacks for MiriBeRustCompilerCalls {
242242
let is_reachable_non_generic = matches!(
243243
tcx.hir_node_by_def_id(local_def_id),
244244
Node::Item(&hir::Item {
245-
kind: hir::ItemKind::Static(..) | hir::ItemKind::Fn { .. },
245+
kind: hir::ItemKind::Static(..) | hir::ItemKind::Fn{ .. },
246246
..
247247
}) | Node::ImplItem(&hir::ImplItem {
248248
kind: hir::ImplItemKind::Fn(..),

0 commit comments

Comments
 (0)