Skip to content

Rollup of 10 pull requests #143148

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

Closed
wants to merge 64 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
1bbabb7
std::net: adding `unix_socket_exclbind` feature for solaris/illumos.
devnexen Apr 4, 2024
de213b9
Preparing for merge from rustc
Jun 17, 2025
fdc01cf
Merge from rustc
Jun 17, 2025
7dfa752
Merge pull request #4402 from rust-lang/rustup-2025-06-17
RalfJung Jun 17, 2025
fc7480a
Preparing for merge from rustc
Jun 18, 2025
140479d
Merge from rustc
Jun 18, 2025
e8fccab
Merge pull request #4404 from rust-lang/rustup-2025-06-18
RalfJung Jun 18, 2025
2701dbb
minimal ptrace setup
nia-e May 27, 2025
e857c65
Merge pull request #4401 from nia-e/barebones-ptrace
oli-obk Jun 18, 2025
19c6f75
Preparing for merge from rustc
Jun 19, 2025
e943342
Merge from rustc
Jun 19, 2025
c35c60d
Merge pull request #4407 from rust-lang/rustup-2025-06-19
RalfJung Jun 19, 2025
f3383e4
Do not include NUL-terminator in computed length
Darksonn Jun 12, 2025
a009612
Allow building Miri with --features from miri-script
Stypox Apr 9, 2025
487feb9
Merge pull request #4396 from Stypox/build-with-features
RalfJung Jun 19, 2025
a9cc316
isolated_alloc: directly use mmap for allocations
nia-e May 31, 2025
9eee9ee
Merge pull request #4362 from nia-e/fix-alloc-perf
RalfJung Jun 20, 2025
422cd5d
Preparing for merge from rustc
Jun 20, 2025
fd7fb5e
Merge from rustc
Jun 20, 2025
c461e50
Merge pull request #4409 from rust-lang/rustup-2025-06-20
RalfJung Jun 20, 2025
fdc2d52
supervisor bits of ffi ptracing
nia-e May 27, 2025
d20f3a8
fix dumb mistake
nia-e Jun 19, 2025
6a0976a
cfg if
nia-e Jun 20, 2025
a536d89
nonnulls
nia-e Jun 20, 2025
d59518d
error rework
nia-e Jun 20, 2025
02df2b1
Update src/shims/trace/parent.rs
nia-e Jun 20, 2025
733284f
fmt
nia-e Jun 20, 2025
7f0dbba
Merge pull request #4405 from nia-e/standalone-ptrace
oli-obk Jun 21, 2025
6a1b7df
Use a NonNull pointer
Darksonn Jun 23, 2025
e0f8e86
Skip unnecessary components in x64 try builds
Kobzol Jun 24, 2025
25dee4e
Skip more dist components
Kobzol Jun 24, 2025
8034154
Do not build GCC in fast try builds
Kobzol Jun 24, 2025
58bc1dc
Remove `mut`
Kobzol Jun 25, 2025
508021a
Add windows-gnullvm hosts to the manifest
mati865 Jun 25, 2025
bfa933a
Delay writing of return value of a join until after the join is succe…
Patrick-6 Jun 19, 2025
0390197
Merge pull request #4408 from Patrick-6/rework-thread-join
RalfJung Jun 26, 2025
b2be01c
rustdoc: show attributes on enum variants
lolbinarycat Jun 24, 2025
7a79454
update internal `send_signal` comment
fee1-dead Jun 27, 2025
cd1713e
BTreeSet: remove duplicated code by reusing `from_sorted_iter`
xu-cheng Jun 27, 2025
9090199
Update ui.rs
leopardracer Jun 27, 2025
3a34dac
Update README.md
leopardracer Jun 27, 2025
39092cc
Update dangling_pointer_to_raw_pointer.rs
leopardracer Jun 27, 2025
34949e3
Preparing for merge from rustc
Jun 28, 2025
3d8d4d4
Merge from rustc
Jun 28, 2025
cff5a7c
fmt
Jun 28, 2025
35e6def
clippy
RalfJung Jun 28, 2025
96a70e2
Merge pull request #4417 from rust-lang/rustup-2025-06-28
RalfJung Jun 28, 2025
00b64f8
Use tidy to sort `sym::*` items
yotamofek Jun 27, 2025
62bb621
various minor native-lib-tracing tweaks, and disable naive-lib-tracin…
RalfJung Jun 28, 2025
cde1012
de-intend some code, and extend comments
RalfJung Jun 28, 2025
5e14d0f
move all the message types into one place
RalfJung Jun 28, 2025
d6f9435
Merge pull request #4418 from RalfJung/native-lib-tracing
RalfJung Jun 28, 2025
85357d1
update lockfile
RalfJung Jun 28, 2025
8d7f053
fix miri build in bootstrap
RalfJung Jun 28, 2025
fa266fe
Rollup merge of #123476 - devnexen:std_net_solaris_exclbind, r=Mark-S…
matthiaskrgr Jun 28, 2025
ce41283
Rollup merge of #142708 - Darksonn:location-len-without-nul, r=Mark-S…
matthiaskrgr Jun 28, 2025
8abd009
Rollup merge of #142963 - Kobzol:try-build-skip, r=jieyouxu
matthiaskrgr Jun 28, 2025
d292cd3
Rollup merge of #142987 - lolbinarycat:rustdoc-non_exhaustive-enum-v-…
matthiaskrgr Jun 28, 2025
3295a89
Rollup merge of #143031 - mati865:push-mutywntmvomx, r=Mark-Simulacrum
matthiaskrgr Jun 28, 2025
5582ffb
Rollup merge of #143082 - fee1-dead-contrib:push-qvvppzukvkxt, r=Mark…
matthiaskrgr Jun 28, 2025
0a0ecaf
Rollup merge of #143110 - yotamofek:pr/tidy-sort-for-symbols, r=nneth…
matthiaskrgr Jun 28, 2025
8b12b4e
Rollup merge of #143111 - xu-cheng:btreeset_from_iter, r=Mark-Simulacrum
matthiaskrgr Jun 28, 2025
01e5abf
Rollup merge of #143114 - leopardracer:master, r=RalfJung
matthiaskrgr Jun 28, 2025
a1ceeec
Rollup merge of #143137 - RalfJung:miri-sync, r=RalfJung
matthiaskrgr Jun 28, 2025
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
151 changes: 135 additions & 16 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,26 @@ dependencies = [
"serde",
]

