You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(None, format!("pass the flag `-Zmiri-disable-isolation` to disable isolation;")),
229
231
(None, format!("or pass `-Zmiri-isolation-error=warn` to configure Miri to return an error code from isolated operations (if supported for that operation) and continue with a warning")),
230
232
],
233
+
UnsupportedForeignItem(_) => {
234
+
vec![
235
+
(None, format!("if this is a basic API commonly used on this target, please report an issue with Miri")),
236
+
(None, format!("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")),
(None, format!("this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support")),
325
-
(None, format!("if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there")),
326
333
],
327
334
UndefinedBehavior(AlignmentCheckFailed{ .. })
328
335
if ecx.machine.check_alignment == AlignmentCheck::Symbolic
Copy file name to clipboardExpand all lines: src/tools/miri/tests/extern-so/fail/function_not_in_so.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@ error: unsupported operation: can't call foreign function `foo` on $OS
4
4
LL | foo();
5
5
| ^^^^^ can't call foreign function `foo` on $OS
6
6
|
7
-
= help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
8
-
= help: if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there
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
9
9
= note: BACKTRACE:
10
10
= note: inside `main` at $DIR/function_not_in_so.rs:LL:CC
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail-dep/shims/fs/close_stdout.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ LL | libc::close(1);
5
5
| ^^^^^^^^^^^^^^ cannot close stdout
6
6
|
7
7
= help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
8
-
= help: if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there
9
8
= note: BACKTRACE:
10
9
= note: inside `main` at $DIR/close_stdout.rs:LL:CC
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot read from stdout
6
6
|
7
7
= help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
8
-
= help: if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there
9
8
= note: BACKTRACE:
10
9
= note: inside `main` at $DIR/read_from_stdout.rs:LL:CC
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot write to stdin
6
6
|
7
7
= help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
8
-
= help: if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there
9
8
= note: BACKTRACE:
10
9
= note: inside `main` at $DIR/write_to_stdin.rs:LL:CC
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail-dep/tokio/sleep.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@ LL | | ))
10
10
| |__________^ returning ready events from epoll_wait is not yet implemented
11
11
|
12
12
= help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
13
-
= help: if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail-dep/unsupported_incomplete_function.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@ error: unsupported operation: can't call foreign function `signal` on $OS
4
4
LL | libc::signal(libc::SIGPIPE, libc::SIG_IGN);
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't call foreign function `signal` on $OS
6
6
|
7
-
= help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
8
-
= help: if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there
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
9
9
= note: BACKTRACE:
10
10
= note: inside `main` at $DIR/unsupported_incomplete_function.rs:LL:CC
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/alloc/no_global_allocator.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@ error: unsupported operation: can't call foreign function `__rust_alloc` on $OS
4
4
LL | __rust_alloc(1, 1);
5
5
| ^^^^^^^^^^^^^^^^^^ can't call foreign function `__rust_alloc` on $OS
6
6
|
7
-
= help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
8
-
= help: if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there
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
9
9
= note: BACKTRACE:
10
10
= note: inside `start` at $DIR/no_global_allocator.rs:LL:CC
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/extern-type-field-offset.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ LL | let _field = &x.a;
5
5
| ^^^^ `extern type` does not have a known offset
6
6
|
7
7
= help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
8
-
= help: if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there
9
8
= note: BACKTRACE:
10
9
= note: inside `main` at $DIR/extern-type-field-offset.rs:LL:CC
| ^^^ extern static `FOO` is not supported by Miri
6
6
|
7
7
= help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
8
-
= help: if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there
9
8
= note: BACKTRACE:
10
9
= note: inside `main` at $DIR/extern_static.rs:LL:CC
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/extern_static_in_const.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ LL | let _val = X;
5
5
| ^ extern static `E` is not supported by Miri
6
6
|
7
7
= help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
8
-
= help: if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there
9
8
= note: BACKTRACE:
10
9
= note: inside `main` at $DIR/extern_static_in_const.rs:LL:CC
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/extern_static_wrong_size.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ LL | let _val = unsafe { environ };
5
5
| ^^^^^^^ extern static `environ` has been declared as `extern_static_wrong_size::environ` with a size of 1 bytes and alignment of 1 bytes, but Miri emulates it via an extern static shim with a size of N bytes and alignment of N bytes
6
6
|
7
7
= help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
8
-
= help: if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there
9
8
= note: BACKTRACE:
10
9
= note: inside `main` at $DIR/extern_static_wrong_size.rs:LL:CC
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ miri can only use intrinsic fallback bodies that check UB. After verifying that `ptr_guaranteed_cmp` does so, add the `#[miri::intrinsic_fallback_checks_ub]` attribute to it; also ping @rust-lang/miri when you do that
6
6
|
7
7
= help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
8
-
= help: if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there
9
8
= note: BACKTRACE:
10
9
= note: inside `main` at $DIR/intrinsic_fallback_checks_ub.rs:LL:CC
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/issue-miri-3288-ice-symbolic-alignment-extern-static.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ LL | let _val = *DISPATCH_QUEUE_CONCURRENT;
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^ extern static `_dispatch_queue_attr_concurrent` is not supported by Miri
6
6
|
7
7
= help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
8
-
= help: if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there
9
8
= note: BACKTRACE:
10
9
= note: inside `main` at $DIR/issue-miri-3288-ice-symbolic-alignment-extern-static.rs:LL:CC
= help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
8
-
= help: if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there
9
8
= note: BACKTRACE:
10
9
= note: inside `main` at $DIR/bad-backtrace-flags.rs:LL:CC
= help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
8
-
= help: if this is a basic API commonly used on this target, please report an issue; but note that Miri does not aim to support every FFI function out there
9
8
= note: BACKTRACE:
10
9
= note: inside `main` at $DIR/bad-backtrace-resolve-flags.rs:LL:CC
0 commit comments