| Age | Commit message (Collapse) | Author | Lines |
|
run-pass/simd-intrinsic-float-minmax: Force use of qNaN on Mips
Workaround for #52746.
r? @gnzlbg
|
|
not just `::x`.
|
|
|
|
Fixes #53200
|
|
|
|
Enable macros to pass $:literal to another macro
Fixes #52169.
|
|
Rename Executor trait to Spawn
Renames the `Executor` trait to `Spawn` and the method on `Context` to `spawner`.
Note: Best only merge this after we've the alpha 3 announcement post ready.
r? @cramertj
|
|
|
|
Make globals with private linkage unnamed. Fixes #50862.
cc @oli-obk @nagisa
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reexport tests without polluting namespaces
This should fix issue #52557.
Basically now we gensym a new name for the test function and reexport that.
That way the test function's reexport name can't conflict because it was impossible for the test author to write it down.
We then use a `use` statement to expose the original name using the original visibility.
|
|
Don't count MIR locals as borrowed after StorageDead when finding locals live across a yield terminator
This should fix https://github.com/rust-lang/rust/issues/52792.
r? @eddyb
|
|
run-pass/const-endianness: negate before to_le()
`const LE_I128` needs parentheses to negate the value *before* calling
`to_le()`, otherwise it doesn't match the operations performed in the
black-boxed part of the test. This only makes a tangible difference on
big-endian targets.
|
|
Emitting LLVM bitcode uses ThinLTOBuffers, so we need to prepare for
thin LTO or we will likely cause errors in LLVM.
|
|
resolve: Modularize crate-local `#[macro_export] macro_rules`
Based on https://github.com/rust-lang/rust/pull/50911, cc https://github.com/rust-lang/rust/pull/50911#issuecomment-401151270
`#[macro_export] macro_rules` items are collected from the whole crate and are planted into the root module as items, so the external view of the crate is symmetric with its internal view and something like `$crate::my_macro` where `my_macro` is `#[macro_export] macro_rules` works both locally and from other crates.
Closes https://github.com/rust-lang/rust/issues/52726
|
|
live across a yield terminator
|
|
Workaround for #52746.
|
|
|
|
|
|
`const LE_I128` needs parentheses to negate the value *before* calling
`to_le()`, otherwise it doesn't match the operations performed in the
black-boxed part of the test. This only makes a tangible difference on
big-endian targets.
|
|
invalid_const_promotion: check if we get the right signal
r? @eddyb
|
|
|
|
|
|
|
|
Fix #[linkage] propagation though generic functions
Fixes #18804
In the non-local branch of `get_static` (where the fix was implemented) `span_fatal` had to be replaced with `bug!` as we have no span in that case.
|
|
Add tests for ICEs which no longer repro
Adds tests for some ICEs which no longer repro and closes the associated issues.
|
|
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
|
|
The Emscripten compiler does not support weak symbols at the moment.
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
|
|
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
|
|
|
|
Closes #44005
|
|
Closes #33264
|
|
Closes #34784
|
|
Implement rfc 1789: Conversions from `&mut T` to `&Cell<T>`
I'm surprised that RFC 1789 has not been implemented for several months. Tracking issue: https://github.com/rust-lang/rust/issues/43038
Please note: when I was writing tests for `&Cell<[i32]>`, I found it is not easy to get the length of the contained slice. So I designed a `get_with` method which might be useful for similar cases. This method is not designed in the RFC, and it certainly needs to be reviewed by core team. I think it has some connections with `Cell::update` https://github.com/rust-lang/rust/issues/50186 , which is also in design phase.
|
|
|
|
Abort if a promoted fails to be const evaluable and its runtime checks didn't trigger
r? @eddyb
cc @RalfJung @nagisa
cc https://github.com/rust-lang/rust/issues/49760
|
|
|
|
|
|
Remove duplicate E0396 tests
Resolves FIXME #13973 (erroneously marked as #13972). A test for E0396 already exists in `test/ui/const-deref-ptr.rs`.
|
|
Enable run-pass/sepcomp-lib-lto.rs on Android
#18800 is fixed, so it should be safe to restore this test.
|
|
|