[[package]]
name = "capstone"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "015ef5d5ca1743e3f94af9509ba6bd2886523cfee46e48d15c2ef5216fd4ac9a"
dependencies = [
"capstone-sys",
"libc",
]

[[package]]
name = "capstone-sys"
version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2267cb8d16a1e4197863ec4284ffd1aec26fe7e57c58af46b02590a0235809a0"
dependencies = [
"cc",
"libc",
]

[[package]]
name = "cargo-miri"
version = "0.1.0"
Expand Down Expand Up @@ -738,7 +758,7 @@ dependencies = [
"tracing-subscriber",
"unified-diff",
"walkdir",
"windows",
"windows 0.61.3",
]

[[package]]
Expand Down Expand Up @@ -1592,7 +1612,7 @@ dependencies = [
"js-sys",
"log",
"wasm-bindgen",
"windows-core",
"windows-core 0.61.2",
]

[[package]]
Expand Down Expand Up @@ -1916,6 +1936,25 @@ dependencies = [
"unic-langid",
]

[[package]]
name = "ipc-channel"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6fb8251fb7bcd9ccd3725ed8deae9fe7db8e586495c9eb5b0c52e6233e5e75ea"
dependencies = [
"bincode",
"crossbeam-channel",
"fnv",
"lazy_static",
"libc",
"mio",
"rand 0.8.5",
"serde",
"tempfile",
"uuid",
"windows 0.58.0",
]

[[package]]
name = "is_terminal_polyfill"
version = "1.70.1"
Expand Down Expand Up @@ -2301,6 +2340,18 @@ dependencies = [
"adler2",
]

