remove support for rustc_intrinsic_must_be_overridden from the compiler

This commit is contained in:
Ralf Jung 2025-02-23 17:34:50 +01:00
parent 5a58a922e2
commit 6eea027aa9
24 changed files with 70 additions and 203 deletions

View file

@ -51,10 +51,7 @@ enum Ordering {
}
#[rustc_intrinsic]
#[rustc_intrinsic_must_be_overridden]
fn three_way_compare<T: Copy>(lhs: T, rhs: T) -> Ordering {
loop {}
}
fn three_way_compare<T: Copy>(lhs: T, rhs: T) -> Ordering;
// ^^^^^ core