Gate and validate #[rustc_safe_intrinsic]

This commit is contained in:
León Orell Valerian Liehr 2023-09-25 21:40:40 +02:00
parent aadb5718dd
commit f54db7c3a9
No known key found for this signature in database
GPG key ID: D17A07215F68E713
14 changed files with 79 additions and 11 deletions

View file

@ -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" {

View file

@ -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" {