Skip to content

Commit d8db035

Browse files
committed
bless you
1 parent 4a2eeae commit d8db035

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/tools/miri/tests/fail/shims/fs/isolated_file.stderr

+7-5
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ LL | let fd = cvt_r(|| unsafe { open64(path.as_ptr(), flags, opts.mode a
1010
= note: inside closure at RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC
1111
= 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
1212
= note: inside `std::sys::PLATFORM::fs::File::open_c` at RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC
13-
= note: inside closure at RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC
14-
= note: inside `std::sys::PLATFORM::small_c_string::run_with_cstr::<std::sys::PLATFORM::fs::File, [closure@std::sys::PLATFORM::fs::File::open::{closure#0}]>` at RUSTLIB/std/src/sys/PLATFORM/small_c_string.rs:LL:CC
15-
= note: inside `std::sys::PLATFORM::small_c_string::run_path_with_cstr::<std::sys::PLATFORM::fs::File, [closure@std::sys::PLATFORM::fs::File::open::{closure#0}]>` at RUSTLIB/std/src/sys/PLATFORM/small_c_string.rs:LL:CC
16-
= note: inside `std::sys::PLATFORM::fs::File::open` at RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC
13+
= note: inside `std::sys::PLATFORM::fs::File::open_native` at RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC
1714
= note: inside `std::fs::OpenOptions::_open` at RUSTLIB/std/src/fs.rs:LL:CC
18-
= note: inside `std::fs::OpenOptions::open::<&std::path::Path>` at RUSTLIB/std/src/fs.rs:LL:CC
15+
= note: inside closure at RUSTLIB/std/src/fs.rs:LL:CC
16+
= note: inside closure at RUSTLIB/std/src/path.rs:LL:CC
17+
= note: inside `std::sys::PLATFORM::small_c_string::run_with_cstr::<std::fs::File, [closure@<&str as std::path::PathLike>::with_native_path<std::fs::File, [closure@std::fs::OpenOptions::open<&str>::{closure#0}]>::{closure#0}]>` at RUSTLIB/std/src/sys/PLATFORM/small_c_string.rs:LL:CC
18+
= note: inside `std::sys::PLATFORM::small_c_string::run_path_with_cstr::<std::fs::File, [closure@<&str as std::path::PathLike>::with_native_path<std::fs::File, [closure@std::fs::OpenOptions::open<&str>::{closure#0}]>::{closure#0}]>` at RUSTLIB/std/src/sys/PLATFORM/small_c_string.rs:LL:CC
19+
= note: inside `<&str as std::path::PathLike>::with_native_path::<std::fs::File, [closure@std::fs::OpenOptions::open<&str>::{closure#0}]>` at RUSTLIB/std/src/path.rs:LL:CC
20+
= note: inside `std::fs::OpenOptions::open::<&str>` at RUSTLIB/std/src/fs.rs:LL:CC
1921
= note: inside `std::fs::File::open::<&str>` at RUSTLIB/std/src/fs.rs:LL:CC
2022
note: inside `main`
2123
--> $DIR/isolated_file.rs:LL:CC

tests/ui/async-await/issue-72442.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ LL | let mut f = File::open(path.to_str())?;
66
| |
77
| required by a bound introduced by this call
88
|
9+
= help: the trait `PathLike` is implemented for `&NativePath`
10+
= note: required for `Option<&str>` to implement `PathLike`
911
note: required by a bound in `File::open`
1012
--> $SRC_DIR/std/src/fs.rs:LL:COL
1113

0 commit comments

Comments
 (0)