Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 12 pull requests #131948

Merged
merged 25 commits into from
Oct 20, 2024
Merged
Changes from 2 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
7ff71e5
Remove invalid help diagnostics for const pointer
chenyukang Jul 13, 2024
e9cf280
warn less about non-exhaustive in ffi
workingjubilee Oct 17, 2023
99d5f3b
Stop inverting expectation in normalization errors
compiler-errors Oct 16, 2024
6d88158
Remove TODO in proc_macro now `const_refs_to_static` is stable
GnomedDev Oct 16, 2024
62aa8f0
compiler: Embed consensus in `lint::types::improper_ctypes`
workingjubilee Sep 19, 2024
aa299a9
Add codegen test for branchy bool match
clubby789 Oct 19, 2024
d841146
replace STATX_ALL with (STATX_BASIC_STATS | STATX_BTIME) as former is…
klensy Oct 19, 2024
d82a21f
Warn on redundant `--cfg` directive when revisions are used
clubby789 Oct 19, 2024
fa47823
use tracked_path in rustc_fluent_macro
usamoi Oct 19, 2024
ad2a649
Remove unnecessary constness
compiler-errors Oct 19, 2024
d1fa49b
feat(rustdoc-json-types): introduce rustc-hash feature
jalil-salame Oct 19, 2024
9989b1b
Use PredicateFilter instead of OnlySelfBounds
compiler-errors Oct 19, 2024
70746d0
Make sure that outer opaques capture inner opaques's lifetimes even w…
compiler-errors Oct 16, 2024
b2d132f
Rollup merge of #116863 - workingjubilee:non-exhaustive-is-not-ffi-un…
matthiaskrgr Oct 19, 2024
268fa31
Rollup merge of #127675 - chenyukang:yukang-fix-127562-addr, r=petroc…
matthiaskrgr Oct 19, 2024
e0b8e78
Rollup merge of #131772 - GnomedDev:remove-proc_macro-todo, r=petroch…
matthiaskrgr Oct 19, 2024
bc22740
Rollup merge of #131789 - compiler-errors:capture-more, r=fmease
matthiaskrgr Oct 19, 2024
559f8ce
Rollup merge of #131795 - compiler-errors:expectation, r=Nadrieril
matthiaskrgr Oct 19, 2024
91e4684
Rollup merge of #131920 - clubby789:108395-test, r=jieyouxu
matthiaskrgr Oct 19, 2024
d881cc6
Rollup merge of #131921 - klensy:statx_all, r=ChrisDenton
matthiaskrgr Oct 19, 2024
efd940d
Rollup merge of #131925 - clubby789:redundant-revision-cfg, r=jieyouxu
matthiaskrgr Oct 19, 2024
426e906
Rollup merge of #131931 - compiler-errors:constness-valid, r=fmease
matthiaskrgr Oct 19, 2024
d077d9b
Rollup merge of #131932 - usamoi:tracked-path, r=Nadrieril
matthiaskrgr Oct 19, 2024
ab7e0d0
Rollup merge of #131936 - jalil-salame:rustdoc-types-rustc-hash, r=aD…
matthiaskrgr Oct 19, 2024
2ecfdba
Rollup merge of #131939 - compiler-errors:predicate-filter, r=fmease
matthiaskrgr Oct 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions library/std/src/sys/pal/unix/fs.rs
Original file line number Diff line number Diff line change
@@ -189,7 +189,7 @@ cfg_has_statx! {{
// See: https://github.com/rust-lang/rust/issues/65662
//
// FIXME what about transient conditions like `ENOMEM`?
let err2 = cvt(statx(0, ptr::null(), 0, libc::STATX_ALL, ptr::null_mut()))
let err2 = cvt(statx(0, ptr::null(), 0, libc::STATX_BASIC_STATS | libc::STATX_BTIME, ptr::null_mut()))
.err()
.and_then(|e| e.raw_os_error());
if err2 == Some(libc::EFAULT) {
@@ -910,7 +910,7 @@ impl DirEntry {
fd,
name,
libc::AT_SYMLINK_NOFOLLOW | libc::AT_STATX_SYNC_AS_STAT,
libc::STATX_ALL,
libc::STATX_BASIC_STATS | libc::STATX_BTIME,
) } {
return ret;
}
@@ -1194,7 +1194,7 @@ impl File {
fd,
c"".as_ptr() as *const c_char,
libc::AT_EMPTY_PATH | libc::AT_STATX_SYNC_AS_STAT,
libc::STATX_ALL,
libc::STATX_BASIC_STATS | libc::STATX_BTIME,
) } {
return ret;
}
@@ -1767,7 +1767,7 @@ pub fn stat(p: &Path) -> io::Result<FileAttr> {
libc::AT_FDCWD,
p.as_ptr(),
libc::AT_STATX_SYNC_AS_STAT,
libc::STATX_ALL,
libc::STATX_BASIC_STATS | libc::STATX_BTIME,
) } {
return ret;
}
@@ -1786,7 +1786,7 @@ pub fn lstat(p: &Path) -> io::Result<FileAttr> {
libc::AT_FDCWD,
p.as_ptr(),
libc::AT_SYMLINK_NOFOLLOW | libc::AT_STATX_SYNC_AS_STAT,
libc::STATX_ALL,
libc::STATX_BASIC_STATS | libc::STATX_BTIME,
) } {
return ret;
}