[[package]]
name = "mio"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c"
dependencies = [
"libc",
"log",
"wasi 0.11.1+wasi-snapshot-preview1",
"windows-sys 0.59.0",
]

[[package]]
name = "miow"
version = "0.6.0"
Expand All @@ -2316,18 +2367,22 @@ version = "0.1.0"
dependencies = [
"aes",
"bitflags",
"capstone",
"chrono",
"chrono-tz",
"colored",
"directories",
"getrandom 0.3.3",
"ipc-channel",
"libc",
"libffi",
"libloading",
"measureme",
"nix",
"rand 0.9.1",
"regex",
"rustc_version",
"serde",
"smallvec",
"tempfile",
"tikv-jemalloc-sys",
Expand Down Expand Up @@ -3519,7 +3574,7 @@ dependencies = [
"thorin-dwp",
"tracing",
"wasm-encoder 0.219.2",
"windows",
"windows 0.61.3",
]

[[package]]
Expand Down Expand Up @@ -3578,7 +3633,7 @@ dependencies = [
"tempfile",
"thin-vec",
"tracing",
"windows",
"windows 0.61.3",
]

[[package]]
Expand Down Expand Up @@ -3641,7 +3696,7 @@ dependencies = [
"shlex",
"stable_mir",
"tracing",
"windows",
"windows 0.61.3",
]

[[package]]
Expand Down Expand Up @@ -3696,7 +3751,7 @@ dependencies = [
"termcolor",
"termize",
"tracing",
"windows",
"windows 0.61.3",
]

[[package]]
Expand Down Expand Up @@ -4457,7 +4512,7 @@ dependencies = [
"rustc_target",
"termize",
"tracing",
"windows",
"windows 0.61.3",
]

[[package]]
Expand Down Expand Up @@ -5142,7 +5197,7 @@ dependencies = [
"libc",
"objc2-core-foundation",
"objc2-io-kit",
"windows",
"windows 0.61.3",
]

[[package]]
Expand Down Expand Up @@ -6034,14 +6089,24 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"

[[package]]
name = "windows"
version = "0.58.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6"
dependencies = [
"windows-core 0.58.0",
"windows-targets 0.52.6",
]

[[package]]
name = "windows"
version = "0.61.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893"
dependencies = [
"windows-collections",
"windows-core",
"windows-core 0.61.2",
"windows-future",
"windows-link",
"windows-numerics",
Expand All @@ -6064,7 +6129,20 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8"
dependencies = [
"windows-core",
"windows-core 0.61.2",
]

[[package]]
name = "windows-core"
version = "0.58.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99"
dependencies = [
"windows-implement 0.58.0",
"windows-interface 0.58.0",
"windows-result 0.2.0",
"windows-strings 0.1.0",
"windows-targets 0.52.6",
]

[[package]]
Expand All @@ -6073,11 +6151,11 @@ version = "0.61.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"
dependencies = [
"windows-implement",
"windows-interface",
"windows-implement 0.60.0",
"windows-interface 0.59.1",
"windows-link",
"windows-result",
"windows-strings",
"windows-result 0.3.4",
"windows-strings 0.4.2",
]

[[package]]
Expand All @@ -6086,11 +6164,22 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"
dependencies = [
"windows-core",
"windows-core 0.61.2",
"windows-link",
"windows-threading",
]

[[package]]
name = "windows-implement"
version = "0.58.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.103",
]

[[package]]
name = "windows-implement"
version = "0.60.0"
Expand All @@ -6102,6 +6191,17 @@ dependencies = [
"syn 2.0.103",
]

[[package]]
name = "windows-interface"
version = "0.58.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.103",
]

[[package]]
name = "windows-interface"
version = "0.59.1"
Expand All @@ -6125,10 +6225,19 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"
dependencies = [
"windows-core",
"windows-core 0.61.2",
"windows-link",
]

[[package]]
name = "windows-result"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e"
dependencies = [
"windows-targets 0.52.6",
]

[[package]]
name = "windows-result"
version = "0.3.4"
Expand All @@ -6138,6 +6247,16 @@ dependencies = [
"windows-link",
]

