Change diagnostic wording
This commit is contained in:
parent
91645129d0
commit
ecc006f835
6 changed files with 6 additions and 12 deletions
|
|
@ -255,8 +255,7 @@ pub fn report_error<'tcx>(
|
|||
],
|
||||
UnsupportedForeignItem(_) => {
|
||||
vec![
|
||||
note!("if this is a basic API commonly used on this target, please report an issue with Miri"),
|
||||
note!("however, note that Miri does not aim to support every FFI function out there; for instance, we will not support APIs for things such as GUIs, scripting languages, or databases"),
|
||||
note!("this means the program tried to do something Miri does not support; it does not indicate a bug in the program"),
|
||||
]
|
||||
}
|
||||
StackedBorrowsUb { help, history, .. } => {
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@ error: unsupported operation: can't call foreign function `signal` on $OS
|
|||
LL | libc::signal(libc::SIGPIPE, libc::SIG_IGN);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't call foreign function `signal` on $OS
|
||||
|
|
||||
= help: if this is a basic API commonly used on this target, please report an issue with Miri
|
||||
= help: however, note that Miri does not aim to support every FFI function out there; for instance, we will not support APIs for things such as GUIs, scripting languages, or databases
|
||||
= help: this means the program tried to do something Miri does not support; it does not indicate a bug in the program
|
||||
= note: BACKTRACE:
|
||||
= note: inside `main` at tests/fail-dep/libc/unsupported_incomplete_function.rs:LL:CC
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@ error: unsupported operation: can't call foreign function `__rust_alloc` on $OS
|
|||
LL | __rust_alloc(1, 1);
|
||||
| ^^^^^^^^^^^^^^^^^^ can't call foreign function `__rust_alloc` on $OS
|
||||
|
|
||||
= help: if this is a basic API commonly used on this target, please report an issue with Miri
|
||||
= help: however, note that Miri does not aim to support every FFI function out there; for instance, we will not support APIs for things such as GUIs, scripting languages, or databases
|
||||
= help: this means the program tried to do something Miri does not support; it does not indicate a bug in the program
|
||||
= note: BACKTRACE:
|
||||
= note: inside `miri_start` at tests/fail/alloc/no_global_allocator.rs:LL:CC
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@ error: unsupported operation: can't call foreign function `foo` on $OS
|
|||
LL | foo();
|
||||
| ^^^^^ can't call foreign function `foo` on $OS
|
||||
|
|
||||
= help: if this is a basic API commonly used on this target, please report an issue with Miri
|
||||
= help: however, note that Miri does not aim to support every FFI function out there; for instance, we will not support APIs for things such as GUIs, scripting languages, or databases
|
||||
= help: this means the program tried to do something Miri does not support; it does not indicate a bug in the program
|
||||
= note: BACKTRACE:
|
||||
= note: inside `main` at tests/fail/unsupported_foreign_function.rs:LL:CC
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@ error: unsupported operation: can't call foreign function `foo` on $OS
|
|||
LL | foo();
|
||||
| ^^^^^ can't call foreign function `foo` on $OS
|
||||
|
|
||||
= help: if this is a basic API commonly used on this target, please report an issue with Miri
|
||||
= help: however, note that Miri does not aim to support every FFI function out there; for instance, we will not support APIs for things such as GUIs, scripting languages, or databases
|
||||
= help: this means the program tried to do something Miri does not support; it does not indicate a bug in the program
|
||||
= note: BACKTRACE:
|
||||
= note: inside `main` at tests/native-lib/fail/function_not_in_so.rs:LL:CC
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@ error: unsupported operation: can't call foreign function `not_exported` on $OS
|
|||
LL | not_exported();
|
||||
| ^^^^^^^^^^^^^^ can't call foreign function `not_exported` on $OS
|
||||
|
|
||||
= help: if this is a basic API commonly used on this target, please report an issue with Miri
|
||||
= help: however, note that Miri does not aim to support every FFI function out there; for instance, we will not support APIs for things such as GUIs, scripting languages, or databases
|
||||
= help: this means the program tried to do something Miri does not support; it does not indicate a bug in the program
|
||||
= note: BACKTRACE:
|
||||
= note: inside `main` at tests/native-lib/fail/private_function.rs:LL:CC
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue