Skip to content

Commit ecc006f

Browse files
committed
Change diagnostic wording
1 parent 9164512 commit ecc006f

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

src/tools/miri/src/diagnostics.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ pub fn report_error<'tcx>(
255255
],
256256
UnsupportedForeignItem(_) => {
257257
vec![
258-
note!("if this is a basic API commonly used on this target, please report an issue with Miri"),
259-
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"),
258+
note!("this means the program tried to do something Miri does not support; it does not indicate a bug in the program"),
260259
]
261260
}
262261
StackedBorrowsUb { help, history, .. } => {

src/tools/miri/tests/fail-dep/libc/unsupported_incomplete_function.stderr

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ error: unsupported operation: can't call foreign function `signal` on $OS
44
LL | libc::signal(libc::SIGPIPE, libc::SIG_IGN);
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't call foreign function `signal` on $OS
66
|
7-
= help: if this is a basic API commonly used on this target, please report an issue with Miri
8-
= 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
7+
= help: this means the program tried to do something Miri does not support; it does not indicate a bug in the program
98
= note: BACKTRACE:
109
= note: inside `main` at tests/fail-dep/libc/unsupported_incomplete_function.rs:LL:CC
1110

src/tools/miri/tests/fail/alloc/no_global_allocator.stderr

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ error: unsupported operation: can't call foreign function `__rust_alloc` on $OS
44
LL | __rust_alloc(1, 1);
55
| ^^^^^^^^^^^^^^^^^^ can't call foreign function `__rust_alloc` on $OS
66
|
7-
= help: if this is a basic API commonly used on this target, please report an issue with Miri
8-
= 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
7+
= help: this means the program tried to do something Miri does not support; it does not indicate a bug in the program
98
= note: BACKTRACE:
109
= note: inside `miri_start` at tests/fail/alloc/no_global_allocator.rs:LL:CC
1110

src/tools/miri/tests/fail/unsupported_foreign_function.stderr

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ error: unsupported operation: can't call foreign function `foo` on $OS
44
LL | foo();
55
| ^^^^^ can't call foreign function `foo` on $OS
66
|
7-
= help: if this is a basic API commonly used on this target, please report an issue with Miri
8-
= 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
7+
= help: this means the program tried to do something Miri does not support; it does not indicate a bug in the program
98
= note: BACKTRACE:
109
= note: inside `main` at tests/fail/unsupported_foreign_function.rs:LL:CC
1110

src/tools/miri/tests/native-lib/fail/function_not_in_so.stderr

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ error: unsupported operation: can't call foreign function `foo` on $OS
44
LL | foo();
55
| ^^^^^ can't call foreign function `foo` on $OS
66
|
7-
= help: if this is a basic API commonly used on this target, please report an issue with Miri
8-
= 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
7+
= help: this means the program tried to do something Miri does not support; it does not indicate a bug in the program
98
= note: BACKTRACE:
109
= note: inside `main` at tests/native-lib/fail/function_not_in_so.rs:LL:CC
1110

src/tools/miri/tests/native-lib/fail/private_function.stderr

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ error: unsupported operation: can't call foreign function `not_exported` on $OS
44
LL | not_exported();
55
| ^^^^^^^^^^^^^^ can't call foreign function `not_exported` on $OS
66
|
7-
= help: if this is a basic API commonly used on this target, please report an issue with Miri
8-
= 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
7+
= help: this means the program tried to do something Miri does not support; it does not indicate a bug in the program
98
= note: BACKTRACE:
109
= note: inside `main` at tests/native-lib/fail/private_function.rs:LL:CC
1110

0 commit comments

Comments
 (0)