[[package]]
name = "windows-strings"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"
dependencies = [
"windows-result 0.2.0",
"windows-targets 0.52.6",
]

[[package]]
name = "windows-strings"
version = "0.4.2"
Expand Down
12 changes: 5 additions & 7 deletions compiler/rustc_const_eval/src/util/caller_location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ fn alloc_caller_location<'tcx>(
assert!(!filename.as_str().as_bytes().contains(&0));

let loc_details = ecx.tcx.sess.opts.unstable_opts.location_detail;
let file_wide_ptr = {
let filename = {
let filename = if loc_details.file { filename.as_str() } else { "<redacted>" };
let filename_with_nul = filename.to_owned() + "\0";
// This can fail if rustc runs out of memory right here. Trying to emit an error would be
// pointless, since that would require allocating more memory than these short strings.
let file_ptr = ecx.allocate_bytes_dedup(filename_with_nul.as_bytes()).unwrap();
Immediate::new_slice(file_ptr.into(), filename_with_nul.len().try_into().unwrap(), ecx)
let file_len = u64::try_from(filename.len()).unwrap();
Immediate::new_slice(file_ptr.into(), file_len, ecx)
};
let line = if loc_details.line { Scalar::from_u32(line) } else { Scalar::from_u32(0) };
let col = if loc_details.column { Scalar::from_u32(col) } else { Scalar::from_u32(0) };
Expand All @@ -41,11 +42,8 @@ fn alloc_caller_location<'tcx>(
let location = ecx.allocate(loc_layout, MemoryKind::CallerLocation).unwrap();

// Initialize fields.
ecx.write_immediate(
file_wide_ptr,
&ecx.project_field(&location, FieldIdx::from_u32(0)).unwrap(),
)
.expect("writing to memory we just allocated cannot fail");
ecx.write_immediate(filename, &ecx.project_field(&location, FieldIdx::from_u32(0)).unwrap())
.expect("writing to memory we just allocated cannot fail");
ecx.write_scalar(line, &ecx.project_field(&location, FieldIdx::from_u32(1)).unwrap())
.expect("writing to memory we just allocated cannot fail");
ecx.write_scalar(col, &ecx.project_field(&location, FieldIdx::from_u32(2)).unwrap())
Expand Down
12 changes: 0 additions & 12 deletions compiler/rustc_macros/src/symbols.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,6 @@ fn symbols_with_errors(input: TokenStream) -> (TokenStream, Vec<syn::Error>) {
let mut symbols_stream = quote! {};
let mut prefill_stream = quote! {};
let mut entries = Entries::with_capacity(input.keywords.len() + input.symbols.len() + 10);
let mut prev_key: Option<(Span, String)> = None;

let mut check_order = |span: Span, s: &str, errors: &mut Errors| {
if let Some((prev_span, ref prev_str)) = prev_key {
if s < prev_str {
errors.error(span, format!("Symbol `{s}` must precede `{prev_str}`"));
errors.error(prev_span, format!("location of previous symbol `{prev_str}`"));
}
}
prev_key = Some((span, s.to_string()));
};

// Generate the listed keywords.
for keyword in input.keywords.iter() {
Expand All @@ -219,7 +208,6 @@ fn symbols_with_errors(input: TokenStream) -> (TokenStream, Vec<syn::Error>) {
// Generate the listed symbols.
for symbol in input.symbols.iter() {
let name = &symbol.name;
check_order(symbol.name.span(), &name.to_string(), &mut errors);

let value = match &symbol.value {
Value::SameAsName => name.to_string(),
Expand Down
15 changes: 0 additions & 15 deletions compiler/rustc_macros/src/symbols/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,3 @@ fn check_dup_symbol_and_keyword() {
};
test_symbols_macro(input, &["Symbol `splat` is duplicated", "location of previous definition"]);
}

#[test]
fn check_symbol_order() {
let input = quote! {
Keywords {}
Symbols {
zebra,
aardvark,
}
};
test_symbols_macro(
input,
&["Symbol `aardvark` must precede `zebra`", "location of previous symbol `zebra`"],
);
}
Loading