From 7c6935eed58ef7538608f2b59a556b4b9aacfa6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Thu, 3 Mar 2022 20:58:20 +0200 Subject: [PATCH] Add abort to safe intrinsics list --- crates/hir_def/src/item_tree/lower.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/hir_def/src/item_tree/lower.rs b/crates/hir_def/src/item_tree/lower.rs index 4547bfc55e6..f1b378a3be5 100644 --- a/crates/hir_def/src/item_tree/lower.rs +++ b/crates/hir_def/src/item_tree/lower.rs @@ -702,6 +702,7 @@ enum GenericsOwner<'a> { fn is_intrinsic_fn_unsafe(name: &Name) -> bool { // Should be kept in sync with https://github.com/rust-lang/rust/blob/532d2b14c05f9bc20b2d27cbb5f4550d28343a36/compiler/rustc_typeck/src/check/intrinsic.rs#L72-L106 ![ + known::abort, known::add_with_overflow, known::bitreverse, known::black_box,