11613: fix: Add `abort` to safe intrinsics list r=lnicola a=lnicola

Closes #11611

bors r+

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
bors[bot] 2022-03-03 18:59:22 +00:00 committed by GitHub
commit 59088d8066
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -702,6 +702,7 @@ enum GenericsOwner<'a> {
fn is_intrinsic_fn_unsafe(name: &Name) -> bool { 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 // 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::add_with_overflow,
known::bitreverse, known::bitreverse,
known::black_box, known::black_box,