Gate and validate #[rustc_safe_intrinsic]
This commit is contained in:
parent
aadb5718dd
commit
f54db7c3a9
14 changed files with 79 additions and 11 deletions
|
@ -3,7 +3,7 @@ An invalid number of generic parameters was passed to an intrinsic function.
|
|||
Erroneous code example:
|
||||
|
||||
```compile_fail,E0094
|
||||
#![feature(intrinsics)]
|
||||
#![feature(intrinsics, rustc_attrs)]
|
||||
#![allow(internal_features)]
|
||||
|
||||
extern "rust-intrinsic" {
|
||||
|
@ -18,7 +18,7 @@ and verify with the function declaration in the Rust source code.
|
|||
Example:
|
||||
|
||||
```
|
||||
#![feature(intrinsics)]
|
||||
#![feature(intrinsics, rustc_attrs)]
|
||||
#![allow(internal_features)]
|
||||
|
||||
extern "rust-intrinsic" {
|
||||
|
|
|
@ -4,7 +4,7 @@ You used a function or type which doesn't fit the requirements for where it was
|
|||
used. Erroneous code examples:
|
||||
|
||||
```compile_fail
|
||||
#![feature(intrinsics)]
|
||||
#![feature(intrinsics, rustc_attrs)]
|
||||
#![allow(internal_features)]
|
||||
|
||||
extern "rust-intrinsic" {
|
||||
|
@ -41,7 +41,7 @@ impl Foo {
|
|||
For the first code example, please check the function definition. Example:
|
||||
|
||||
```
|
||||
#![feature(intrinsics)]
|
||||
#![feature(intrinsics, rustc_attrs)]
|
||||
#![allow(internal_features)]
|
||||
|
||||
extern "rust-intrinsic" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue