|
1 | 1 | error: unsupported operation: `open` not available when isolation is enabled
|
| 2 | + --> RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC |
| 3 | + | |
| 4 | +LL | let fd = cvt_r(|| unsafe { open64(path.as_ptr(), flags, opts.mode as c_int) })?; |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `open` not available when isolation is enabled |
2 | 6 | |
|
3 | 7 | = help: pass the flag `-Zmiri-disable-isolation` to disable isolation;
|
4 | 8 | = help: 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
|
5 | 9 |
|
6 |
| - = note: inside closure at rustc_src/src/sys/PLATFORM/fs.rs:LL:CC |
7 |
| - = note: inside `std::sys::PLATFORM::cvt_r::<i32, [closure@std::sys::PLATFORM::fs::File::open_c::{closure#0}]>` at rustc_src/src/sys/PLATFORM/mod.rs:LL:CC |
8 |
| - = note: inside `std::sys::PLATFORM::fs::File::open_c` at rustc_src/src/sys/PLATFORM/fs.rs:LL:CC |
9 |
| - = note: inside `std::sys::PLATFORM::fs::File::open` at rustc_src/src/sys/PLATFORM/fs.rs:LL:CC |
10 |
| - = note: inside `std::fs::OpenOptions::_open` at rustc_src/src/fs.rs:LL:CC |
11 |
| - = note: inside `std::fs::OpenOptions::open::<&std::path::Path>` at rustc_src/src/fs.rs:LL:CC |
12 |
| - = note: inside `std::fs::File::open::<&str>` at rustc_src/src/fs.rs:LL:CC |
| 10 | + = note: inside closure at RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC |
| 11 | + = note: inside `std::sys::PLATFORM::cvt_r::<i32, [closure@std::sys::PLATFORM::fs::File::open_c::{closure#0}]>` at RUSTLIB/std/src/sys/PLATFORM/mod.rs:LL:CC |
| 12 | + = note: inside `std::sys::PLATFORM::fs::File::open_c` at RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC |
| 13 | + = note: inside `std::sys::PLATFORM::fs::File::open` at RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC |
| 14 | + = note: inside `std::fs::OpenOptions::_open` at RUSTLIB/std/src/fs.rs:LL:CC |
| 15 | + = note: inside `std::fs::OpenOptions::open::<&std::path::Path>` at RUSTLIB/std/src/fs.rs:LL:CC |
| 16 | + = note: inside `std::fs::File::open::<&str>` at RUSTLIB/std/src/fs.rs:LL:CC |
13 | 17 | note: inside `main` at $DIR/isolated_file.rs:LL:CC
|
14 | 18 | --> $DIR/isolated_file.rs:LL:CC
|
15 | 19 | |
|
|
0 commit comments