-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 12 pull requests #132546
Rollup of 12 pull requests #132546
Commits on Sep 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 32b608a - Browse repository at this point
Copy the full SHA 32b608aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f3ae423 - Browse repository at this point
Copy the full SHA f3ae423View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d8572d - Browse repository at this point
Copy the full SHA 9d8572dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a3a634 - Browse repository at this point
Copy the full SHA 3a3a634View commit details -
Configuration menu - View commit details
-
Copy full SHA for 631ab21 - Browse repository at this point
Copy the full SHA 631ab21View commit details
Commits on Sep 24, 2024
-
unify dyn* coercions with other pointer coercions
Lukas Markeffsky committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 1efad22 - Browse repository at this point
Copy the full SHA 1efad22View commit details -
be even more precise about "cast" vs "coercion"
Lukas Markeffsky committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 25b66d8 - Browse repository at this point
Copy the full SHA 25b66d8View commit details
Commits on Sep 25, 2024
-
Add a debug assertion in codegen that unsize casts of the same princi…
…pal trait def id are truly NOPs
Configuration menu - View commit details
-
Copy full SHA for 6fdc133 - Browse repository at this point
Copy the full SHA 6fdc133View commit details
Commits on Sep 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 39440c5 - Browse repository at this point
Copy the full SHA 39440c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for eccda69 - Browse repository at this point
Copy the full SHA eccda69View commit details -
Configuration menu - View commit details
-
Copy full SHA for 764f1ba - Browse repository at this point
Copy the full SHA 764f1baView commit details
Commits on Sep 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9b31c68 - Browse repository at this point
Copy the full SHA 9b31c68View commit details
Commits on Sep 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d10a16a - Browse repository at this point
Copy the full SHA d10a16aView commit details
Commits on Oct 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 743a2e4 - Browse repository at this point
Copy the full SHA 743a2e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a48c44 - Browse repository at this point
Copy the full SHA 9a48c44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a9ce96 - Browse repository at this point
Copy the full SHA 0a9ce96View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f1284c - Browse repository at this point
Copy the full SHA 0f1284cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ba0845 - Browse repository at this point
Copy the full SHA 0ba0845View commit details -
Configuration menu - View commit details
-
Copy full SHA for a146874 - Browse repository at this point
Copy the full SHA a146874View commit details
Commits on Oct 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0bd0b99 - Browse repository at this point
Copy the full SHA 0bd0b99View commit details
Commits on Oct 6, 2024
-
various fixes for
naked_asm!
implementation- fix for divergence - fix error message - fix another cranelift test - fix some cranelift things - don't set the NORETURN option for naked asm - fix use of naked_asm! in doc comment - fix use of naked_asm! in run-make test - use `span_bug` in unreachable branch
Configuration menu - View commit details
-
Copy full SHA for 2811ce7 - Browse repository at this point
Copy the full SHA 2811ce7View commit details
Commits on Oct 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4850441 - Browse repository at this point
Copy the full SHA 4850441View commit details
Commits on Oct 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 14f656e - Browse repository at this point
Copy the full SHA 14f656eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3cf701c - Browse repository at this point
Copy the full SHA 3cf701cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d7d251 - Browse repository at this point
Copy the full SHA 5d7d251View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76dfce7 - Browse repository at this point
Copy the full SHA 76dfce7View commit details
Commits on Oct 11, 2024
-
intrinsics.fmuladdf{16,32,64,128}: expose llvm.fmuladd.* semantics
Add intrinsics `fmuladd{f16,f32,f64,f128}`. This computes `(a * b) + c`, to be fused if the code generator determines that (i) the target instruction set has support for a fused operation, and (ii) that the fused operation is more efficient than the equivalent, separate pair of `mul` and `add` instructions. https://llvm.org/docs/LangRef.html#llvm-fmuladd-intrinsic MIRI support is included for f32 and f64. The codegen_cranelift uses the `fma` function from libc, which is a correct implementation, but without the desired performance semantic. I think this requires an update to cranelift to expose a suitable instruction in its IR. I have not tested with codegen_gcc, but it should behave the same way (using `fma` from libc).
Configuration menu - View commit details
-
Copy full SHA for 270fb21 - Browse repository at this point
Copy the full SHA 270fb21View commit details
Commits on Oct 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bf2da67 - Browse repository at this point
Copy the full SHA bf2da67View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47a7e99 - Browse repository at this point
Copy the full SHA 47a7e99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 16067fd - Browse repository at this point
Copy the full SHA 16067fdView commit details -
Stop copying libstd.so to dist/lib
It is only necessary in dist/lib/rustlib/*/lib anymore. The jit mode now correctly find it there too.
Configuration menu - View commit details
-
Copy full SHA for bbaaecc - Browse repository at this point
Copy the full SHA bbaaeccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6666435 - Browse repository at this point
Copy the full SHA 6666435View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f1b15f - Browse repository at this point
Copy the full SHA 2f1b15fView commit details
Commits on Oct 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 65201c2 - Browse repository at this point
Copy the full SHA 65201c2View commit details
Commits on Oct 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 383bb66 - Browse repository at this point
Copy the full SHA 383bb66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04f33cc - Browse repository at this point
Copy the full SHA 04f33ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 45c2002 - Browse repository at this point
Copy the full SHA 45c2002View commit details
Commits on Oct 22, 2024
-
Rename Receiver -> LegacyReceiver
As part of the "arbitrary self types v2" project, we are going to replace the current `Receiver` trait with a new mechanism based on a new, different `Receiver` trait. This PR renames the old trait to get it out the way. Naming is hard. Options considered included: * HardCodedReceiver (because it should only be used for things in the standard library, and hence is sort-of hard coded) * LegacyReceiver * TargetLessReceiver * OldReceiver These are all bad names, but fortunately this will be temporary. Assuming the new mechanism proceeds to stabilization as intended, the legacy trait will be removed altogether. Although we expect this trait to be used only in the standard library, we suspect it may be in use elsehwere, so we're landing this change separately to identify any surprising breakages. It's known that this trait is used within the Rust for Linux project; a patch is in progress to remove their dependency. This is a part of the arbitrary self types v2 project, rust-lang/rfcs#3519 rust-lang#44874 r? @wesleywiser
Configuration menu - View commit details
-
Copy full SHA for c5a5e86 - Browse repository at this point
Copy the full SHA c5a5e86View commit details
Commits on Oct 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0093a4b - Browse repository at this point
Copy the full SHA 0093a4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f06952 - Browse repository at this point
Copy the full SHA 3f06952View commit details -
Configuration menu - View commit details
-
Copy full SHA for c28d433 - Browse repository at this point
Copy the full SHA c28d433View commit details -
Configuration menu - View commit details
-
Copy full SHA for bcb7de3 - Browse repository at this point
Copy the full SHA bcb7de3View commit details -
Merge pull request rust-lang#1537 from dpaoliello/debugunwind
Don't panic about debug info for Arm64 Windows unwind info
Configuration menu - View commit details
-
Copy full SHA for 616abf1 - Browse repository at this point
Copy the full SHA 616abf1View commit details
Commits on Oct 25, 2024
-
Re-do recursive const stability checks
Fundamentally, we have *three* disjoint categories of functions: 1. const-stable functions 2. private/unstable functions that are meant to be callable from const-stable functions 3. functions that can make use of unstable const features This PR implements the following system: - `#[rustc_const_stable]` puts functions in the first category. It may only be applied to `#[stable]` functions. - `#[rustc_const_unstable]` by default puts functions in the third category. The new attribute `#[rustc_const_stable_indirect]` can be added to such a function to move it into the second category. - `const fn` without a const stability marker are in the second category if they are still unstable. They automatically inherit the feature gate for regular calls, it can now also be used for const-calls. Also, several holes in recursive const stability checking are being closed. There's still one potential hole that is hard to avoid, which is when MIR building automatically inserts calls to a particular function in stable functions -- which happens in the panic machinery. Those need to *not* be `rustc_const_unstable` (or manually get a `rustc_const_stable_indirect`) to be sure they follow recursive const stability. But that's a fairly rare and special case so IMO it's fine. The net effect of this is that a `#[unstable]` or unmarked function can be constified simply by marking it as `const fn`, and it will then be const-callable from stable `const fn` and subject to recursive const stability requirements. If it is publicly reachable (which implies it cannot be unmarked), it will be const-unstable under the same feature gate. Only if the function ever becomes `#[stable]` does it need a `#[rustc_const_unstable]` or `#[rustc_const_stable]` marker to decide if this should also imply const-stability. Adding `#[rustc_const_unstable]` is only needed for (a) functions that need to use unstable const lang features (including intrinsics), or (b) `#[stable]` functions that are not yet intended to be const-stable. Adding `#[rustc_const_stable]` is only needed for functions that are actually meant to be directly callable from stable const code. `#[rustc_const_stable_indirect]` is used to mark intrinsics as const-callable and for `#[rustc_const_unstable]` functions that are actually called from other, exposed-on-stable `const fn`. No other attributes are required.
Configuration menu - View commit details
-
Copy full SHA for 6ca276d - Browse repository at this point
Copy the full SHA 6ca276dView commit details
Commits on Oct 26, 2024
-
- removed extra bits from predicates queries that are no longer needed in the new system - removed the need for `non_erasable_generics` to take in tcx and DefId, removed unused arguments in callers
Configuration menu - View commit details
-
Copy full SHA for 83f1121 - Browse repository at this point
Copy the full SHA 83f1121View commit details -
Rollup merge of rust-lang#132168 - fee1-dead-contrib:fxclean, r=compi…
…ler-errors Effects cleanup - removed extra bits from predicates queries that are no longer needed in the new system - removed the need for `non_erasable_generics` to take in tcx and DefId, removed unused arguments in callers r? compiler-errors
Configuration menu - View commit details
-
Copy full SHA for a29a8f5 - Browse repository at this point
Copy the full SHA a29a8f5View commit details
Commits on Oct 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 988f49d - Browse repository at this point
Copy the full SHA 988f49dView commit details
Commits on Oct 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e3c1547 - Browse repository at this point
Copy the full SHA e3c1547View commit details
Commits on Oct 31, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 28701aa - Browse repository at this point
Copy the full SHA 28701aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 05126cd - Browse repository at this point
Copy the full SHA 05126cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 297e933 - Browse repository at this point
Copy the full SHA 297e933View commit details
Commits on Nov 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 66351a6 - Browse repository at this point
Copy the full SHA 66351a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 720d618 - Browse repository at this point
Copy the full SHA 720d618View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34432f7 - Browse repository at this point
Copy the full SHA 34432f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5266623 - Browse repository at this point
Copy the full SHA 5266623View commit details -
make codegen help output more consistent
The output of `rustc -C help` generally has one option per line. There was one exception because of a (presumably) forgotten line continuation escape.
Configuration menu - View commit details
-
Copy full SHA for 8837fc7 - Browse repository at this point
Copy the full SHA 8837fc7View commit details -
Configuration menu - View commit details
-
Copy full SHA for afe1902 - Browse repository at this point
Copy the full SHA afe1902View commit details -
Configuration menu - View commit details
-
Copy full SHA for f341a19 - Browse repository at this point
Copy the full SHA f341a19View commit details -
Configuration menu - View commit details
-
Copy full SHA for 36040aa - Browse repository at this point
Copy the full SHA 36040aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fa86f9 - Browse repository at this point
Copy the full SHA 0fa86f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90f2075 - Browse repository at this point
Copy the full SHA 90f2075View commit details -
Configuration menu - View commit details
-
Copy full SHA for b919675 - Browse repository at this point
Copy the full SHA b919675View commit details -
Configuration menu - View commit details
-
Copy full SHA for b856716 - Browse repository at this point
Copy the full SHA b856716View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b1246b - Browse repository at this point
Copy the full SHA 5b1246bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 60f0cd8 - Browse repository at this point
Copy the full SHA 60f0cd8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c959f6e - Browse repository at this point
Copy the full SHA c959f6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 82f8b8f - Browse repository at this point
Copy the full SHA 82f8b8fView commit details -
PassWrapper: adapt for llvm/llvm-project@b01e2a8
We don't see a reason to explicitly pass the default here, so just use the default instead of explicitly passing it and needing an ifdef. @rustbot label: +llvm-main
Configuration menu - View commit details
-
Copy full SHA for ab5583e - Browse repository at this point
Copy the full SHA ab5583eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c7b07d5 - Browse repository at this point
Copy the full SHA c7b07d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 16394e9 - Browse repository at this point
Copy the full SHA 16394e9View commit details -
Rollup merge of rust-lang#132393 - zedddie16:issue-131865-fix, r=tgro…
…ss35 Docs: added brief colon explanation rust-lang#131865 (this is my first attempt at contributing, feedback is welcome)
Configuration menu - View commit details
-
Copy full SHA for 6f1ff28 - Browse repository at this point
Copy the full SHA 6f1ff28View commit details -
Rollup merge of rust-lang#132419 - durin42:llvm-20-type-test-thing, r…
…=cuviper PassWrapper: adapt for llvm/llvm-project@b01e2a8b5620466c3b A boolean turned into an enum. None matches the old behavior of false, so we pass that. ```@rustbot``` label: +llvm-main
Configuration menu - View commit details
-
Copy full SHA for b32ecc2 - Browse repository at this point
Copy the full SHA b32ecc2View commit details -
Rollup merge of rust-lang#132437 - Zalathar:inline-mixed-regression, …
…r=jieyouxu coverage: Regression test for inlining into an uninstrumented crate Regression test for rust-lang#132395, after I was able to figure out a simple way to reproduce it. See also rust-lang#132436. In addition to confirming that there is no ICE, this test also demonstrates that the affected code is undercounted, because executing the inlined copy doesn't increment coverage counters.
Configuration menu - View commit details
-
Copy full SHA for f3231a2 - Browse repository at this point
Copy the full SHA f3231a2View commit details -
Rollup merge of rust-lang#132458 - RalfJung:rustc-const-unstable, r=A…
…manieu get rid of a whole bunch of unnecessary rustc_const_unstable attributes In general, when a `const fn` is still unstable, it doesn't need a `#[rustc_const_unstable]` attribute. The only exception is functions that internally use things that can't be used in stable const fn yet. So this gets rid of a whole bunch of `#[rustc_const_unstable]` in libcore.
Configuration menu - View commit details
-
Copy full SHA for 02fa0c3 - Browse repository at this point
Copy the full SHA 02fa0c3View commit details -
Rollup merge of rust-lang#132499 - RalfJung:unicode_data.rs, r=tgross35
unicode_data.rs: show command for generating file rust-lang#131647 made this an easily runnable tool, now we just have to mention that in the comment. :) Fixes rust-lang#131640.
Configuration menu - View commit details
-
Copy full SHA for 8819385 - Browse repository at this point
Copy the full SHA 8819385View commit details -
Rollup merge of rust-lang#132503 - RalfJung:const-hash-map, r=Amanieu
better test for const HashMap; remove const_hash leftovers The existing `const_with_hasher` test is kind of silly since the HashMap it constructs can never contain any elements. So this adjusts the test to construct a usable HashMap, which is a bit non-trivial since the default hash builder cannot be built in `const`. `BuildHasherDefault::new()` helps but is unstable (rust-lang#123197), so we also have a test that does not involve that type. The second commit removes the last remnants of rust-lang#104061, since they aren't actually useful -- without const traits, you can't do any hashing in `const`. Cc `@rust-lang/libs-api` `@rust-lang/wg-const-eval` Closes rust-lang#104061 Related to rust-lang#102575
Configuration menu - View commit details
-
Copy full SHA for 89d9d3d - Browse repository at this point
Copy the full SHA 89d9d3dView commit details -
Rollup merge of rust-lang#132514 - Zalathar:print-target-cpus, r=jiey…
…ouxu Port most of `--print=target-cpus` to Rust The logic and formatting needed by `--print=target-cpus` has historically been carried out in C++ code. Originally it used `printf` to write directly to the console, but later it switched over to writing to a `std::ostringstream` and then passing its buffer to a callback function pointer. This PR replaces that C++ code with a very simple function that writes a list of CPU names to a `&RustString`, with the rest of the logic and formatting being handled by ordinary safe Rust code.
Configuration menu - View commit details
-
Copy full SHA for 133d86c - Browse repository at this point
Copy the full SHA 133d86cView commit details -
Rollup merge of rust-lang#132520 - matthiaskrgr:knobu, r=jieyouxu
NFC add known bug nr to test r? ```@jieyouxu```
Configuration menu - View commit details
-
Copy full SHA for b306ab7 - Browse repository at this point
Copy the full SHA b306ab7View commit details -
Rollup merge of rust-lang#132522 - senekor:consistenst-codegen-help, …
…r=compiler-errors make codegen help output more consistent The output of `rustc -C help` generally has one option per line. There was one exception because of a (presumably) forgotten line continuation escape.
Configuration menu - View commit details
-
Copy full SHA for 42cb65e - Browse repository at this point
Copy the full SHA 42cb65eView commit details -
Rollup merge of rust-lang#132523 - ranger-ross:test-issue-117446, r=c…
…ompiler-errors Added regression test for generics index out of bounds Added a regression test for rust-lang#117446 This ICE was fixed in Rust 1.75 but a regression test was never added. This PR adds a UI test with a reduced version of the original bug report that does not rely on external crates.
Configuration menu - View commit details
-
Copy full SHA for c7ea4f5 - Browse repository at this point
Copy the full SHA c7ea4f5View commit details -
Rollup merge of rust-lang#132526 - bjorn3:sync_cg_clif-2024-11-02, r=…
…bjorn3 Subtree sync for rustc_codegen_cranelift The highlight this time is an update to Cranelift 0.113, r? `@ghost` `@rustbot` label +A-codegen +A-cranelift +T-compiler
Configuration menu - View commit details
-
Copy full SHA for 13fecf5 - Browse repository at this point
Copy the full SHA 13fecf5View commit details -
Rollup merge of rust-lang#132528 - compiler-errors:fallback-sugg-opt,…
… r=jieyouxu Use `*_opt` typeck results fns to not ICE in fallback suggestion Self-explanatory. Fixes rust-lang#132517.
Configuration menu - View commit details
-
Copy full SHA for 46edfa3 - Browse repository at this point
Copy the full SHA 46edfa3View commit details -
Rollup merge of rust-lang#132540 - compiler-errors:gc, r=calebcartwright
Do not format generic consts We introduced **nightly support** for generic const items in rust-lang#113522, but formatting of consts was not modified. Making them format *correctly* is hard, so let's just bail formatting them so we don't accidentally strip their generics and where clauses. This is essentially no-op formatting for generic const items. r? `@calebcartwright` or `@ytmimi`
Configuration menu - View commit details
-
Copy full SHA for 5516671 - Browse repository at this point
Copy the full SHA 5516671View commit details