Skip to content

Commit

Permalink
Add abort to safe intrinsics list
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Mar 3, 2022
1 parent e949375 commit 7c6935e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/hir_def/src/item_tree/lower.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7c6935e

Please sign in to comment.