mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Rollup merge of #121247 - scottmcm:intrinsic-reminder, r=petrochenkov
Add help to `hir_analysis_unrecognized_intrinsic_function` To help remind forgetful people like me what step they forgot. (If this just ICE'd, https://github.com/rust-lang/compiler-team/issues/620 style, the stack trace would point me here, but since there's a "nice" error that information is lost.)
This commit is contained in:
commit
57d9523a95
@ -469,6 +469,7 @@ hir_analysis_unrecognized_atomic_operation =
|
|||||||
hir_analysis_unrecognized_intrinsic_function =
|
hir_analysis_unrecognized_intrinsic_function =
|
||||||
unrecognized intrinsic function: `{$name}`
|
unrecognized intrinsic function: `{$name}`
|
||||||
.label = unrecognized intrinsic
|
.label = unrecognized intrinsic
|
||||||
|
.help = if you're adding an intrinsic, be sure to update `check_intrinsic_type`
|
||||||
|
|
||||||
hir_analysis_unused_associated_type_bounds =
|
hir_analysis_unused_associated_type_bounds =
|
||||||
unnecessary associated type bound for not object safe associated type
|
unnecessary associated type bound for not object safe associated type
|
||||||
|
@ -143,6 +143,7 @@ pub struct WrongNumberOfGenericArgumentsToIntrinsic<'a> {
|
|||||||
|
|
||||||
#[derive(Diagnostic)]
|
#[derive(Diagnostic)]
|
||||||
#[diag(hir_analysis_unrecognized_intrinsic_function, code = E0093)]
|
#[diag(hir_analysis_unrecognized_intrinsic_function, code = E0093)]
|
||||||
|
#[help]
|
||||||
pub struct UnrecognizedIntrinsicFunction {
|
pub struct UnrecognizedIntrinsicFunction {
|
||||||
#[primary_span]
|
#[primary_span]
|
||||||
#[label]
|
#[label]
|
||||||
|
@ -3,6 +3,8 @@ error[E0093]: unrecognized intrinsic function: `foo`
|
|||||||
|
|
|
|
||||||
LL | fn foo();
|
LL | fn foo();
|
||||||
| ^^^^^^^^^ unrecognized intrinsic
|
| ^^^^^^^^^ unrecognized intrinsic
|
||||||
|
|
|
||||||
|
= help: if you're adding an intrinsic, be sure to update `check_intrinsic_type`
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
|
||||||
|
@ -187,12 +187,16 @@ error[E0093]: unrecognized intrinsic function: `f1`
|
|||||||
|
|
|
|
||||||
LL | extern "rust-intrinsic" fn f1() {}
|
LL | extern "rust-intrinsic" fn f1() {}
|
||||||
| ^^ unrecognized intrinsic
|
| ^^ unrecognized intrinsic
|
||||||
|
|
|
||||||
|
= help: if you're adding an intrinsic, be sure to update `check_intrinsic_type`
|
||||||
|
|
||||||
error[E0093]: unrecognized intrinsic function: `f2`
|
error[E0093]: unrecognized intrinsic function: `f2`
|
||||||
--> $DIR/feature-gate-abi.rs:18:32
|
--> $DIR/feature-gate-abi.rs:18:32
|
||||||
|
|
|
|
||||||
LL | extern "platform-intrinsic" fn f2() {}
|
LL | extern "platform-intrinsic" fn f2() {}
|
||||||
| ^^ unrecognized intrinsic
|
| ^^ unrecognized intrinsic
|
||||||
|
|
|
||||||
|
= help: if you're adding an intrinsic, be sure to update `check_intrinsic_type`
|
||||||
|
|
||||||
error: intrinsic must be in `extern "rust-intrinsic" { ... }` block
|
error: intrinsic must be in `extern "rust-intrinsic" { ... }` block
|
||||||
--> $DIR/feature-gate-abi.rs:25:32
|
--> $DIR/feature-gate-abi.rs:25:32
|
||||||
|
@ -21,12 +21,16 @@ error[E0093]: unrecognized intrinsic function: `bar`
|
|||||||
|
|
|
|
||||||
LL | fn bar();
|
LL | fn bar();
|
||||||
| ^^^^^^^^^ unrecognized intrinsic
|
| ^^^^^^^^^ unrecognized intrinsic
|
||||||
|
|
|
||||||
|
= help: if you're adding an intrinsic, be sure to update `check_intrinsic_type`
|
||||||
|
|
||||||
error[E0093]: unrecognized intrinsic function: `baz`
|
error[E0093]: unrecognized intrinsic function: `baz`
|
||||||
--> $DIR/feature-gate-intrinsics.rs:5:28
|
--> $DIR/feature-gate-intrinsics.rs:5:28
|
||||||
|
|
|
|
||||||
LL | extern "rust-intrinsic" fn baz() {}
|
LL | extern "rust-intrinsic" fn baz() {}
|
||||||
| ^^^ unrecognized intrinsic
|
| ^^^ unrecognized intrinsic
|
||||||
|
|
|
||||||
|
= help: if you're adding an intrinsic, be sure to update `check_intrinsic_type`
|
||||||
|
|
||||||
error: intrinsic must be in `extern "rust-intrinsic" { ... }` block
|
error: intrinsic must be in `extern "rust-intrinsic" { ... }` block
|
||||||
--> $DIR/feature-gate-intrinsics.rs:5:34
|
--> $DIR/feature-gate-intrinsics.rs:5:34
|
||||||
|
@ -9,6 +9,8 @@ error[E0093]: unrecognized intrinsic function: `hello`
|
|||||||
|
|
|
|
||||||
LL | extern "rust-intrinsic" fn hello() {
|
LL | extern "rust-intrinsic" fn hello() {
|
||||||
| ^^^^^ unrecognized intrinsic
|
| ^^^^^ unrecognized intrinsic
|
||||||
|
|
|
||||||
|
= help: if you're adding an intrinsic, be sure to update `check_intrinsic_type`
|
||||||
|
|
||||||
error: intrinsic must be in `extern "rust-intrinsic" { ... }` block
|
error: intrinsic must be in `extern "rust-intrinsic" { ... }` block
|
||||||
--> $DIR/intrinsics-always-extern.rs:8:43
|
--> $DIR/intrinsics-always-extern.rs:8:43
|
||||||
|
Loading…
Reference in New Issue
Block a user