about summary refs log tree commit diff
path: root/compiler/rustc_error_codes
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-02-23 17:34:50 +0100
committerRalf Jung <post@ralfj.de>2025-02-24 07:53:59 +0100
commit6eea027aa9453b685ac636ea40fc826267afab2a (patch)
treef5021a6137ff4a0be0a88a92cbee6d5990c4096a /compiler/rustc_error_codes
parent5a58a922e21438d70f1be738754dc257cc8c649b (diff)
downloadrust-6eea027aa9453b685ac636ea40fc826267afab2a.tar.gz
rust-6eea027aa9453b685ac636ea40fc826267afab2a.zip
remove support for rustc_intrinsic_must_be_overridden from the compiler
Diffstat (limited to 'compiler/rustc_error_codes')
-rw-r--r--compiler/rustc_error_codes/src/error_codes/E0094.md14
1 files changed, 3 insertions, 11 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0094.md b/compiler/rustc_error_codes/src/error_codes/E0094.md
index efbfa0851a8..909da368f2b 100644
--- a/compiler/rustc_error_codes/src/error_codes/E0094.md
+++ b/compiler/rustc_error_codes/src/error_codes/E0094.md
@@ -7,12 +7,8 @@ Erroneous code example:
 #![allow(internal_features)]
 
 #[rustc_intrinsic]
-#[rustc_intrinsic_must_be_overridden]
-fn size_of<T, U>() -> usize // error: intrinsic has wrong number
-                            //        of type parameters
-{
-    loop {}
-}
+fn size_of<T, U>() -> usize; // error: intrinsic has wrong number
+                             //        of type parameters
 ```
 
 Please check that you provided the right number of type parameters
@@ -24,9 +20,5 @@ Example:
 #![allow(internal_features)]
 
 #[rustc_intrinsic]
-#[rustc_intrinsic_must_be_overridden]
-fn size_of<T>() -> usize // ok!
-{
-    loop {}
-}
+fn size_of<T>() -> usize; // ok!
 ```