remove support for rustc_intrinsic_must_be_overridden from the compiler
This commit is contained in:
parent
5a58a922e2
commit
6eea027aa9
24 changed files with 70 additions and 203 deletions
|
@ -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!
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue