diff options
| author | Ralf Jung <post@ralfj.de> | 2025-02-23 17:34:50 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-02-24 07:53:59 +0100 |
| commit | 6eea027aa9453b685ac636ea40fc826267afab2a (patch) | |
| tree | f5021a6137ff4a0be0a88a92cbee6d5990c4096a /tests/rustdoc/safe-intrinsic.rs | |
| parent | 5a58a922e21438d70f1be738754dc257cc8c649b (diff) | |
| download | rust-6eea027aa9453b685ac636ea40fc826267afab2a.tar.gz rust-6eea027aa9453b685ac636ea40fc826267afab2a.zip | |
remove support for rustc_intrinsic_must_be_overridden from the compiler
Diffstat (limited to 'tests/rustdoc/safe-intrinsic.rs')
| -rw-r--r-- | tests/rustdoc/safe-intrinsic.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/rustdoc/safe-intrinsic.rs b/tests/rustdoc/safe-intrinsic.rs index 1edc1d9f79b..0d2ee89415d 100644 --- a/tests/rustdoc/safe-intrinsic.rs +++ b/tests/rustdoc/safe-intrinsic.rs @@ -11,14 +11,8 @@ trait Sized {} //@ has 'foo/fn.abort.html' //@ has - '//pre[@class="rust item-decl"]' 'pub fn abort() -> !' #[rustc_intrinsic] -#[rustc_intrinsic_must_be_overridden] -pub fn abort() -> ! { - loop {} -} +pub fn abort() -> !; //@ has 'foo/fn.unreachable.html' //@ has - '//pre[@class="rust item-decl"]' 'pub unsafe fn unreachable() -> !' #[rustc_intrinsic] -#[rustc_intrinsic_must_be_overridden] -pub unsafe fn unreachable() -> ! { - loop {} -} +pub unsafe fn unreachable() -> !; |
