Commit 5bb385d

Browse files
authored
Merge pull request #4699 from rust-lang/rustup-2025-11-17
Automatic Rustup
2 parents 4ea921a + 90f1f33 commit 5bb385d

317 files changed

Lines changed: 7104 additions & 4935 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ no_llvm_build
4848
/llvm/
4949
/mingw-build/
5050
/build
51-
/build-rust-analyzer/
51+
/build-rust-analyzer
5252
/dist/
5353
/unicode-downloads
5454
/target

‎Cargo.lock‎

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ dependencies = [
8080

8181
[[package]]
8282
name = "annotate-snippets"
83-
version = "0.12.8"
83+
version = "0.12.9"
8484
source = "registry+https://github.com/rust-lang/crates.io-index"
85-
checksum = "025c7edcdffa4ccc5c0905f472a0ae3759378cfbef88ef518a3575e19ae3aebd"
85+
checksum = "a44baf24dd94e781f74dfe67ffee75a09a57971ddf0f615a178b4f6d404b48ff"
8686
dependencies = [
8787
"anstyle",
8888
"unicode-width 0.2.2",
@@ -3766,7 +3766,7 @@ dependencies = [
37663766
name = "rustc_errors"
37673767
version = "0.0.0"
37683768
dependencies = [
3769-
"annotate-snippets 0.12.8",
3769+
"annotate-snippets 0.12.9",
37703770
"anstream",
37713771
"anstyle",
37723772
"derive_setters",
@@ -6070,9 +6070,9 @@ dependencies = [
60706070

60716071
[[package]]
60726072
name = "wasi-preview1-component-adapter-provider"
6073-
version = "37.0.2"
6073+
version = "38.0.4"
60746074
source = "registry+https://github.com/rust-lang/crates.io-index"
6075-
checksum = "8d0fcd636ad2b29a7c0490799a23ad61d1c8dedfafdb970447fddd0549502b60"
6075+
checksum = "7ec3ef3783e18f2457796ed91b1e6c2adc46f2905f740d1527ab3053fe8e5682"
60766076

60776077
[[package]]
60786078
name = "wasm-bindgen"
@@ -6134,17 +6134,17 @@ dependencies = [
61346134

61356135
[[package]]
61366136
name = "wasm-component-ld"
6137-
version = "0.5.18"
6137+
version = "0.5.19"
61386138
source = "registry+https://github.com/rust-lang/crates.io-index"
6139-
checksum = "11f565dfcfd9aabb10d865b608a92ce1f93051aeb56f4c89550ed9cd97d8ce0e"
6139+
checksum = "4bfc50dd0b883d841bc1dba5ff7020ca52fa7b2c3bb1266d8bf6a09dd032e115"
61406140
dependencies = [
61416141
"anyhow",
61426142
"clap",
61436143
"lexopt",
61446144
"libc",
61456145
"tempfile",
61466146
"wasi-preview1-component-adapter-provider",
6147-
"wasmparser 0.240.0",
6147+
"wasmparser 0.241.2",
61486148
"wat",
61496149
"windows-sys 0.61.2",
61506150
"winsplit",
@@ -6171,24 +6171,24 @@ dependencies = [
61716171

61726172
[[package]]
61736173
name = "wasm-encoder"
6174-
version = "0.240.0"
6174+
version = "0.241.2"
61756175
source = "registry+https://github.com/rust-lang/crates.io-index"
6176-
checksum = "06d642d8c5ecc083aafe9ceb32809276a304547a3a6eeecceb5d8152598bc71f"
6176+
checksum = "e01164c9dda68301e34fdae536c23ed6fe90ce6d97213ccc171eebbd3d02d6b8"
61776177
dependencies = [
61786178
"leb128fmt",
6179-
"wasmparser 0.240.0",
6179+
"wasmparser 0.241.2",
61806180
]
61816181

61826182
[[package]]
61836183
name = "wasm-metadata"
6184-
version = "0.240.0"
6184+
version = "0.241.2"
61856185
source = "registry+https://github.com/rust-lang/crates.io-index"
6186-
checksum = "ee093e1e1ccffa005b9b778f7a10ccfd58e25a20eccad294a1a93168d076befb"
6186+
checksum = "876fe286f2fa416386deedebe8407e6f19e0b5aeaef3d03161e77a15fa80f167"
61876187
dependencies = [
61886188
"anyhow",
61896189
"indexmap",
6190-
"wasm-encoder 0.240.0",
6191-
"wasmparser 0.240.0",
6190+
"wasm-encoder 0.241.2",
6191+
"wasmparser 0.241.2",
61926192
]
61936193

61946194
[[package]]
@@ -6213,9 +6213,9 @@ dependencies = [
62136213

62146214
[[package]]
62156215
name = "wasmparser"
6216-
version = "0.240.0"
6216+
version = "0.241.2"
62176217
source = "registry+https://github.com/rust-lang/crates.io-index"
6218-
checksum = "b722dcf61e0ea47440b53ff83ccb5df8efec57a69d150e4f24882e4eba7e24a4"
6218+
checksum = "46d90019b1afd4b808c263e428de644f3003691f243387d30d673211ee0cb8e8"
62196219
dependencies = [
62206220
"bitflags",
62216221
"hashbrown",
@@ -6226,22 +6226,22 @@ dependencies = [
62266226

62276227
[[package]]
62286228
name = "wast"
6229-
version = "240.0.0"
6229+
version = "241.0.2"
62306230
source = "registry+https://github.com/rust-lang/crates.io-index"
6231-
checksum = "b0efe1c93db4ac562b9733e3dca19ed7fc878dba29aef22245acf84f13da4a19"
6231+
checksum = "63f66e07e2ddf531fef6344dbf94d112df7c2f23ed6ffb10962e711500b8d816"
62326232
dependencies = [
62336233
"bumpalo",
62346234
"leb128fmt",
62356235
"memchr",
62366236
"unicode-width 0.2.2",
6237-
"wasm-encoder 0.240.0",
6237+
"wasm-encoder 0.241.2",
62386238
]
62396239

62406240
[[package]]
62416241
name = "wat"
6242-
version = "1.240.0"
6242+
version = "1.241.2"
62436243
source = "registry+https://github.com/rust-lang/crates.io-index"
6244-
checksum = "4ec9b6eab7ecd4d639d78515e9ea491c9bacf494aa5eda10823bd35992cf8c1e"
6244+
checksum = "45f923705c40830af909c5dec2352ec2821202e4a66008194585e1917458a26d"
62456245
dependencies = [
62466246
"wast",
62476247
]
@@ -6679,9 +6679,9 @@ dependencies = [
66796679

66806680
[[package]]
66816681
name = "wit-component"
6682-
version = "0.240.0"
6682+
version = "0.241.2"
66836683
source = "registry+https://github.com/rust-lang/crates.io-index"
6684-
checksum = "7dc5474b078addc5fe8a72736de8da3acfb3ff324c2491133f8b59594afa1a20"
6684+
checksum = "1fd0c57df25e7ee612d946d3b7646c1ddb2310f8280aa2c17e543b66e0812241"
66856685
dependencies = [
66866686
"anyhow",
66876687
"bitflags",
@@ -6690,17 +6690,17 @@ dependencies = [
66906690
"serde",
66916691
"serde_derive",
66926692
"serde_json",
6693-
"wasm-encoder 0.240.0",
6693+
"wasm-encoder 0.241.2",
66946694
"wasm-metadata",
6695-
"wasmparser 0.240.0",
6695+
"wasmparser 0.241.2",
66966696
"wit-parser",
66976697
]
66986698

66996699
[[package]]
67006700
name = "wit-parser"
6701-
version = "0.240.0"
6701+
version = "0.241.2"
67026702
source = "registry+https://github.com/rust-lang/crates.io-index"
6703-
checksum = "9875ea3fa272f57cc1fc50f225a7b94021a7878c484b33792bccad0d93223439"
6703+
checksum = "09ef1c6ad67f35c831abd4039c02894de97034100899614d1c44e2268ad01c91"
67046704
dependencies = [
67056705
"anyhow",
67066706
"id-arena",
@@ -6711,7 +6711,7 @@ dependencies = [
67116711
"serde_derive",
67126712
"serde_json",
67136713
"unicode-xid",
6714-
"wasmparser 0.240.0",
6714+
"wasmparser 0.241.2",
67156715
]
67166716

67176717
[[package]]

‎bootstrap.example.toml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@
5959
# toolchain or changing LLVM locally, you probably want to leave this enabled.
6060
#
6161
# Set this to `true` to download if CI llvm available otherwise it builds
62-
# from `src/llvm-project`.
62+
# from `src/llvm-project`. If you set it to `true`, it's safe and time-saving to run
63+
# `git submodule deinit src/llvm-project` to avoid git updating the llvm-project submodule
64+
# when building compiler locally.
65+
#
6366
#
6467
# Set this to `"if-unchanged"` to download only if the llvm-project has not
6568
# been modified. You can also use this if you are unsure whether you're on a

‎compiler/rustc_abi/src/extern_abi.rs‎

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,56 @@ impl ExternAbi {
269269
| Self::Aapcs{ .. }
270270
| Self::Win64{ .. }
271271
| Self::SysV64{ .. }
272-
| Self::EfiApi => CVariadicStatus::Stable,
273-
Self::System{ .. } => {
274-
CVariadicStatus::Unstable{feature: rustc_span::sym::extern_system_varargs }
275-
}
272+
| Self::EfiApi
273+
| Self::System{ .. } => CVariadicStatus::Stable,
276274
_ => CVariadicStatus::NotSupported,
277275
}
278276
}
277+
278+
/// Returns whether the ABI supports guaranteed tail calls.
279+
#[cfg(feature = "nightly")]
280+
pubfnsupports_guaranteed_tail_call(self) -> bool{
281+
matchself{
282+
Self::CmseNonSecureCall | Self::CmseNonSecureEntry => {
283+
// See https://godbolt.org/z/9jhdeqErv. The CMSE calling conventions clear registers
284+
// before returning, and hence cannot guarantee a tail call.
285+
false
286+
}
287+
Self::AvrInterrupt
288+
| Self::AvrNonBlockingInterrupt
289+
| Self::Msp430Interrupt
290+
| Self::RiscvInterruptM
291+
| Self::RiscvInterruptS
292+
| Self::X86Interrupt => {
293+
// See https://godbolt.org/z/Edfjnxxcq. Interrupts cannot be called directly.
294+
false
295+
}
296+
Self::GpuKernel | Self::PtxKernel => {
297+
// See https://godbolt.org/z/jq5TE5jK1.
298+
false
299+
}
300+
Self::Custom => {
301+
// This ABI does not support calls at all (except via assembly).
302+
false
303+
}
304+
Self::C{ .. }
305+
| Self::System{ .. }
306+
| Self::Rust
307+
| Self::RustCall
308+
| Self::RustCold
309+
| Self::RustInvalid
310+
| Self::Unadjusted
311+
| Self::EfiApi
312+
| Self::Aapcs{ .. }
313+
| Self::Cdecl{ .. }
314+
| Self::Stdcall{ .. }
315+
| Self::Fastcall{ .. }
316+
| Self::Thiscall{ .. }
317+
| Self::Vectorcall{ .. }
318+
| Self::SysV64{ .. }
319+
| Self::Win64{ .. } => true,
320+
}
321+
}
279322
}
280323

281324
pubfnall_names() -> Vec<&'staticstr>{

‎compiler/rustc_ast_lowering/src/expr.rs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
19291929
/// ControlFlow::Break(residual) =>
19301930
/// #[allow(unreachable_code)]
19311931
/// // If there is an enclosing `try {...}`:
1932-
/// break 'catch_target Try::from_residual(residual),
1932+
/// break 'catch_target Residual::into_try_type(residual),
19331933
/// // Otherwise:
19341934
/// return Try::from_residual(residual),
19351935
/// }
@@ -1979,7 +1979,11 @@ impl<'hir> LoweringContext<'_, 'hir> {
19791979
let(residual_local, residual_local_nid) = self.pat_ident(try_span, residual_ident);
19801980
let residual_expr = self.expr_ident_mut(try_span, residual_ident, residual_local_nid);
19811981
let from_residual_expr = self.wrap_in_try_constructor(
1982-
hir::LangItem::TryTraitFromResidual,
1982+
ifself.catch_scope.is_some(){
1983+
hir::LangItem::ResidualIntoTryType
1984+
}else{
1985+
hir::LangItem::TryTraitFromResidual
1986+
},
19831987
try_span,
19841988
self.arena.alloc(residual_expr),
19851989
unstable_span,

‎compiler/rustc_ast_lowering/src/lib.rs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
183183
impl_trait_defs:Vec::new(),
184184
impl_trait_bounds:Vec::new(),
185185
allow_contracts:[sym::contracts_internals].into(),
186-
allow_try_trait:[sym::try_trait_v2, sym::yeet_desugar_details].into(),
186+
allow_try_trait:[
187+
sym::try_trait_v2,
188+
sym::try_trait_v2_residual,
189+
sym::yeet_desugar_details,
190+
]
191+
.into(),
187192
allow_pattern_type:[sym::pattern_types, sym::pattern_type_range_trait].into(),
188193
allow_gen_future:if tcx.features().async_fn_track_caller(){
189194
[sym::gen_future, sym::closure_track_caller].into()

‎compiler/rustc_codegen_llvm/src/back/write.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ pub(crate) unsafe fn llvm_optimize(
683683
// Here we map the old arguments to the new arguments, with an offset of 1 to make sure
684684
// that we don't use the newly added `%dyn_ptr`.
685685
unsafe{
686-
llvm::LLVMRustOffloadMapper(cx.llmod(),old_fn, new_fn);
686+
llvm::LLVMRustOffloadMapper(old_fn, new_fn);
687687
}
688688

689689
llvm::set_linkage(new_fn, llvm::get_linkage(old_fn));

0 commit comments

Comments
 (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Commit 5bb385d

Browse files
authored
Merge pull request #4699 from rust-lang/rustup-2025-11-17
Automatic Rustup
2 parents 4ea921a + 90f1f33 commit 5bb385d

317 files changed

Lines changed: 7104 additions & 4935 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ no_llvm_build
4848
/llvm/
4949
/mingw-build/
5050
/build
51-
/build-rust-analyzer/
51+
/build-rust-analyzer
5252
/dist/
5353
/unicode-downloads
5454
/target

‎Cargo.lock‎

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ dependencies = [
8080

8181
[[package]]
8282
name = "annotate-snippets"
83-
version = "0.12.8"
83+
version = "0.12.9"
8484
source = "registry+https://github.com/rust-lang/crates.io-index"
85-
checksum = "025c7edcdffa4ccc5c0905f472a0ae3759378cfbef88ef518a3575e19ae3aebd"
85+
checksum = "a44baf24dd94e781f74dfe67ffee75a09a57971ddf0f615a178b4f6d404b48ff"
8686
dependencies = [
8787
"anstyle",
8888
"unicode-width 0.2.2",
@@ -3766,7 +3766,7 @@ dependencies = [
37663766
name = "rustc_errors"
37673767
version = "0.0.0"
37683768
dependencies = [
3769-
"annotate-snippets 0.12.8",
3769+
"annotate-snippets 0.12.9",
37703770
"anstream",
37713771
"anstyle",
37723772
"derive_setters",
@@ -6070,9 +6070,9 @@ dependencies = [
60706070

60716071
[[package]]
60726072
name = "wasi-preview1-component-adapter-provider"
6073-
version = "37.0.2"
6073+
version = "38.0.4"
60746074
source = "registry+https://github.com/rust-lang/crates.io-index"
6075-
checksum = "8d0fcd636ad2b29a7c0490799a23ad61d1c8dedfafdb970447fddd0549502b60"
6075+
checksum = "7ec3ef3783e18f2457796ed91b1e6c2adc46f2905f740d1527ab3053fe8e5682"
60766076

60776077
[[package]]
60786078
name = "wasm-bindgen"
@@ -6134,17 +6134,17 @@ dependencies = [
61346134

61356135
[[package]]
61366136
name = "wasm-component-ld"
6137-
version = "0.5.18"
6137+
version = "0.5.19"
61386138
source = "registry+https://github.com/rust-lang/crates.io-index"
6139-
checksum = "11f565dfcfd9aabb10d865b608a92ce1f93051aeb56f4c89550ed9cd97d8ce0e"
6139+
checksum = "4bfc50dd0b883d841bc1dba5ff7020ca52fa7b2c3bb1266d8bf6a09dd032e115"
61406140
dependencies = [
61416141
"anyhow",
61426142
"clap",
61436143
"lexopt",
61446144
"libc",
61456145
"tempfile",
61466146
"wasi-preview1-component-adapter-provider",
6147-
"wasmparser 0.240.0",
6147+
"wasmparser 0.241.2",
61486148
"wat",
61496149
"windows-sys 0.61.2",
61506150
"winsplit",
@@ -6171,24 +6171,24 @@ dependencies = [
61716171

61726172
[[package]]
61736173
name = "wasm-encoder"
6174-
version = "0.240.0"
6174+
version = "0.241.2"
61756175
source = "registry+https://github.com/rust-lang/crates.io-index"
6176-
checksum = "06d642d8c5ecc083aafe9ceb32809276a304547a3a6eeecceb5d8152598bc71f"
6176+
checksum = "e01164c9dda68301e34fdae536c23ed6fe90ce6d97213ccc171eebbd3d02d6b8"
61776177
dependencies = [
61786178
"leb128fmt",
6179-
"wasmparser 0.240.0",
6179+
"wasmparser 0.241.2",
61806180
]
61816181

61826182
[[package]]
61836183
name = "wasm-metadata"
6184-
version = "0.240.0"
6184+
version = "0.241.2"
61856185
source = "registry+https://github.com/rust-lang/crates.io-index"
6186-
checksum = "ee093e1e1ccffa005b9b778f7a10ccfd58e25a20eccad294a1a93168d076befb"
6186+
checksum = "876fe286f2fa416386deedebe8407e6f19e0b5aeaef3d03161e77a15fa80f167"
61876187
dependencies = [
61886188
"anyhow",
61896189
"indexmap",
6190-
"wasm-encoder 0.240.0",
6191-
"wasmparser 0.240.0",
6190+
"wasm-encoder 0.241.2",
6191+
"wasmparser 0.241.2",
61926192
]
61936193

61946194
[[package]]
@@ -6213,9 +6213,9 @@ dependencies = [
62136213

62146214
[[package]]
62156215
name = "wasmparser"
6216-
version = "0.240.0"
6216+
version = "0.241.2"
62176217
source = "registry+https://github.com/rust-lang/crates.io-index"
6218-
checksum = "b722dcf61e0ea47440b53ff83ccb5df8efec57a69d150e4f24882e4eba7e24a4"
6218+
checksum = "46d90019b1afd4b808c263e428de644f3003691f243387d30d673211ee0cb8e8"
62196219
dependencies = [
62206220
"bitflags",
62216221
"hashbrown",
@@ -6226,22 +6226,22 @@ dependencies = [
62266226

62276227
[[package]]
62286228
name = "wast"
6229-
version = "240.0.0"
6229+
version = "241.0.2"
62306230
source = "registry+https://github.com/rust-lang/crates.io-index"
6231-
checksum = "b0efe1c93db4ac562b9733e3dca19ed7fc878dba29aef22245acf84f13da4a19"
6231+
checksum = "63f66e07e2ddf531fef6344dbf94d112df7c2f23ed6ffb10962e711500b8d816"
62326232
dependencies = [
62336233
"bumpalo",
62346234
"leb128fmt",
62356235
"memchr",
62366236
"unicode-width 0.2.2",
6237-
"wasm-encoder 0.240.0",
6237+
"wasm-encoder 0.241.2",
62386238
]
62396239

62406240
[[package]]
62416241
name = "wat"
6242-
version = "1.240.0"
6242+
version = "1.241.2"
62436243
source = "registry+https://github.com/rust-lang/crates.io-index"
6244-
checksum = "4ec9b6eab7ecd4d639d78515e9ea491c9bacf494aa5eda10823bd35992cf8c1e"
6244+
checksum = "45f923705c40830af909c5dec2352ec2821202e4a66008194585e1917458a26d"
62456245
dependencies = [
62466246
"wast",
62476247
]
@@ -6679,9 +6679,9 @@ dependencies = [
66796679

66806680
[[package]]
66816681
name = "wit-component"
6682-
version = "0.240.0"
6682+
version = "0.241.2"
66836683
source = "registry+https://github.com/rust-lang/crates.io-index"
6684-
checksum = "7dc5474b078addc5fe8a72736de8da3acfb3ff324c2491133f8b59594afa1a20"
6684+
checksum = "1fd0c57df25e7ee612d946d3b7646c1ddb2310f8280aa2c17e543b66e0812241"
66856685
dependencies = [
66866686
"anyhow",
66876687
"bitflags",
@@ -6690,17 +6690,17 @@ dependencies = [
66906690
"serde",
66916691
"serde_derive",
66926692
"serde_json",
6693-
"wasm-encoder 0.240.0",
6693+
"wasm-encoder 0.241.2",
66946694
"wasm-metadata",
6695-
"wasmparser 0.240.0",
6695+
"wasmparser 0.241.2",
66966696
"wit-parser",
66976697
]
66986698

66996699
[[package]]
67006700
name = "wit-parser"
6701-
version = "0.240.0"
6701+
version = "0.241.2"
67026702
source = "registry+https://github.com/rust-lang/crates.io-index"
6703-
checksum = "9875ea3fa272f57cc1fc50f225a7b94021a7878c484b33792bccad0d93223439"
6703+
checksum = "09ef1c6ad67f35c831abd4039c02894de97034100899614d1c44e2268ad01c91"
67046704
dependencies = [
67056705
"anyhow",
67066706
"id-arena",
@@ -6711,7 +6711,7 @@ dependencies = [
67116711
"serde_derive",
67126712
"serde_json",
67136713
"unicode-xid",
6714-
"wasmparser 0.240.0",
6714+
"wasmparser 0.241.2",
67156715
]
67166716

67176717
[[package]]

‎bootstrap.example.toml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@
5959
# toolchain or changing LLVM locally, you probably want to leave this enabled.
6060
#
6161
# Set this to `true` to download if CI llvm available otherwise it builds
62-
# from `src/llvm-project`.
62+
# from `src/llvm-project`. If you set it to `true`, it's safe and time-saving to run
63+
# `git submodule deinit src/llvm-project` to avoid git updating the llvm-project submodule
64+
# when building compiler locally.
65+
#
6366
#
6467
# Set this to `"if-unchanged"` to download only if the llvm-project has not
6568
# been modified. You can also use this if you are unsure whether you're on a

‎compiler/rustc_abi/src/extern_abi.rs‎

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,56 @@ impl ExternAbi {
269269
| Self::Aapcs{ .. }
270270
| Self::Win64{ .. }
271271
| Self::SysV64{ .. }
272-
| Self::EfiApi => CVariadicStatus::Stable,
273-
Self::System{ .. } => {
274-
CVariadicStatus::Unstable{feature: rustc_span::sym::extern_system_varargs }
275-
}
272+
| Self::EfiApi
273+
| Self::System{ .. } => CVariadicStatus::Stable,
276274
_ => CVariadicStatus::NotSupported,
277275
}
278276
}
277+
278+
/// Returns whether the ABI supports guaranteed tail calls.
279+
#[cfg(feature = "nightly")]
280+
pubfnsupports_guaranteed_tail_call(self) -> bool{
281+
matchself{
282+
Self::CmseNonSecureCall | Self::CmseNonSecureEntry => {
283+
// See https://godbolt.org/z/9jhdeqErv. The CMSE calling conventions clear registers
284+
// before returning, and hence cannot guarantee a tail call.
285+
false
286+
}
287+
Self::AvrInterrupt
288+
| Self::AvrNonBlockingInterrupt
289+
| Self::Msp430Interrupt
290+
| Self::RiscvInterruptM
291+
| Self::RiscvInterruptS
292+
| Self::X86Interrupt => {
293+
// See https://godbolt.org/z/Edfjnxxcq. Interrupts cannot be called directly.
294+
false
295+
}
296+
Self::GpuKernel | Self::PtxKernel => {
297+
// See https://godbolt.org/z/jq5TE5jK1.
298+
false
299+
}
300+
Self::Custom => {
301+
// This ABI does not support calls at all (except via assembly).
302+
false
303+
}
304+
Self::C{ .. }
305+
| Self::System{ .. }
306+
| Self::Rust
307+
| Self::RustCall
308+
| Self::RustCold
309+
| Self::RustInvalid
310+
| Self::Unadjusted
311+
| Self::EfiApi
312+
| Self::Aapcs{ .. }
313+
| Self::Cdecl{ .. }
314+
| Self::Stdcall{ .. }
315+
| Self::Fastcall{ .. }
316+
| Self::Thiscall{ .. }
317+
| Self::Vectorcall{ .. }
318+
| Self::SysV64{ .. }
319+
| Self::Win64{ .. } => true,
320+
}
321+
}
279322
}
280323

281324
pubfnall_names() -> Vec<&'staticstr>{

‎compiler/rustc_ast_lowering/src/expr.rs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
19291929
/// ControlFlow::Break(residual) =>
19301930
/// #[allow(unreachable_code)]
19311931
/// // If there is an enclosing `try {...}`:
1932-
/// break 'catch_target Try::from_residual(residual),
1932+
/// break 'catch_target Residual::into_try_type(residual),
19331933
/// // Otherwise:
19341934
/// return Try::from_residual(residual),
19351935
/// }
@@ -1979,7 +1979,11 @@ impl<'hir> LoweringContext<'_, 'hir> {
19791979
let(residual_local, residual_local_nid) = self.pat_ident(try_span, residual_ident);
19801980
let residual_expr = self.expr_ident_mut(try_span, residual_ident, residual_local_nid);
19811981
let from_residual_expr = self.wrap_in_try_constructor(
1982-
hir::LangItem::TryTraitFromResidual,
1982+
ifself.catch_scope.is_some(){
1983+
hir::LangItem::ResidualIntoTryType
1984+
}else{
1985+
hir::LangItem::TryTraitFromResidual
1986+
},
19831987
try_span,
19841988
self.arena.alloc(residual_expr),
19851989
unstable_span,

‎compiler/rustc_ast_lowering/src/lib.rs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
183183
impl_trait_defs:Vec::new(),
184184
impl_trait_bounds:Vec::new(),
185185
allow_contracts:[sym::contracts_internals].into(),
186-
allow_try_trait:[sym::try_trait_v2, sym::yeet_desugar_details].into(),
186+
allow_try_trait:[
187+
sym::try_trait_v2,
188+
sym::try_trait_v2_residual,
189+
sym::yeet_desugar_details,
190+
]
191+
.into(),
187192
allow_pattern_type:[sym::pattern_types, sym::pattern_type_range_trait].into(),
188193
allow_gen_future:if tcx.features().async_fn_track_caller(){
189194
[sym::gen_future, sym::closure_track_caller].into()

‎compiler/rustc_codegen_llvm/src/back/write.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ pub(crate) unsafe fn llvm_optimize(
683683
// Here we map the old arguments to the new arguments, with an offset of 1 to make sure
684684
// that we don't use the newly added `%dyn_ptr`.
685685
unsafe{
686-
llvm::LLVMRustOffloadMapper(cx.llmod(),old_fn, new_fn);
686+
llvm::LLVMRustOffloadMapper(old_fn, new_fn);
687687
}
688688

689689
llvm::set_linkage(new_fn, llvm::get_linkage(old_fn));

0 commit comments

Comments
 (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Commit 5bb385d

Browse files
authored
Merge pull request #4699 from rust-lang/rustup-2025-11-17
Automatic Rustup
2 parents 4ea921a + 90f1f33 commit 5bb385d

317 files changed

Lines changed: 7104 additions & 4935 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ no_llvm_build
4848
/llvm/
4949
/mingw-build/
5050
/build
51-
/build-rust-analyzer/
51+
/build-rust-analyzer
5252
/dist/
5353
/unicode-downloads
5454
/target

‎Cargo.lock‎

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ dependencies = [
8080

8181
[[package]]
8282
name = "annotate-snippets"
83-
version = "0.12.8"
83+
version = "0.12.9"
8484
source = "registry+https://github.com/rust-lang/crates.io-index"
85-
checksum = "025c7edcdffa4ccc5c0905f472a0ae3759378cfbef88ef518a3575e19ae3aebd"
85+
checksum = "a44baf24dd94e781f74dfe67ffee75a09a57971ddf0f615a178b4f6d404b48ff"
8686
dependencies = [
8787
"anstyle",
8888
"unicode-width 0.2.2",
@@ -3766,7 +3766,7 @@ dependencies = [
37663766
name = "rustc_errors"
37673767
version = "0.0.0"
37683768
dependencies = [
3769-
"annotate-snippets 0.12.8",
3769+
"annotate-snippets 0.12.9",
37703770
"anstream",
37713771
"anstyle",
37723772
"derive_setters",
@@ -6070,9 +6070,9 @@ dependencies = [
60706070

60716071
[[package]]
60726072
name = "wasi-preview1-component-adapter-provider"
6073-
version = "37.0.2"
6073+
version = "38.0.4"
60746074
source = "registry+https://github.com/rust-lang/crates.io-index"
6075-
checksum = "8d0fcd636ad2b29a7c0490799a23ad61d1c8dedfafdb970447fddd0549502b60"
6075+
checksum = "7ec3ef3783e18f2457796ed91b1e6c2adc46f2905f740d1527ab3053fe8e5682"
60766076

60776077
[[package]]
60786078
name = "wasm-bindgen"
@@ -6134,17 +6134,17 @@ dependencies = [
61346134

61356135
[[package]]
61366136
name = "wasm-component-ld"
6137-
version = "0.5.18"
6137+
version = "0.5.19"
61386138
source = "registry+https://github.com/rust-lang/crates.io-index"
6139-
checksum = "11f565dfcfd9aabb10d865b608a92ce1f93051aeb56f4c89550ed9cd97d8ce0e"
6139+
checksum = "4bfc50dd0b883d841bc1dba5ff7020ca52fa7b2c3bb1266d8bf6a09dd032e115"
61406140
dependencies = [
61416141
"anyhow",
61426142
"clap",
61436143
"lexopt",
61446144
"libc",
61456145
"tempfile",
61466146
"wasi-preview1-component-adapter-provider",
6147-
"wasmparser 0.240.0",
6147+
"wasmparser 0.241.2",
61486148
"wat",
61496149
"windows-sys 0.61.2",
61506150
"winsplit",
@@ -6171,24 +6171,24 @@ dependencies = [
61716171

61726172
[[package]]
61736173
name = "wasm-encoder"
6174-
version = "0.240.0"
6174+
version = "0.241.2"
61756175
source = "registry+https://github.com/rust-lang/crates.io-index"
6176-
checksum = "06d642d8c5ecc083aafe9ceb32809276a304547a3a6eeecceb5d8152598bc71f"
6176+
checksum = "e01164c9dda68301e34fdae536c23ed6fe90ce6d97213ccc171eebbd3d02d6b8"
61776177
dependencies = [
61786178
"leb128fmt",
6179-
"wasmparser 0.240.0",
6179+
"wasmparser 0.241.2",
61806180
]
61816181

61826182
[[package]]
61836183
name = "wasm-metadata"
6184-
version = "0.240.0"
6184+
version = "0.241.2"
61856185
source = "registry+https://github.com/rust-lang/crates.io-index"
6186-
checksum = "ee093e1e1ccffa005b9b778f7a10ccfd58e25a20eccad294a1a93168d076befb"
6186+
checksum = "876fe286f2fa416386deedebe8407e6f19e0b5aeaef3d03161e77a15fa80f167"
61876187
dependencies = [
61886188
"anyhow",
61896189
"indexmap",
6190-
"wasm-encoder 0.240.0",
6191-
"wasmparser 0.240.0",
6190+
"wasm-encoder 0.241.2",
6191+
"wasmparser 0.241.2",
61926192
]
61936193

61946194
[[package]]
@@ -6213,9 +6213,9 @@ dependencies = [
62136213

62146214
[[package]]
62156215
name = "wasmparser"
6216-
version = "0.240.0"
6216+
version = "0.241.2"
62176217
source = "registry+https://github.com/rust-lang/crates.io-index"
6218-
checksum = "b722dcf61e0ea47440b53ff83ccb5df8efec57a69d150e4f24882e4eba7e24a4"
6218+
checksum = "46d90019b1afd4b808c263e428de644f3003691f243387d30d673211ee0cb8e8"
62196219
dependencies = [
62206220
"bitflags",
62216221
"hashbrown",
@@ -6226,22 +6226,22 @@ dependencies = [
62266226

62276227
[[package]]
62286228
name = "wast"
6229-
version = "240.0.0"
6229+
version = "241.0.2"
62306230
source = "registry+https://github.com/rust-lang/crates.io-index"
6231-
checksum = "b0efe1c93db4ac562b9733e3dca19ed7fc878dba29aef22245acf84f13da4a19"
6231+
checksum = "63f66e07e2ddf531fef6344dbf94d112df7c2f23ed6ffb10962e711500b8d816"
62326232
dependencies = [
62336233
"bumpalo",
62346234
"leb128fmt",
62356235
"memchr",
62366236
"unicode-width 0.2.2",
6237-
"wasm-encoder 0.240.0",
6237+
"wasm-encoder 0.241.2",
62386238
]
62396239

62406240
[[package]]
62416241
name = "wat"
6242-
version = "1.240.0"
6242+
version = "1.241.2"
62436243
source = "registry+https://github.com/rust-lang/crates.io-index"
6244-
checksum = "4ec9b6eab7ecd4d639d78515e9ea491c9bacf494aa5eda10823bd35992cf8c1e"
6244+
checksum = "45f923705c40830af909c5dec2352ec2821202e4a66008194585e1917458a26d"
62456245
dependencies = [
62466246
"wast",
62476247
]
@@ -6679,9 +6679,9 @@ dependencies = [
66796679

66806680
[[package]]
66816681
name = "wit-component"
6682-
version = "0.240.0"
6682+
version = "0.241.2"
66836683
source = "registry+https://github.com/rust-lang/crates.io-index"
6684-
checksum = "7dc5474b078addc5fe8a72736de8da3acfb3ff324c2491133f8b59594afa1a20"
6684+
checksum = "1fd0c57df25e7ee612d946d3b7646c1ddb2310f8280aa2c17e543b66e0812241"
66856685
dependencies = [
66866686
"anyhow",
66876687
"bitflags",
@@ -6690,17 +6690,17 @@ dependencies = [
66906690
"serde",
66916691
"serde_derive",
66926692
"serde_json",
6693-
"wasm-encoder 0.240.0",
6693+
"wasm-encoder 0.241.2",
66946694
"wasm-metadata",
6695-
"wasmparser 0.240.0",
6695+
"wasmparser 0.241.2",
66966696
"wit-parser",
66976697
]
66986698

66996699
[[package]]
67006700
name = "wit-parser"
6701-
version = "0.240.0"
6701+
version = "0.241.2"
67026702
source = "registry+https://github.com/rust-lang/crates.io-index"
6703-
checksum = "9875ea3fa272f57cc1fc50f225a7b94021a7878c484b33792bccad0d93223439"
6703+
checksum = "09ef1c6ad67f35c831abd4039c02894de97034100899614d1c44e2268ad01c91"
67046704
dependencies = [
67056705
"anyhow",
67066706
"id-arena",
@@ -6711,7 +6711,7 @@ dependencies = [
67116711
"serde_derive",
67126712
"serde_json",
67136713
"unicode-xid",
6714-
"wasmparser 0.240.0",
6714+
"wasmparser 0.241.2",
67156715
]
67166716

67176717
[[package]]

‎bootstrap.example.toml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@
5959
# toolchain or changing LLVM locally, you probably want to leave this enabled.
6060
#
6161
# Set this to `true` to download if CI llvm available otherwise it builds
62-
# from `src/llvm-project`.
62+
# from `src/llvm-project`. If you set it to `true`, it's safe and time-saving to run
63+
# `git submodule deinit src/llvm-project` to avoid git updating the llvm-project submodule
64+
# when building compiler locally.
65+
#
6366
#
6467
# Set this to `"if-unchanged"` to download only if the llvm-project has not
6568
# been modified. You can also use this if you are unsure whether you're on a

‎compiler/rustc_abi/src/extern_abi.rs‎

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,56 @@ impl ExternAbi {
269269
| Self::Aapcs{ .. }
270270
| Self::Win64{ .. }
271271
| Self::SysV64{ .. }
272-
| Self::EfiApi => CVariadicStatus::Stable,
273-
Self::System{ .. } => {
274-
CVariadicStatus::Unstable{feature: rustc_span::sym::extern_system_varargs }
275-
}
272+
| Self::EfiApi
273+
| Self::System{ .. } => CVariadicStatus::Stable,
276274
_ => CVariadicStatus::NotSupported,
277275
}
278276
}
277+
278+
/// Returns whether the ABI supports guaranteed tail calls.
279+
#[cfg(feature = "nightly")]
280+
pubfnsupports_guaranteed_tail_call(self) -> bool{
281+
matchself{
282+
Self::CmseNonSecureCall | Self::CmseNonSecureEntry => {
283+
// See https://godbolt.org/z/9jhdeqErv. The CMSE calling conventions clear registers
284+
// before returning, and hence cannot guarantee a tail call.
285+
false
286+
}
287+
Self::AvrInterrupt
288+
| Self::AvrNonBlockingInterrupt
289+
| Self::Msp430Interrupt
290+
| Self::RiscvInterruptM
291+
| Self::RiscvInterruptS
292+
| Self::X86Interrupt => {
293+
// See https://godbolt.org/z/Edfjnxxcq. Interrupts cannot be called directly.
294+
false
295+
}
296+
Self::GpuKernel | Self::PtxKernel => {
297+
// See https://godbolt.org/z/jq5TE5jK1.
298+
false
299+
}
300+
Self::Custom => {
301+
// This ABI does not support calls at all (except via assembly).
302+
false
303+
}
304+
Self::C{ .. }
305+
| Self::System{ .. }
306+
| Self::Rust
307+
| Self::RustCall
308+
| Self::RustCold
309+
| Self::RustInvalid
310+
| Self::Unadjusted
311+
| Self::EfiApi
312+
| Self::Aapcs{ .. }
313+
| Self::Cdecl{ .. }
314+
| Self::Stdcall{ .. }
315+
| Self::Fastcall{ .. }
316+
| Self::Thiscall{ .. }
317+
| Self::Vectorcall{ .. }
318+
| Self::SysV64{ .. }
319+
| Self::Win64{ .. } => true,
320+
}
321+
}
279322
}
280323

281324
pubfnall_names() -> Vec<&'staticstr>{

‎compiler/rustc_ast_lowering/src/expr.rs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
19291929
/// ControlFlow::Break(residual) =>
19301930
/// #[allow(unreachable_code)]
19311931
/// // If there is an enclosing `try {...}`:
1932-
/// break 'catch_target Try::from_residual(residual),
1932+
/// break 'catch_target Residual::into_try_type(residual),
19331933
/// // Otherwise:
19341934
/// return Try::from_residual(residual),
19351935
/// }
@@ -1979,7 +1979,11 @@ impl<'hir> LoweringContext<'_, 'hir> {
19791979
let(residual_local, residual_local_nid) = self.pat_ident(try_span, residual_ident);
19801980
let residual_expr = self.expr_ident_mut(try_span, residual_ident, residual_local_nid);
19811981
let from_residual_expr = self.wrap_in_try_constructor(
1982-
hir::LangItem::TryTraitFromResidual,
1982+
ifself.catch_scope.is_some(){
1983+
hir::LangItem::ResidualIntoTryType
1984+
}else{
1985+
hir::LangItem::TryTraitFromResidual
1986+
},
19831987
try_span,
19841988
self.arena.alloc(residual_expr),
19851989
unstable_span,

‎compiler/rustc_ast_lowering/src/lib.rs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
183183
impl_trait_defs:Vec::new(),
184184
impl_trait_bounds:Vec::new(),
185185
allow_contracts:[sym::contracts_internals].into(),
186-
allow_try_trait:[sym::try_trait_v2, sym::yeet_desugar_details].into(),
186+
allow_try_trait:[
187+
sym::try_trait_v2,
188+
sym::try_trait_v2_residual,
189+
sym::yeet_desugar_details,
190+
]
191+
.into(),
187192
allow_pattern_type:[sym::pattern_types, sym::pattern_type_range_trait].into(),
188193
allow_gen_future:if tcx.features().async_fn_track_caller(){
189194
[sym::gen_future, sym::closure_track_caller].into()

‎compiler/rustc_codegen_llvm/src/back/write.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ pub(crate) unsafe fn llvm_optimize(
683683
// Here we map the old arguments to the new arguments, with an offset of 1 to make sure
684684
// that we don't use the newly added `%dyn_ptr`.
685685
unsafe{
686-
llvm::LLVMRustOffloadMapper(cx.llmod(),old_fn, new_fn);
686+
llvm::LLVMRustOffloadMapper(old_fn, new_fn);
687687
}
688688

689689
llvm::set_linkage(new_fn, llvm::get_linkage(old_fn));

0 commit comments

Comments
 (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Commit 5bb385d

Browse files
authored
Merge pull request #4699 from rust-lang/rustup-2025-11-17
Automatic Rustup
2 parents 4ea921a + 90f1f33 commit 5bb385d

317 files changed

Lines changed: 7104 additions & 4935 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ no_llvm_build
4848
/llvm/
4949
/mingw-build/
5050
/build
51-
/build-rust-analyzer/
51+
/build-rust-analyzer
5252
/dist/
5353
/unicode-downloads
5454
/target

‎Cargo.lock‎

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ dependencies = [
8080

8181
[[package]]
8282
name = "annotate-snippets"
83-
version = "0.12.8"
83+
version = "0.12.9"
8484
source = "registry+https://github.com/rust-lang/crates.io-index"
85-
checksum = "025c7edcdffa4ccc5c0905f472a0ae3759378cfbef88ef518a3575e19ae3aebd"
85+
checksum = "a44baf24dd94e781f74dfe67ffee75a09a57971ddf0f615a178b4f6d404b48ff"
8686
dependencies = [
8787
"anstyle",
8888
"unicode-width 0.2.2",
@@ -3766,7 +3766,7 @@ dependencies = [
37663766
name = "rustc_errors"
37673767
version = "0.0.0"
37683768
dependencies = [
3769-
"annotate-snippets 0.12.8",
3769+
"annotate-snippets 0.12.9",
37703770
"anstream",
37713771
"anstyle",
37723772
"derive_setters",
@@ -6070,9 +6070,9 @@ dependencies = [
60706070

60716071
[[package]]
60726072
name = "wasi-preview1-component-adapter-provider"
6073-
version = "37.0.2"
6073+
version = "38.0.4"
60746074
source = "registry+https://github.com/rust-lang/crates.io-index"
6075-
checksum = "8d0fcd636ad2b29a7c0490799a23ad61d1c8dedfafdb970447fddd0549502b60"
6075+
checksum = "7ec3ef3783e18f2457796ed91b1e6c2adc46f2905f740d1527ab3053fe8e5682"
60766076

60776077
[[package]]
60786078
name = "wasm-bindgen"
@@ -6134,17 +6134,17 @@ dependencies = [
61346134

61356135
[[package]]
61366136
name = "wasm-component-ld"
6137-
version = "0.5.18"
6137+
version = "0.5.19"
61386138
source = "registry+https://github.com/rust-lang/crates.io-index"
6139-
checksum = "11f565dfcfd9aabb10d865b608a92ce1f93051aeb56f4c89550ed9cd97d8ce0e"
6139+
checksum = "4bfc50dd0b883d841bc1dba5ff7020ca52fa7b2c3bb1266d8bf6a09dd032e115"
61406140
dependencies = [
61416141
"anyhow",
61426142
"clap",
61436143
"lexopt",
61446144
"libc",
61456145
"tempfile",
61466146
"wasi-preview1-component-adapter-provider",
6147-
"wasmparser 0.240.0",
6147+
"wasmparser 0.241.2",
61486148
"wat",
61496149
"windows-sys 0.61.2",
61506150
"winsplit",
@@ -6171,24 +6171,24 @@ dependencies = [
61716171

61726172
[[package]]
61736173
name = "wasm-encoder"
6174-
version = "0.240.0"
6174+
version = "0.241.2"
61756175
source = "registry+https://github.com/rust-lang/crates.io-index"
6176-
checksum = "06d642d8c5ecc083aafe9ceb32809276a304547a3a6eeecceb5d8152598bc71f"
6176+
checksum = "e01164c9dda68301e34fdae536c23ed6fe90ce6d97213ccc171eebbd3d02d6b8"
61776177
dependencies = [
61786178
"leb128fmt",
6179-
"wasmparser 0.240.0",
6179+
"wasmparser 0.241.2",
61806180
]
61816181

61826182
[[package]]
61836183
name = "wasm-metadata"
6184-
version = "0.240.0"
6184+
version = "0.241.2"
61856185
source = "registry+https://github.com/rust-lang/crates.io-index"
6186-
checksum = "ee093e1e1ccffa005b9b778f7a10ccfd58e25a20eccad294a1a93168d076befb"
6186+
checksum = "876fe286f2fa416386deedebe8407e6f19e0b5aeaef3d03161e77a15fa80f167"
61876187
dependencies = [
61886188
"anyhow",
61896189
"indexmap",
6190-
"wasm-encoder 0.240.0",
6191-
"wasmparser 0.240.0",
6190+
"wasm-encoder 0.241.2",
6191+
"wasmparser 0.241.2",
61926192
]
61936193

61946194
[[package]]
@@ -6213,9 +6213,9 @@ dependencies = [
62136213

62146214
[[package]]
62156215
name = "wasmparser"
6216-
version = "0.240.0"
6216+
version = "0.241.2"
62176217
source = "registry+https://github.com/rust-lang/crates.io-index"
6218-
checksum = "b722dcf61e0ea47440b53ff83ccb5df8efec57a69d150e4f24882e4eba7e24a4"
6218+
checksum = "46d90019b1afd4b808c263e428de644f3003691f243387d30d673211ee0cb8e8"
62196219
dependencies = [
62206220
"bitflags",
62216221
"hashbrown",
@@ -6226,22 +6226,22 @@ dependencies = [
62266226

62276227
[[package]]
62286228
name = "wast"
6229-
version = "240.0.0"
6229+
version = "241.0.2"
62306230
source = "registry+https://github.com/rust-lang/crates.io-index"
6231-
checksum = "b0efe1c93db4ac562b9733e3dca19ed7fc878dba29aef22245acf84f13da4a19"
6231+
checksum = "63f66e07e2ddf531fef6344dbf94d112df7c2f23ed6ffb10962e711500b8d816"
62326232
dependencies = [
62336233
"bumpalo",
62346234
"leb128fmt",
62356235
"memchr",
62366236
"unicode-width 0.2.2",
6237-
"wasm-encoder 0.240.0",
6237+
"wasm-encoder 0.241.2",
62386238
]
62396239

62406240
[[package]]
62416241
name = "wat"
6242-
version = "1.240.0"
6242+
version = "1.241.2"
62436243
source = "registry+https://github.com/rust-lang/crates.io-index"
6244-
checksum = "4ec9b6eab7ecd4d639d78515e9ea491c9bacf494aa5eda10823bd35992cf8c1e"
6244+
checksum = "45f923705c40830af909c5dec2352ec2821202e4a66008194585e1917458a26d"
62456245
dependencies = [
62466246
"wast",
62476247
]
@@ -6679,9 +6679,9 @@ dependencies = [
66796679

66806680
[[package]]
66816681
name = "wit-component"
6682-
version = "0.240.0"
6682+
version = "0.241.2"
66836683
source = "registry+https://github.com/rust-lang/crates.io-index"
6684-
checksum = "7dc5474b078addc5fe8a72736de8da3acfb3ff324c2491133f8b59594afa1a20"
6684+
checksum = "1fd0c57df25e7ee612d946d3b7646c1ddb2310f8280aa2c17e543b66e0812241"
66856685
dependencies = [
66866686
"anyhow",
66876687
"bitflags",
@@ -6690,17 +6690,17 @@ dependencies = [
66906690
"serde",
66916691
"serde_derive",
66926692
"serde_json",
6693-
"wasm-encoder 0.240.0",
6693+
"wasm-encoder 0.241.2",
66946694
"wasm-metadata",
6695-
"wasmparser 0.240.0",
6695+
"wasmparser 0.241.2",
66966696
"wit-parser",
66976697
]
66986698

66996699
[[package]]
67006700
name = "wit-parser"
6701-
version = "0.240.0"
6701+
version = "0.241.2"
67026702
source = "registry+https://github.com/rust-lang/crates.io-index"
6703-
checksum = "9875ea3fa272f57cc1fc50f225a7b94021a7878c484b33792bccad0d93223439"
6703+
checksum = "09ef1c6ad67f35c831abd4039c02894de97034100899614d1c44e2268ad01c91"
67046704
dependencies = [
67056705
"anyhow",
67066706
"id-arena",
@@ -6711,7 +6711,7 @@ dependencies = [
67116711
"serde_derive",
67126712
"serde_json",
67136713
"unicode-xid",
6714-
"wasmparser 0.240.0",
6714+
"wasmparser 0.241.2",
67156715
]
67166716

67176717
[[package]]

‎bootstrap.example.toml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@
5959
# toolchain or changing LLVM locally, you probably want to leave this enabled.
6060
#
6161
# Set this to `true` to download if CI llvm available otherwise it builds
62-
# from `src/llvm-project`.
62+
# from `src/llvm-project`. If you set it to `true`, it's safe and time-saving to run
63+
# `git submodule deinit src/llvm-project` to avoid git updating the llvm-project submodule
64+
# when building compiler locally.
65+
#
6366
#
6467
# Set this to `"if-unchanged"` to download only if the llvm-project has not
6568
# been modified. You can also use this if you are unsure whether you're on a

‎compiler/rustc_abi/src/extern_abi.rs‎

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,56 @@ impl ExternAbi {
269269
| Self::Aapcs{ .. }
270270
| Self::Win64{ .. }
271271
| Self::SysV64{ .. }
272-
| Self::EfiApi => CVariadicStatus::Stable,
273-
Self::System{ .. } => {
274-
CVariadicStatus::Unstable{feature: rustc_span::sym::extern_system_varargs }
275-
}
272+
| Self::EfiApi
273+
| Self::System{ .. } => CVariadicStatus::Stable,
276274
_ => CVariadicStatus::NotSupported,
277275
}
278276
}
277+
278+
/// Returns whether the ABI supports guaranteed tail calls.
279+
#[cfg(feature = "nightly")]
280+
pubfnsupports_guaranteed_tail_call(self) -> bool{
281+
matchself{
282+
Self::CmseNonSecureCall | Self::CmseNonSecureEntry => {
283+
// See https://godbolt.org/z/9jhdeqErv. The CMSE calling conventions clear registers
284+
// before returning, and hence cannot guarantee a tail call.
285+
false
286+
}
287+
Self::AvrInterrupt
288+
| Self::AvrNonBlockingInterrupt
289+
| Self::Msp430Interrupt
290+
| Self::RiscvInterruptM
291+
| Self::RiscvInterruptS
292+
| Self::X86Interrupt => {
293+
// See https://godbolt.org/z/Edfjnxxcq. Interrupts cannot be called directly.
294+
false
295+
}
296+
Self::GpuKernel | Self::PtxKernel => {
297+
// See https://godbolt.org/z/jq5TE5jK1.
298+
false
299+
}
300+
Self::Custom => {
301+
// This ABI does not support calls at all (except via assembly).
302+
false
303+
}
304+
Self::C{ .. }
305+
| Self::System{ .. }
306+
| Self::Rust
307+
| Self::RustCall
308+
| Self::RustCold
309+
| Self::RustInvalid
310+
| Self::Unadjusted
311+
| Self::EfiApi
312+
| Self::Aapcs{ .. }
313+
| Self::Cdecl{ .. }
314+
| Self::Stdcall{ .. }
315+
| Self::Fastcall{ .. }
316+
| Self::Thiscall{ .. }
317+
| Self::Vectorcall{ .. }
318+
| Self::SysV64{ .. }
319+
| Self::Win64{ .. } => true,
320+
}
321+
}
279322
}
280323

281324
pubfnall_names() -> Vec<&'staticstr>{

‎compiler/rustc_ast_lowering/src/expr.rs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
19291929
/// ControlFlow::Break(residual) =>
19301930
/// #[allow(unreachable_code)]
19311931
/// // If there is an enclosing `try {...}`:
1932-
/// break 'catch_target Try::from_residual(residual),
1932+
/// break 'catch_target Residual::into_try_type(residual),
19331933
/// // Otherwise:
19341934
/// return Try::from_residual(residual),
19351935
/// }
@@ -1979,7 +1979,11 @@ impl<'hir> LoweringContext<'_, 'hir> {
19791979
let(residual_local, residual_local_nid) = self.pat_ident(try_span, residual_ident);
19801980
let residual_expr = self.expr_ident_mut(try_span, residual_ident, residual_local_nid);
19811981
let from_residual_expr = self.wrap_in_try_constructor(
1982-
hir::LangItem::TryTraitFromResidual,
1982+
ifself.catch_scope.is_some(){
1983+
hir::LangItem::ResidualIntoTryType
1984+
}else{
1985+
hir::LangItem::TryTraitFromResidual
1986+
},
19831987
try_span,
19841988
self.arena.alloc(residual_expr),
19851989
unstable_span,

‎compiler/rustc_ast_lowering/src/lib.rs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
183183
impl_trait_defs:Vec::new(),
184184
impl_trait_bounds:Vec::new(),
185185
allow_contracts:[sym::contracts_internals].into(),
186-
allow_try_trait:[sym::try_trait_v2, sym::yeet_desugar_details].into(),
186+
allow_try_trait:[
187+
sym::try_trait_v2,
188+
sym::try_trait_v2_residual,
189+
sym::yeet_desugar_details,
190+
]
191+
.into(),
187192
allow_pattern_type:[sym::pattern_types, sym::pattern_type_range_trait].into(),
188193
allow_gen_future:if tcx.features().async_fn_track_caller(){
189194
[sym::gen_future, sym::closure_track_caller].into()

‎compiler/rustc_codegen_llvm/src/back/write.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ pub(crate) unsafe fn llvm_optimize(
683683
// Here we map the old arguments to the new arguments, with an offset of 1 to make sure
684684
// that we don't use the newly added `%dyn_ptr`.
685685
unsafe{
686-
llvm::LLVMRustOffloadMapper(cx.llmod(),old_fn, new_fn);
686+
llvm::LLVMRustOffloadMapper(old_fn, new_fn);
687687
}
688688

689689
llvm::set_linkage(new_fn, llvm::get_linkage(old_fn));

0 commit comments

Comments
 (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Commit 5bb385d

Browse files
authored
Merge pull request #4699 from rust-lang/rustup-2025-11-17
Automatic Rustup
2 parents 4ea921a + 90f1f33 commit 5bb385d

317 files changed

Lines changed: 7104 additions & 4935 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ no_llvm_build
4848
/llvm/
4949
/mingw-build/
5050
/build
51-
/build-rust-analyzer/
51+
/build-rust-analyzer
5252
/dist/
5353
/unicode-downloads
5454
/target

‎Cargo.lock‎

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ dependencies = [
8080

8181
[[package]]
8282
name = "annotate-snippets"
83-
version = "0.12.8"
83+
version = "0.12.9"
8484
source = "registry+https://github.com/rust-lang/crates.io-index"
85-
checksum = "025c7edcdffa4ccc5c0905f472a0ae3759378cfbef88ef518a3575e19ae3aebd"
85+
checksum = "a44baf24dd94e781f74dfe67ffee75a09a57971ddf0f615a178b4f6d404b48ff"
8686
dependencies = [
8787
"anstyle",
8888
"unicode-width 0.2.2",
@@ -3766,7 +3766,7 @@ dependencies = [
37663766
name = "rustc_errors"
37673767
version = "0.0.0"
37683768
dependencies = [
3769-
"annotate-snippets 0.12.8",
3769+
"annotate-snippets 0.12.9",
37703770
"anstream",
37713771
"anstyle",
37723772
"derive_setters",
@@ -6070,9 +6070,9 @@ dependencies = [
60706070

60716071
[[package]]
60726072
name = "wasi-preview1-component-adapter-provider"
6073-
version = "37.0.2"
6073+
version = "38.0.4"
60746074
source = "registry+https://github.com/rust-lang/crates.io-index"
6075-
checksum = "8d0fcd636ad2b29a7c0490799a23ad61d1c8dedfafdb970447fddd0549502b60"
6075+
checksum = "7ec3ef3783e18f2457796ed91b1e6c2adc46f2905f740d1527ab3053fe8e5682"
60766076

60776077
[[package]]
60786078
name = "wasm-bindgen"
@@ -6134,17 +6134,17 @@ dependencies = [
61346134

61356135
[[package]]
61366136
name = "wasm-component-ld"
6137-
version = "0.5.18"
6137+
version = "0.5.19"
61386138
source = "registry+https://github.com/rust-lang/crates.io-index"
6139-
checksum = "11f565dfcfd9aabb10d865b608a92ce1f93051aeb56f4c89550ed9cd97d8ce0e"
6139+
checksum = "4bfc50dd0b883d841bc1dba5ff7020ca52fa7b2c3bb1266d8bf6a09dd032e115"
61406140
dependencies = [
61416141
"anyhow",
61426142
"clap",
61436143
"lexopt",
61446144
"libc",
61456145
"tempfile",
61466146
"wasi-preview1-component-adapter-provider",
6147-
"wasmparser 0.240.0",
6147+
"wasmparser 0.241.2",
61486148
"wat",
61496149
"windows-sys 0.61.2",
61506150
"winsplit",
@@ -6171,24 +6171,24 @@ dependencies = [
61716171

61726172
[[package]]
61736173
name = "wasm-encoder"
6174-
version = "0.240.0"
6174+
version = "0.241.2"
61756175
source = "registry+https://github.com/rust-lang/crates.io-index"
6176-
checksum = "06d642d8c5ecc083aafe9ceb32809276a304547a3a6eeecceb5d8152598bc71f"
6176+
checksum = "e01164c9dda68301e34fdae536c23ed6fe90ce6d97213ccc171eebbd3d02d6b8"
61776177
dependencies = [
61786178
"leb128fmt",
6179-
"wasmparser 0.240.0",
6179+
"wasmparser 0.241.2",
61806180
]
61816181

61826182
[[package]]
61836183
name = "wasm-metadata"
6184-
version = "0.240.0"
6184+
version = "0.241.2"
61856185
source = "registry+https://github.com/rust-lang/crates.io-index"
6186-
checksum = "ee093e1e1ccffa005b9b778f7a10ccfd58e25a20eccad294a1a93168d076befb"
6186+
checksum = "876fe286f2fa416386deedebe8407e6f19e0b5aeaef3d03161e77a15fa80f167"
61876187
dependencies = [
61886188
"anyhow",
61896189
"indexmap",
6190-
"wasm-encoder 0.240.0",
6191-
"wasmparser 0.240.0",
6190+
"wasm-encoder 0.241.2",
6191+
"wasmparser 0.241.2",
61926192
]
61936193

61946194
[[package]]
@@ -6213,9 +6213,9 @@ dependencies = [
62136213

62146214
[[package]]
62156215
name = "wasmparser"
6216-
version = "0.240.0"
6216+
version = "0.241.2"
62176217
source = "registry+https://github.com/rust-lang/crates.io-index"
6218-
checksum = "b722dcf61e0ea47440b53ff83ccb5df8efec57a69d150e4f24882e4eba7e24a4"
6218+
checksum = "46d90019b1afd4b808c263e428de644f3003691f243387d30d673211ee0cb8e8"
62196219
dependencies = [
62206220
"bitflags",
62216221
"hashbrown",
@@ -6226,22 +6226,22 @@ dependencies = [
62266226

62276227
[[package]]
62286228
name = "wast"
6229-
version = "240.0.0"
6229+
version = "241.0.2"
62306230
source = "registry+https://github.com/rust-lang/crates.io-index"
6231-
checksum = "b0efe1c93db4ac562b9733e3dca19ed7fc878dba29aef22245acf84f13da4a19"
6231+
checksum = "63f66e07e2ddf531fef6344dbf94d112df7c2f23ed6ffb10962e711500b8d816"
62326232
dependencies = [
62336233
"bumpalo",
62346234
"leb128fmt",
62356235
"memchr",
62366236
"unicode-width 0.2.2",
6237-
"wasm-encoder 0.240.0",
6237+
"wasm-encoder 0.241.2",
62386238
]
62396239

62406240
[[package]]
62416241
name = "wat"
6242-
version = "1.240.0"
6242+
version = "1.241.2"
62436243
source = "registry+https://github.com/rust-lang/crates.io-index"
6244-
checksum = "4ec9b6eab7ecd4d639d78515e9ea491c9bacf494aa5eda10823bd35992cf8c1e"
6244+
checksum = "45f923705c40830af909c5dec2352ec2821202e4a66008194585e1917458a26d"
62456245
dependencies = [
62466246
"wast",
62476247
]
@@ -6679,9 +6679,9 @@ dependencies = [
66796679

66806680
[[package]]
66816681
name = "wit-component"
6682-
version = "0.240.0"
6682+
version = "0.241.2"
66836683
source = "registry+https://github.com/rust-lang/crates.io-index"
6684-
checksum = "7dc5474b078addc5fe8a72736de8da3acfb3ff324c2491133f8b59594afa1a20"
6684+
checksum = "1fd0c57df25e7ee612d946d3b7646c1ddb2310f8280aa2c17e543b66e0812241"
66856685
dependencies = [
66866686
"anyhow",
66876687
"bitflags",
@@ -6690,17 +6690,17 @@ dependencies = [
66906690
"serde",
66916691
"serde_derive",
66926692
"serde_json",
6693-
"wasm-encoder 0.240.0",
6693+
"wasm-encoder 0.241.2",
66946694
"wasm-metadata",
6695-
"wasmparser 0.240.0",
6695+
"wasmparser 0.241.2",
66966696
"wit-parser",
66976697
]
66986698

66996699
[[package]]
67006700
name = "wit-parser"
6701-
version = "0.240.0"
6701+
version = "0.241.2"
67026702
source = "registry+https://github.com/rust-lang/crates.io-index"
6703-
checksum = "9875ea3fa272f57cc1fc50f225a7b94021a7878c484b33792bccad0d93223439"
6703+
checksum = "09ef1c6ad67f35c831abd4039c02894de97034100899614d1c44e2268ad01c91"
67046704
dependencies = [
67056705
"anyhow",
67066706
"id-arena",
@@ -6711,7 +6711,7 @@ dependencies = [
67116711
"serde_derive",
67126712
"serde_json",
67136713
"unicode-xid",
6714-
"wasmparser 0.240.0",
6714+
"wasmparser 0.241.2",
67156715
]
67166716

67176717
[[package]]

‎bootstrap.example.toml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@
5959
# toolchain or changing LLVM locally, you probably want to leave this enabled.
6060
#
6161
# Set this to `true` to download if CI llvm available otherwise it builds
62-
# from `src/llvm-project`.
62+
# from `src/llvm-project`. If you set it to `true`, it's safe and time-saving to run
63+
# `git submodule deinit src/llvm-project` to avoid git updating the llvm-project submodule
64+
# when building compiler locally.
65+
#
6366
#
6467
# Set this to `"if-unchanged"` to download only if the llvm-project has not
6568
# been modified. You can also use this if you are unsure whether you're on a

‎compiler/rustc_abi/src/extern_abi.rs‎

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,56 @@ impl ExternAbi {
269269
| Self::Aapcs{ .. }
270270
| Self::Win64{ .. }
271271
| Self::SysV64{ .. }
272-
| Self::EfiApi => CVariadicStatus::Stable,
273-
Self::System{ .. } => {
274-
CVariadicStatus::Unstable{feature: rustc_span::sym::extern_system_varargs }
275-
}
272+
| Self::EfiApi
273+
| Self::System{ .. } => CVariadicStatus::Stable,
276274
_ => CVariadicStatus::NotSupported,
277275
}
278276
}
277+
278+
/// Returns whether the ABI supports guaranteed tail calls.
279+
#[cfg(feature = "nightly")]
280+
pubfnsupports_guaranteed_tail_call(self) -> bool{
281+
matchself{
282+
Self::CmseNonSecureCall | Self::CmseNonSecureEntry => {
283+
// See https://godbolt.org/z/9jhdeqErv. The CMSE calling conventions clear registers
284+
// before returning, and hence cannot guarantee a tail call.
285+
false
286+
}
287+
Self::AvrInterrupt
288+
| Self::AvrNonBlockingInterrupt
289+
| Self::Msp430Interrupt
290+
| Self::RiscvInterruptM
291+
| Self::RiscvInterruptS
292+
| Self::X86Interrupt => {
293+
// See https://godbolt.org/z/Edfjnxxcq. Interrupts cannot be called directly.
294+
false
295+
}
296+
Self::GpuKernel | Self::PtxKernel => {
297+
// See https://godbolt.org/z/jq5TE5jK1.
298+
false
299+
}
300+
Self::Custom => {
301+
// This ABI does not support calls at all (except via assembly).
302+
false
303+
}
304+
Self::C{ .. }
305+
| Self::System{ .. }
306+
| Self::Rust
307+
| Self::RustCall
308+
| Self::RustCold
309+
| Self::RustInvalid
310+
| Self::Unadjusted
311+
| Self::EfiApi
312+
| Self::Aapcs{ .. }
313+
| Self::Cdecl{ .. }
314+
| Self::Stdcall{ .. }
315+
| Self::Fastcall{ .. }
316+
| Self::Thiscall{ .. }
317+
| Self::Vectorcall{ .. }
318+
| Self::SysV64{ .. }
319+
| Self::Win64{ .. } => true,
320+
}
321+
}
279322
}
280323

281324
pubfnall_names() -> Vec<&'staticstr>{

‎compiler/rustc_ast_lowering/src/expr.rs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
19291929
/// ControlFlow::Break(residual) =>
19301930
/// #[allow(unreachable_code)]
19311931
/// // If there is an enclosing `try {...}`:
1932-
/// break 'catch_target Try::from_residual(residual),
1932+
/// break 'catch_target Residual::into_try_type(residual),
19331933
/// // Otherwise:
19341934
/// return Try::from_residual(residual),
19351935
/// }
@@ -1979,7 +1979,11 @@ impl<'hir> LoweringContext<'_, 'hir> {
19791979
let(residual_local, residual_local_nid) = self.pat_ident(try_span, residual_ident);
19801980
let residual_expr = self.expr_ident_mut(try_span, residual_ident, residual_local_nid);
19811981
let from_residual_expr = self.wrap_in_try_constructor(
1982-
hir::LangItem::TryTraitFromResidual,
1982+
ifself.catch_scope.is_some(){
1983+
hir::LangItem::ResidualIntoTryType
1984+
}else{
1985+
hir::LangItem::TryTraitFromResidual
1986+
},
19831987
try_span,
19841988
self.arena.alloc(residual_expr),
19851989
unstable_span,

‎compiler/rustc_ast_lowering/src/lib.rs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
183183
impl_trait_defs:Vec::new(),
184184
impl_trait_bounds:Vec::new(),
185185
allow_contracts:[sym::contracts_internals].into(),
186-
allow_try_trait:[sym::try_trait_v2, sym::yeet_desugar_details].into(),
186+
allow_try_trait:[
187+
sym::try_trait_v2,
188+
sym::try_trait_v2_residual,
189+
sym::yeet_desugar_details,
190+
]
191+
.into(),
187192
allow_pattern_type:[sym::pattern_types, sym::pattern_type_range_trait].into(),
188193
allow_gen_future:if tcx.features().async_fn_track_caller(){
189194
[sym::gen_future, sym::closure_track_caller].into()

‎compiler/rustc_codegen_llvm/src/back/write.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ pub(crate) unsafe fn llvm_optimize(
683683
// Here we map the old arguments to the new arguments, with an offset of 1 to make sure
684684
// that we don't use the newly added `%dyn_ptr`.
685685
unsafe{
686-
llvm::LLVMRustOffloadMapper(cx.llmod(),old_fn, new_fn);
686+
llvm::LLVMRustOffloadMapper(old_fn, new_fn);
687687
}
688688

689689
llvm::set_linkage(new_fn, llvm::get_linkage(old_fn));

0 commit comments

Comments
 (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Commit 5bb385d

Browse files
authored
Merge pull request #4699 from rust-lang/rustup-2025-11-17
Automatic Rustup
2 parents 4ea921a + 90f1f33 commit 5bb385d

317 files changed

Lines changed: 7104 additions & 4935 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ no_llvm_build
4848
/llvm/
4949
/mingw-build/
5050
/build
51-
/build-rust-analyzer/
51+
/build-rust-analyzer
5252
/dist/
5353
/unicode-downloads
5454
/target

‎Cargo.lock‎

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ dependencies = [
8080

8181
[[package]]
8282
name = "annotate-snippets"
83-
version = "0.12.8"
83+
version = "0.12.9"
8484
source = "registry+https://github.com/rust-lang/crates.io-index"
85-
checksum = "025c7edcdffa4ccc5c0905f472a0ae3759378cfbef88ef518a3575e19ae3aebd"
85+
checksum = "a44baf24dd94e781f74dfe67ffee75a09a57971ddf0f615a178b4f6d404b48ff"
8686
dependencies = [
8787
"anstyle",
8888
"unicode-width 0.2.2",
@@ -3766,7 +3766,7 @@ dependencies = [
37663766
name = "rustc_errors"
37673767
version = "0.0.0"
37683768
dependencies = [
3769-
"annotate-snippets 0.12.8",
3769+
"annotate-snippets 0.12.9",
37703770
"anstream",
37713771
"anstyle",
37723772
"derive_setters",
@@ -6070,9 +6070,9 @@ dependencies = [
60706070

60716071
[[package]]
60726072
name = "wasi-preview1-component-adapter-provider"
6073-
version = "37.0.2"
6073+
version = "38.0.4"
60746074
source = "registry+https://github.com/rust-lang/crates.io-index"
6075-
checksum = "8d0fcd636ad2b29a7c0490799a23ad61d1c8dedfafdb970447fddd0549502b60"
6075+
checksum = "7ec3ef3783e18f2457796ed91b1e6c2adc46f2905f740d1527ab3053fe8e5682"
60766076

60776077
[[package]]
60786078
name = "wasm-bindgen"
@@ -6134,17 +6134,17 @@ dependencies = [
61346134

61356135
[[package]]
61366136
name = "wasm-component-ld"
6137-
version = "0.5.18"
6137+
version = "0.5.19"
61386138
source = "registry+https://github.com/rust-lang/crates.io-index"
6139-
checksum = "11f565dfcfd9aabb10d865b608a92ce1f93051aeb56f4c89550ed9cd97d8ce0e"
6139+
checksum = "4bfc50dd0b883d841bc1dba5ff7020ca52fa7b2c3bb1266d8bf6a09dd032e115"
61406140
dependencies = [
61416141
"anyhow",
61426142
"clap",
61436143
"lexopt",
61446144
"libc",
61456145
"tempfile",
61466146
"wasi-preview1-component-adapter-provider",
6147-
"wasmparser 0.240.0",
6147+
"wasmparser 0.241.2",
61486148
"wat",
61496149
"windows-sys 0.61.2",
61506150
"winsplit",
@@ -6171,24 +6171,24 @@ dependencies = [
61716171

61726172
[[package]]
61736173
name = "wasm-encoder"
6174-
version = "0.240.0"
6174+
version = "0.241.2"
61756175
source = "registry+https://github.com/rust-lang/crates.io-index"
6176-
checksum = "06d642d8c5ecc083aafe9ceb32809276a304547a3a6eeecceb5d8152598bc71f"
6176+
checksum = "e01164c9dda68301e34fdae536c23ed6fe90ce6d97213ccc171eebbd3d02d6b8"
61776177
dependencies = [
61786178
"leb128fmt",
6179-
"wasmparser 0.240.0",
6179+
"wasmparser 0.241.2",
61806180
]
61816181

61826182
[[package]]
61836183
name = "wasm-metadata"
6184-
version = "0.240.0"
6184+
version = "0.241.2"
61856185
source = "registry+https://github.com/rust-lang/crates.io-index"
6186-
checksum = "ee093e1e1ccffa005b9b778f7a10ccfd58e25a20eccad294a1a93168d076befb"
6186+
checksum = "876fe286f2fa416386deedebe8407e6f19e0b5aeaef3d03161e77a15fa80f167"
61876187
dependencies = [
61886188
"anyhow",
61896189
"indexmap",
6190-
"wasm-encoder 0.240.0",
6191-
"wasmparser 0.240.0",
6190+
"wasm-encoder 0.241.2",
6191+
"wasmparser 0.241.2",
61926192
]
61936193

61946194
[[package]]
@@ -6213,9 +6213,9 @@ dependencies = [
62136213

62146214
[[package]]
62156215
name = "wasmparser"
6216-
version = "0.240.0"
6216+
version = "0.241.2"
62176217
source = "registry+https://github.com/rust-lang/crates.io-index"
6218-
checksum = "b722dcf61e0ea47440b53ff83ccb5df8efec57a69d150e4f24882e4eba7e24a4"
6218+
checksum = "46d90019b1afd4b808c263e428de644f3003691f243387d30d673211ee0cb8e8"
62196219
dependencies = [
62206220
"bitflags",
62216221
"hashbrown",
@@ -6226,22 +6226,22 @@ dependencies = [
62266226

62276227
[[package]]
62286228
name = "wast"
6229-
version = "240.0.0"
6229+
version = "241.0.2"
62306230
source = "registry+https://github.com/rust-lang/crates.io-index"
6231-
checksum = "b0efe1c93db4ac562b9733e3dca19ed7fc878dba29aef22245acf84f13da4a19"
6231+
checksum = "63f66e07e2ddf531fef6344dbf94d112df7c2f23ed6ffb10962e711500b8d816"
62326232
dependencies = [
62336233
"bumpalo",
62346234
"leb128fmt",
62356235
"memchr",
62366236
"unicode-width 0.2.2",
6237-
"wasm-encoder 0.240.0",
6237+
"wasm-encoder 0.241.2",
62386238
]
62396239

62406240
[[package]]
62416241
name = "wat"
6242-
version = "1.240.0"
6242+
version = "1.241.2"
62436243
source = "registry+https://github.com/rust-lang/crates.io-index"
6244-
checksum = "4ec9b6eab7ecd4d639d78515e9ea491c9bacf494aa5eda10823bd35992cf8c1e"
6244+
checksum = "45f923705c40830af909c5dec2352ec2821202e4a66008194585e1917458a26d"
62456245
dependencies = [
62466246
"wast",
62476247
]
@@ -6679,9 +6679,9 @@ dependencies = [
66796679

66806680
[[package]]
66816681
name = "wit-component"
6682-
version = "0.240.0"
6682+
version = "0.241.2"
66836683
source = "registry+https://github.com/rust-lang/crates.io-index"
6684-
checksum = "7dc5474b078addc5fe8a72736de8da3acfb3ff324c2491133f8b59594afa1a20"
6684+
checksum = "1fd0c57df25e7ee612d946d3b7646c1ddb2310f8280aa2c17e543b66e0812241"
66856685
dependencies = [
66866686
"anyhow",
66876687
"bitflags",
@@ -6690,17 +6690,17 @@ dependencies = [
66906690
"serde",
66916691
"serde_derive",
66926692
"serde_json",
6693-
"wasm-encoder 0.240.0",
6693+
"wasm-encoder 0.241.2",
66946694
"wasm-metadata",
6695-
"wasmparser 0.240.0",
6695+
"wasmparser 0.241.2",
66966696
"wit-parser",
66976697
]
66986698

66996699
[[package]]
67006700
name = "wit-parser"
6701-
version = "0.240.0"
6701+
version = "0.241.2"
67026702
source = "registry+https://github.com/rust-lang/crates.io-index"
6703-
checksum = "9875ea3fa272f57cc1fc50f225a7b94021a7878c484b33792bccad0d93223439"
6703+
checksum = "09ef1c6ad67f35c831abd4039c02894de97034100899614d1c44e2268ad01c91"
67046704
dependencies = [
67056705
"anyhow",
67066706
"id-arena",
@@ -6711,7 +6711,7 @@ dependencies = [
67116711
"serde_derive",
67126712
"serde_json",
67136713
"unicode-xid",
6714-
"wasmparser 0.240.0",
6714+
"wasmparser 0.241.2",
67156715
]
67166716

67176717
[[package]]

‎bootstrap.example.toml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@
5959
# toolchain or changing LLVM locally, you probably want to leave this enabled.
6060
#
6161
# Set this to `true` to download if CI llvm available otherwise it builds
62-
# from `src/llvm-project`.
62+
# from `src/llvm-project`. If you set it to `true`, it's safe and time-saving to run
63+
# `git submodule deinit src/llvm-project` to avoid git updating the llvm-project submodule
64+
# when building compiler locally.
65+
#
6366
#
6467
# Set this to `"if-unchanged"` to download only if the llvm-project has not
6568
# been modified. You can also use this if you are unsure whether you're on a

‎compiler/rustc_abi/src/extern_abi.rs‎

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,56 @@ impl ExternAbi {
269269
| Self::Aapcs{ .. }
270270
| Self::Win64{ .. }
271271
| Self::SysV64{ .. }
272-
| Self::EfiApi => CVariadicStatus::Stable,
273-
Self::System{ .. } => {
274-
CVariadicStatus::Unstable{feature: rustc_span::sym::extern_system_varargs }
275-
}
272+
| Self::EfiApi
273+
| Self::System{ .. } => CVariadicStatus::Stable,
276274
_ => CVariadicStatus::NotSupported,
277275
}
278276
}
277+
278+
/// Returns whether the ABI supports guaranteed tail calls.
279+
#[cfg(feature = "nightly")]
280+
pubfnsupports_guaranteed_tail_call(self) -> bool{
281+
matchself{
282+
Self::CmseNonSecureCall | Self::CmseNonSecureEntry => {
283+
// See https://godbolt.org/z/9jhdeqErv. The CMSE calling conventions clear registers
284+
// before returning, and hence cannot guarantee a tail call.
285+
false
286+
}
287+
Self::AvrInterrupt
288+
| Self::AvrNonBlockingInterrupt
289+
| Self::Msp430Interrupt
290+
| Self::RiscvInterruptM
291+
| Self::RiscvInterruptS
292+
| Self::X86Interrupt => {
293+
// See https://godbolt.org/z/Edfjnxxcq. Interrupts cannot be called directly.
294+
false
295+
}
296+
Self::GpuKernel | Self::PtxKernel => {
297+
// See https://godbolt.org/z/jq5TE5jK1.
298+
false
299+
}
300+
Self::Custom => {
301+
// This ABI does not support calls at all (except via assembly).
302+
false
303+
}
304+
Self::C{ .. }
305+
| Self::System{ .. }
306+
| Self::Rust
307+
| Self::RustCall
308+
| Self::RustCold
309+
| Self::RustInvalid
310+
| Self::Unadjusted
311+
| Self::EfiApi
312+
| Self::Aapcs{ .. }
313+
| Self::Cdecl{ .. }
314+
| Self::Stdcall{ .. }
315+
| Self::Fastcall{ .. }
316+
| Self::Thiscall{ .. }
317+
| Self::Vectorcall{ .. }
318+
| Self::SysV64{ .. }
319+
| Self::Win64{ .. } => true,
320+
}
321+
}
279322
}
280323

281324
pubfnall_names() -> Vec<&'staticstr>{

‎compiler/rustc_ast_lowering/src/expr.rs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
19291929
/// ControlFlow::Break(residual) =>
19301930
/// #[allow(unreachable_code)]
19311931
/// // If there is an enclosing `try {...}`:
1932-
/// break 'catch_target Try::from_residual(residual),
1932+
/// break 'catch_target Residual::into_try_type(residual),
19331933
/// // Otherwise:
19341934
/// return Try::from_residual(residual),
19351935
/// }
@@ -1979,7 +1979,11 @@ impl<'hir> LoweringContext<'_, 'hir> {
19791979
let(residual_local, residual_local_nid) = self.pat_ident(try_span, residual_ident);
19801980
let residual_expr = self.expr_ident_mut(try_span, residual_ident, residual_local_nid);
19811981
let from_residual_expr = self.wrap_in_try_constructor(
1982-
hir::LangItem::TryTraitFromResidual,
1982+
ifself.catch_scope.is_some(){
1983+
hir::LangItem::ResidualIntoTryType
1984+
}else{
1985+
hir::LangItem::TryTraitFromResidual
1986+
},
19831987
try_span,
19841988
self.arena.alloc(residual_expr),
19851989
unstable_span,

‎compiler/rustc_ast_lowering/src/lib.rs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
183183
impl_trait_defs:Vec::new(),
184184
impl_trait_bounds:Vec::new(),
185185
allow_contracts:[sym::contracts_internals].into(),
186-
allow_try_trait:[sym::try_trait_v2, sym::yeet_desugar_details].into(),
186+
allow_try_trait:[
187+
sym::try_trait_v2,
188+
sym::try_trait_v2_residual,
189+
sym::yeet_desugar_details,
190+
]
191+
.into(),
187192
allow_pattern_type:[sym::pattern_types, sym::pattern_type_range_trait].into(),
188193
allow_gen_future:if tcx.features().async_fn_track_caller(){
189194
[sym::gen_future, sym::closure_track_caller].into()

‎compiler/rustc_codegen_llvm/src/back/write.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ pub(crate) unsafe fn llvm_optimize(
683683
// Here we map the old arguments to the new arguments, with an offset of 1 to make sure
684684
// that we don't use the newly added `%dyn_ptr`.
685685
unsafe{
686-
llvm::LLVMRustOffloadMapper(cx.llmod(),old_fn, new_fn);
686+
llvm::LLVMRustOffloadMapper(old_fn, new_fn);
687687
}
688688

689689
llvm::set_linkage(new_fn, llvm::get_linkage(old_fn));

0 commit comments

Comments
 (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Commit 5bb385d

Browse files
authored
Merge pull request #4699 from rust-lang/rustup-2025-11-17
Automatic Rustup
2 parents 4ea921a + 90f1f33 commit 5bb385d

317 files changed

Lines changed: 7104 additions & 4935 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ no_llvm_build
4848
/llvm/
4949
/mingw-build/
5050
/build
51-
/build-rust-analyzer/
51+
/build-rust-analyzer
5252
/dist/
5353
/unicode-downloads
5454
/target

‎Cargo.lock‎

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ dependencies = [
8080

8181
[[package]]
8282
name = "annotate-snippets"
83-
version = "0.12.8"
83+
version = "0.12.9"
8484
source = "registry+https://github.com/rust-lang/crates.io-index"
85-
checksum = "025c7edcdffa4ccc5c0905f472a0ae3759378cfbef88ef518a3575e19ae3aebd"
85+
checksum = "a44baf24dd94e781f74dfe67ffee75a09a57971ddf0f615a178b4f6d404b48ff"
8686
dependencies = [
8787
"anstyle",
8888
"unicode-width 0.2.2",
@@ -3766,7 +3766,7 @@ dependencies = [
37663766
name = "rustc_errors"
37673767
version = "0.0.0"
37683768
dependencies = [
3769-
"annotate-snippets 0.12.8",
3769+
"annotate-snippets 0.12.9",
37703770
"anstream",
37713771
"anstyle",
37723772
"derive_setters",
@@ -6070,9 +6070,9 @@ dependencies = [
60706070

60716071
[[package]]
60726072
name = "wasi-preview1-component-adapter-provider"
6073-
version = "37.0.2"
6073+
version = "38.0.4"
60746074
source = "registry+https://github.com/rust-lang/crates.io-index"
6075-
checksum = "8d0fcd636ad2b29a7c0490799a23ad61d1c8dedfafdb970447fddd0549502b60"
6075+
checksum = "7ec3ef3783e18f2457796ed91b1e6c2adc46f2905f740d1527ab3053fe8e5682"
60766076

60776077
[[package]]
60786078
name = "wasm-bindgen"
@@ -6134,17 +6134,17 @@ dependencies = [
61346134

61356135
[[package]]
61366136
name = "wasm-component-ld"
6137-
version = "0.5.18"
6137+
version = "0.5.19"
61386138
source = "registry+https://github.com/rust-lang/crates.io-index"
6139-
checksum = "11f565dfcfd9aabb10d865b608a92ce1f93051aeb56f4c89550ed9cd97d8ce0e"
6139+
checksum = "4bfc50dd0b883d841bc1dba5ff7020ca52fa7b2c3bb1266d8bf6a09dd032e115"
61406140
dependencies = [
61416141
"anyhow",
61426142
"clap",
61436143
"lexopt",
61446144
"libc",
61456145
"tempfile",
61466146
"wasi-preview1-component-adapter-provider",
6147-
"wasmparser 0.240.0",
6147+
"wasmparser 0.241.2",
61486148
"wat",
61496149
"windows-sys 0.61.2",
61506150
"winsplit",
@@ -6171,24 +6171,24 @@ dependencies = [
61716171

61726172
[[package]]
61736173
name = "wasm-encoder"
6174-
version = "0.240.0"
6174+
version = "0.241.2"
61756175
source = "registry+https://github.com/rust-lang/crates.io-index"
6176-
checksum = "06d642d8c5ecc083aafe9ceb32809276a304547a3a6eeecceb5d8152598bc71f"
6176+
checksum = "e01164c9dda68301e34fdae536c23ed6fe90ce6d97213ccc171eebbd3d02d6b8"
61776177
dependencies = [
61786178
"leb128fmt",
6179-
"wasmparser 0.240.0",
6179+
"wasmparser 0.241.2",
61806180
]
61816181

61826182
[[package]]
61836183
name = "wasm-metadata"
6184-
version = "0.240.0"
6184+
version = "0.241.2"
61856185
source = "registry+https://github.com/rust-lang/crates.io-index"
6186-
checksum = "ee093e1e1ccffa005b9b778f7a10ccfd58e25a20eccad294a1a93168d076befb"
6186+
checksum = "876fe286f2fa416386deedebe8407e6f19e0b5aeaef3d03161e77a15fa80f167"
61876187
dependencies = [
61886188
"anyhow",
61896189
"indexmap",
6190-
"wasm-encoder 0.240.0",
6191-
"wasmparser 0.240.0",
6190+
"wasm-encoder 0.241.2",
6191+
"wasmparser 0.241.2",
61926192
]
61936193

61946194
[[package]]
@@ -6213,9 +6213,9 @@ dependencies = [
62136213

62146214
[[package]]
62156215
name = "wasmparser"
6216-
version = "0.240.0"
6216+
version = "0.241.2"
62176217
source = "registry+https://github.com/rust-lang/crates.io-index"
6218-
checksum = "b722dcf61e0ea47440b53ff83ccb5df8efec57a69d150e4f24882e4eba7e24a4"
6218+
checksum = "46d90019b1afd4b808c263e428de644f3003691f243387d30d673211ee0cb8e8"
62196219
dependencies = [
62206220
"bitflags",
62216221
"hashbrown",
@@ -6226,22 +6226,22 @@ dependencies = [
62266226

62276227
[[package]]
62286228
name = "wast"
6229-
version = "240.0.0"
6229+
version = "241.0.2"
62306230
source = "registry+https://github.com/rust-lang/crates.io-index"
6231-
checksum = "b0efe1c93db4ac562b9733e3dca19ed7fc878dba29aef22245acf84f13da4a19"
6231+
checksum = "63f66e07e2ddf531fef6344dbf94d112df7c2f23ed6ffb10962e711500b8d816"
62326232
dependencies = [
62336233
"bumpalo",
62346234
"leb128fmt",
62356235
"memchr",
62366236
"unicode-width 0.2.2",
6237-
"wasm-encoder 0.240.0",
6237+
"wasm-encoder 0.241.2",
62386238
]
62396239

62406240
[[package]]
62416241
name = "wat"
6242-
version = "1.240.0"
6242+
version = "1.241.2"
62436243
source = "registry+https://github.com/rust-lang/crates.io-index"
6244-
checksum = "4ec9b6eab7ecd4d639d78515e9ea491c9bacf494aa5eda10823bd35992cf8c1e"
6244+
checksum = "45f923705c40830af909c5dec2352ec2821202e4a66008194585e1917458a26d"
62456245
dependencies = [
62466246
"wast",
62476247
]
@@ -6679,9 +6679,9 @@ dependencies = [
66796679

66806680
[[package]]
66816681
name = "wit-component"
6682-
version = "0.240.0"
6682+
version = "0.241.2"
66836683
source = "registry+https://github.com/rust-lang/crates.io-index"
6684-
checksum = "7dc5474b078addc5fe8a72736de8da3acfb3ff324c2491133f8b59594afa1a20"
6684+
checksum = "1fd0c57df25e7ee612d946d3b7646c1ddb2310f8280aa2c17e543b66e0812241"
66856685
dependencies = [
66866686
"anyhow",
66876687
"bitflags",
@@ -6690,17 +6690,17 @@ dependencies = [
66906690
"serde",
66916691
"serde_derive",
66926692
"serde_json",
6693-
"wasm-encoder 0.240.0",
6693+
"wasm-encoder 0.241.2",
66946694
"wasm-metadata",
6695-
"wasmparser 0.240.0",
6695+
"wasmparser 0.241.2",
66966696
"wit-parser",
66976697
]
66986698

66996699
[[package]]
67006700
name = "wit-parser"
6701-
version = "0.240.0"
6701+
version = "0.241.2"
67026702
source = "registry+https://github.com/rust-lang/crates.io-index"
6703-
checksum = "9875ea3fa272f57cc1fc50f225a7b94021a7878c484b33792bccad0d93223439"
6703+
checksum = "09ef1c6ad67f35c831abd4039c02894de97034100899614d1c44e2268ad01c91"
67046704
dependencies = [
67056705
"anyhow",
67066706
"id-arena",
@@ -6711,7 +6711,7 @@ dependencies = [
67116711
"serde_derive",
67126712
"serde_json",
67136713
"unicode-xid",
6714-
"wasmparser 0.240.0",
6714+
"wasmparser 0.241.2",
67156715
]
67166716

67176717
[[package]]

‎bootstrap.example.toml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@
5959
# toolchain or changing LLVM locally, you probably want to leave this enabled.
6060
#
6161
# Set this to `true` to download if CI llvm available otherwise it builds
62-
# from `src/llvm-project`.
62+
# from `src/llvm-project`. If you set it to `true`, it's safe and time-saving to run
63+
# `git submodule deinit src/llvm-project` to avoid git updating the llvm-project submodule
64+
# when building compiler locally.
65+
#
6366
#
6467
# Set this to `"if-unchanged"` to download only if the llvm-project has not
6568
# been modified. You can also use this if you are unsure whether you're on a

‎compiler/rustc_abi/src/extern_abi.rs‎

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,56 @@ impl ExternAbi {
269269
| Self::Aapcs{ .. }
270270
| Self::Win64{ .. }
271271
| Self::SysV64{ .. }
272-
| Self::EfiApi => CVariadicStatus::Stable,
273-
Self::System{ .. } => {
274-
CVariadicStatus::Unstable{feature: rustc_span::sym::extern_system_varargs }
275-
}
272+
| Self::EfiApi
273+
| Self::System{ .. } => CVariadicStatus::Stable,
276274
_ => CVariadicStatus::NotSupported,
277275
}
278276
}
277+
278+
/// Returns whether the ABI supports guaranteed tail calls.
279+
#[cfg(feature = "nightly")]
280+
pubfnsupports_guaranteed_tail_call(self) -> bool{
281+
matchself{
282+
Self::CmseNonSecureCall | Self::CmseNonSecureEntry => {
283+
// See https://godbolt.org/z/9jhdeqErv. The CMSE calling conventions clear registers
284+
// before returning, and hence cannot guarantee a tail call.
285+
false
286+
}
287+
Self::AvrInterrupt
288+
| Self::AvrNonBlockingInterrupt
289+
| Self::Msp430Interrupt
290+
| Self::RiscvInterruptM
291+
| Self::RiscvInterruptS
292+
| Self::X86Interrupt => {
293+
// See https://godbolt.org/z/Edfjnxxcq. Interrupts cannot be called directly.
294+
false
295+
}
296+
Self::GpuKernel | Self::PtxKernel => {
297+
// See https://godbolt.org/z/jq5TE5jK1.
298+
false
299+
}
300+
Self::Custom => {
301+
// This ABI does not support calls at all (except via assembly).
302+
false
303+
}
304+
Self::C{ .. }
305+
| Self::System{ .. }
306+
| Self::Rust
307+
| Self::RustCall
308+
| Self::RustCold
309+
| Self::RustInvalid
310+
| Self::Unadjusted
311+
| Self::EfiApi
312+
| Self::Aapcs{ .. }
313+
| Self::Cdecl{ .. }
314+
| Self::Stdcall{ .. }
315+
| Self::Fastcall{ .. }
316+
| Self::Thiscall{ .. }
317+
| Self::Vectorcall{ .. }
318+
| Self::SysV64{ .. }
319+
| Self::Win64{ .. } => true,
320+
}
321+
}
279322
}
280323

281324
pubfnall_names() -> Vec<&'staticstr>{

‎compiler/rustc_ast_lowering/src/expr.rs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
19291929
/// ControlFlow::Break(residual) =>
19301930
/// #[allow(unreachable_code)]
19311931
/// // If there is an enclosing `try {...}`:
1932-
/// break 'catch_target Try::from_residual(residual),
1932+
/// break 'catch_target Residual::into_try_type(residual),
19331933
/// // Otherwise:
19341934
/// return Try::from_residual(residual),
19351935
/// }
@@ -1979,7 +1979,11 @@ impl<'hir> LoweringContext<'_, 'hir> {
19791979
let(residual_local, residual_local_nid) = self.pat_ident(try_span, residual_ident);
19801980
let residual_expr = self.expr_ident_mut(try_span, residual_ident, residual_local_nid);
19811981
let from_residual_expr = self.wrap_in_try_constructor(
1982-
hir::LangItem::TryTraitFromResidual,
1982+
ifself.catch_scope.is_some(){
1983+
hir::LangItem::ResidualIntoTryType
1984+
}else{
1985+
hir::LangItem::TryTraitFromResidual
1986+
},
19831987
try_span,
19841988
self.arena.alloc(residual_expr),
19851989
unstable_span,

‎compiler/rustc_ast_lowering/src/lib.rs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
183183
impl_trait_defs:Vec::new(),
184184
impl_trait_bounds:Vec::new(),
185185
allow_contracts:[sym::contracts_internals].into(),
186-
allow_try_trait:[sym::try_trait_v2, sym::yeet_desugar_details].into(),
186+
allow_try_trait:[
187+
sym::try_trait_v2,
188+
sym::try_trait_v2_residual,
189+
sym::yeet_desugar_details,
190+
]
191+
.into(),
187192
allow_pattern_type:[sym::pattern_types, sym::pattern_type_range_trait].into(),
188193
allow_gen_future:if tcx.features().async_fn_track_caller(){
189194
[sym::gen_future, sym::closure_track_caller].into()

‎compiler/rustc_codegen_llvm/src/back/write.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ pub(crate) unsafe fn llvm_optimize(
683683
// Here we map the old arguments to the new arguments, with an offset of 1 to make sure
684684
// that we don't use the newly added `%dyn_ptr`.
685685
unsafe{
686-
llvm::LLVMRustOffloadMapper(cx.llmod(),old_fn, new_fn);
686+
llvm::LLVMRustOffloadMapper(old_fn, new_fn);
687687
}
688688

689689
llvm::set_linkage(new_fn, llvm::get_linkage(old_fn));

0 commit comments

Comments
 (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Commit 5bb385d

Browse files
authored
Merge pull request #4699 from rust-lang/rustup-2025-11-17
Automatic Rustup
2 parents 4ea921a + 90f1f33 commit 5bb385d

317 files changed

Lines changed: 7104 additions & 4935 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ no_llvm_build
4848
/llvm/
4949
/mingw-build/
5050
/build
51-
/build-rust-analyzer/
51+
/build-rust-analyzer
5252
/dist/
5353
/unicode-downloads
5454
/target

‎Cargo.lock‎

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ dependencies = [
8080

8181
[[package]]
8282
name = "annotate-snippets"
83-
version = "0.12.8"
83+
version = "0.12.9"
8484
source = "registry+https://github.com/rust-lang/crates.io-index"
85-
checksum = "025c7edcdffa4ccc5c0905f472a0ae3759378cfbef88ef518a3575e19ae3aebd"
85+
checksum = "a44baf24dd94e781f74dfe67ffee75a09a57971ddf0f615a178b4f6d404b48ff"
8686
dependencies = [
8787
"anstyle",
8888
"unicode-width 0.2.2",
@@ -3766,7 +3766,7 @@ dependencies = [
37663766
name = "rustc_errors"
37673767
version = "0.0.0"
37683768
dependencies = [
3769-
"annotate-snippets 0.12.8",
3769+
"annotate-snippets 0.12.9",
37703770
"anstream",
37713771
"anstyle",
37723772
"derive_setters",
@@ -6070,9 +6070,9 @@ dependencies = [
60706070

60716071
[[package]]
60726072
name = "wasi-preview1-component-adapter-provider"
6073-
version = "37.0.2"
6073+
version = "38.0.4"
60746074
source = "registry+https://github.com/rust-lang/crates.io-index"
6075-
checksum = "8d0fcd636ad2b29a7c0490799a23ad61d1c8dedfafdb970447fddd0549502b60"
6075+
checksum = "7ec3ef3783e18f2457796ed91b1e6c2adc46f2905f740d1527ab3053fe8e5682"
60766076

60776077
[[package]]
60786078
name = "wasm-bindgen"
@@ -6134,17 +6134,17 @@ dependencies = [
61346134

61356135
[[package]]
61366136
name = "wasm-component-ld"
6137-
version = "0.5.18"
6137+
version = "0.5.19"
61386138
source = "registry+https://github.com/rust-lang/crates.io-index"
6139-
checksum = "11f565dfcfd9aabb10d865b608a92ce1f93051aeb56f4c89550ed9cd97d8ce0e"
6139+
checksum = "4bfc50dd0b883d841bc1dba5ff7020ca52fa7b2c3bb1266d8bf6a09dd032e115"
61406140
dependencies = [
61416141
"anyhow",
61426142
"clap",
61436143
"lexopt",
61446144
"libc",
61456145
"tempfile",
61466146
"wasi-preview1-component-adapter-provider",
6147-
"wasmparser 0.240.0",
6147+
"wasmparser 0.241.2",
61486148
"wat",
61496149
"windows-sys 0.61.2",
61506150
"winsplit",
@@ -6171,24 +6171,24 @@ dependencies = [
61716171

61726172
[[package]]
61736173
name = "wasm-encoder"
6174-
version = "0.240.0"
6174+
version = "0.241.2"
61756175
source = "registry+https://github.com/rust-lang/crates.io-index"
6176-
checksum = "06d642d8c5ecc083aafe9ceb32809276a304547a3a6eeecceb5d8152598bc71f"
6176+
checksum = "e01164c9dda68301e34fdae536c23ed6fe90ce6d97213ccc171eebbd3d02d6b8"
61776177
dependencies = [
61786178
"leb128fmt",
6179-
"wasmparser 0.240.0",
6179+
"wasmparser 0.241.2",
61806180
]
61816181

61826182
[[package]]
61836183
name = "wasm-metadata"
6184-
version = "0.240.0"
6184+
version = "0.241.2"
61856185
source = "registry+https://github.com/rust-lang/crates.io-index"
6186-
checksum = "ee093e1e1ccffa005b9b778f7a10ccfd58e25a20eccad294a1a93168d076befb"
6186+
checksum = "876fe286f2fa416386deedebe8407e6f19e0b5aeaef3d03161e77a15fa80f167"
61876187
dependencies = [
61886188
"anyhow",
61896189
"indexmap",
6190-
"wasm-encoder 0.240.0",
6191-
"wasmparser 0.240.0",
6190+
"wasm-encoder 0.241.2",
6191+
"wasmparser 0.241.2",
61926192
]
61936193

61946194
[[package]]
@@ -6213,9 +6213,9 @@ dependencies = [
62136213

62146214
[[package]]
62156215
name = "wasmparser"
6216-
version = "0.240.0"
6216+
version = "0.241.2"
62176217
source = "registry+https://github.com/rust-lang/crates.io-index"
6218-
checksum = "b722dcf61e0ea47440b53ff83ccb5df8efec57a69d150e4f24882e4eba7e24a4"
6218+
checksum = "46d90019b1afd4b808c263e428de644f3003691f243387d30d673211ee0cb8e8"
62196219
dependencies = [
62206220
"bitflags",
62216221
"hashbrown",
@@ -6226,22 +6226,22 @@ dependencies = [
62266226

62276227
[[package]]
62286228
name = "wast"
6229-
version = "240.0.0"
6229+
version = "241.0.2"
62306230
source = "registry+https://github.com/rust-lang/crates.io-index"
6231-
checksum = "b0efe1c93db4ac562b9733e3dca19ed7fc878dba29aef22245acf84f13da4a19"
6231+
checksum = "63f66e07e2ddf531fef6344dbf94d112df7c2f23ed6ffb10962e711500b8d816"
62326232
dependencies = [
62336233
"bumpalo",
62346234
"leb128fmt",
62356235
"memchr",
62366236
"unicode-width 0.2.2",
6237-
"wasm-encoder 0.240.0",
6237+
"wasm-encoder 0.241.2",
62386238
]
62396239

62406240
[[package]]
62416241
name = "wat"
6242-
version = "1.240.0"
6242+
version = "1.241.2"
62436243
source = "registry+https://github.com/rust-lang/crates.io-index"
6244-
checksum = "4ec9b6eab7ecd4d639d78515e9ea491c9bacf494aa5eda10823bd35992cf8c1e"
6244+
checksum = "45f923705c40830af909c5dec2352ec2821202e4a66008194585e1917458a26d"
62456245
dependencies = [
62466246
"wast",
62476247
]
@@ -6679,9 +6679,9 @@ dependencies = [
66796679

66806680
[[package]]
66816681
name = "wit-component"
6682-
version = "0.240.0"
6682+
version = "0.241.2"
66836683
source = "registry+https://github.com/rust-lang/crates.io-index"
6684-
checksum = "7dc5474b078addc5fe8a72736de8da3acfb3ff324c2491133f8b59594afa1a20"
6684+
checksum = "1fd0c57df25e7ee612d946d3b7646c1ddb2310f8280aa2c17e543b66e0812241"
66856685
dependencies = [
66866686
"anyhow",
66876687
"bitflags",
@@ -6690,17 +6690,17 @@ dependencies = [
66906690
"serde",
66916691
"serde_derive",
66926692
"serde_json",
6693-
"wasm-encoder 0.240.0",
6693+
"wasm-encoder 0.241.2",
66946694
"wasm-metadata",
6695-
"wasmparser 0.240.0",
6695+
"wasmparser 0.241.2",
66966696
"wit-parser",
66976697
]
66986698

66996699
[[package]]
67006700
name = "wit-parser"
6701-
version = "0.240.0"
6701+
version = "0.241.2"
67026702
source = "registry+https://github.com/rust-lang/crates.io-index"
6703-
checksum = "9875ea3fa272f57cc1fc50f225a7b94021a7878c484b33792bccad0d93223439"
6703+
checksum = "09ef1c6ad67f35c831abd4039c02894de97034100899614d1c44e2268ad01c91"
67046704
dependencies = [
67056705
"anyhow",
67066706
"id-arena",
@@ -6711,7 +6711,7 @@ dependencies = [
67116711
"serde_derive",
67126712
"serde_json",
67136713
"unicode-xid",
6714-
"wasmparser 0.240.0",
6714+
"wasmparser 0.241.2",
67156715
]
67166716

67176717
[[package]]

‎bootstrap.example.toml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@
5959
# toolchain or changing LLVM locally, you probably want to leave this enabled.
6060
#
6161
# Set this to `true` to download if CI llvm available otherwise it builds
62-
# from `src/llvm-project`.
62+
# from `src/llvm-project`. If you set it to `true`, it's safe and time-saving to run
63+
# `git submodule deinit src/llvm-project` to avoid git updating the llvm-project submodule
64+
# when building compiler locally.
65+
#
6366
#
6467
# Set this to `"if-unchanged"` to download only if the llvm-project has not
6568
# been modified. You can also use this if you are unsure whether you're on a

‎compiler/rustc_abi/src/extern_abi.rs‎

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,56 @@ impl ExternAbi {
269269
| Self::Aapcs{ .. }
270270
| Self::Win64{ .. }
271271
| Self::SysV64{ .. }
272-
| Self::EfiApi => CVariadicStatus::Stable,
273-
Self::System{ .. } => {
274-
CVariadicStatus::Unstable{feature: rustc_span::sym::extern_system_varargs }
275-
}
272+
| Self::EfiApi
273+
| Self::System{ .. } => CVariadicStatus::Stable,
276274
_ => CVariadicStatus::NotSupported,
277275
}
278276
}
277+
278+
/// Returns whether the ABI supports guaranteed tail calls.
279+
#[cfg(feature = "nightly")]
280+
pubfnsupports_guaranteed_tail_call(self) -> bool{
281+
matchself{
282+
Self::CmseNonSecureCall | Self::CmseNonSecureEntry => {
283+
// See https://godbolt.org/z/9jhdeqErv. The CMSE calling conventions clear registers
284+
// before returning, and hence cannot guarantee a tail call.
285+
false
286+
}
287+
Self::AvrInterrupt
288+
| Self::AvrNonBlockingInterrupt
289+
| Self::Msp430Interrupt
290+
| Self::RiscvInterruptM
291+
| Self::RiscvInterruptS
292+
| Self::X86Interrupt => {
293+
// See https://godbolt.org/z/Edfjnxxcq. Interrupts cannot be called directly.
294+
false
295+
}
296+
Self::GpuKernel | Self::PtxKernel => {
297+
// See https://godbolt.org/z/jq5TE5jK1.
298+
false
299+
}
300+
Self::Custom => {
301+
// This ABI does not support calls at all (except via assembly).
302+
false
303+
}
304+
Self::C{ .. }
305+
| Self::System{ .. }
306+
| Self::Rust
307+
| Self::RustCall
308+
| Self::RustCold
309+
| Self::RustInvalid
310+
| Self::Unadjusted
311+
| Self::EfiApi
312+
| Self::Aapcs{ .. }
313+
| Self::Cdecl{ .. }
314+
| Self::Stdcall{ .. }
315+
| Self::Fastcall{ .. }
316+
| Self::Thiscall{ .. }
317+
| Self::Vectorcall{ .. }
318+
| Self::SysV64{ .. }
319+
| Self::Win64{ .. } => true,
320+
}
321+
}
279322
}
280323

281324
pubfnall_names() -> Vec<&'staticstr>{

‎compiler/rustc_ast_lowering/src/expr.rs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
19291929
/// ControlFlow::Break(residual) =>
19301930
/// #[allow(unreachable_code)]
19311931
/// // If there is an enclosing `try {...}`:
1932-
/// break 'catch_target Try::from_residual(residual),
1932+
/// break 'catch_target Residual::into_try_type(residual),
19331933
/// // Otherwise:
19341934
/// return Try::from_residual(residual),
19351935
/// }
@@ -1979,7 +1979,11 @@ impl<'hir> LoweringContext<'_, 'hir> {
19791979
let(residual_local, residual_local_nid) = self.pat_ident(try_span, residual_ident);
19801980
let residual_expr = self.expr_ident_mut(try_span, residual_ident, residual_local_nid);
19811981
let from_residual_expr = self.wrap_in_try_constructor(
1982-
hir::LangItem::TryTraitFromResidual,
1982+
ifself.catch_scope.is_some(){
1983+
hir::LangItem::ResidualIntoTryType
1984+
}else{
1985+
hir::LangItem::TryTraitFromResidual
1986+
},
19831987
try_span,
19841988
self.arena.alloc(residual_expr),
19851989
unstable_span,

‎compiler/rustc_ast_lowering/src/lib.rs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
183183
impl_trait_defs:Vec::new(),
184184
impl_trait_bounds:Vec::new(),
185185
allow_contracts:[sym::contracts_internals].into(),
186-
allow_try_trait:[sym::try_trait_v2, sym::yeet_desugar_details].into(),
186+
allow_try_trait:[
187+
sym::try_trait_v2,
188+
sym::try_trait_v2_residual,
189+
sym::yeet_desugar_details,
190+
]
191+
.into(),
187192
allow_pattern_type:[sym::pattern_types, sym::pattern_type_range_trait].into(),
188193
allow_gen_future:if tcx.features().async_fn_track_caller(){
189194
[sym::gen_future, sym::closure_track_caller].into()

‎compiler/rustc_codegen_llvm/src/back/write.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ pub(crate) unsafe fn llvm_optimize(
683683
// Here we map the old arguments to the new arguments, with an offset of 1 to make sure
684684
// that we don't use the newly added `%dyn_ptr`.
685685
unsafe{
686-
llvm::LLVMRustOffloadMapper(cx.llmod(),old_fn, new_fn);
686+
llvm::LLVMRustOffloadMapper(old_fn, new_fn);
687687
}
688688

689689
llvm::set_linkage(new_fn, llvm::get_linkage(old_fn));

0 commit comments

Comments
 (0)