Michael Goulet
152646f23f
Don't normalize constants unless they need normalization
2022-11-07 00:30:56 +00:00
Nicholas Bishop
42cbb40157
Use aapcs for efiapi calling convention on arm
...
On arm, llvm treats the C calling convention as `aapcs` on soft-float
targets and `aapcs-vfp` on hard-float targets [1]. UEFI specifies in the
arm calling convention that floating point extensions aren't used [2],
so always translate `efiapi` to `aapcs` on arm.
[1]: https://github.com/rust-lang/compiler-builtins/issues/116#issuecomment-261057422
[2]: https://uefi.org/specs/UEFI/2.10/02_Overview.html#detailed-calling-convention
https://github.com/rust-lang/rust/issues/65815
2022-11-06 18:05:24 -05:00
Nicholas Nethercote
dba6fc3ef5
Make underscore_literal_suffix a hard error.
...
It's been a warning for 5.5 years. Time to make it a hard error.
Closes #42326 .
2022-11-07 10:00:36 +11:00
Mark Rousskov
01a2a57ac9
Fix rebase errors
2022-11-06 17:38:47 -05:00
Mark Rousskov
b3242f4f13
Fix rustdoc lints
2022-11-06 17:21:22 -05:00
Mark Rousskov
40290505fb
cfg-step code
2022-11-06 17:21:21 -05:00
Mark Rousskov
137d5913ec
Bump to latest beta
2022-11-06 17:11:02 -05:00
Mark Rousskov
455a7bc685
Bump version placeholders to release
2022-11-06 17:11:02 -05:00
yancy
a398e09e42
rustdoc: Add an example for round that is different from truncate
2022-11-06 23:05:16 +01:00
Nicholas Bishop
16edaa56ba
Limit efiapi calling convention to supported arches
...
Supported architectures in UEFI are described here:
https://uefi.org/specs/UEFI/2.10/02_Overview.html#calling-conventions
Changes to tests modeled on 8240e7aa10 .
https://github.com/rust-lang/rust/issues/65815
2022-11-06 17:04:42 -05:00
Ben Kimock
b97ec85e96
Add a codegen test for rust-lang/rust#96152
2022-11-06 16:56:47 -05:00
Alex Saveau
28ea002340
Add small clarification around using pointers derived from references
...
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
2022-11-06 12:09:55 -08:00
Guillaume Gomez
0e23d90e26
Extend rust-logo GUI test to check there is no filter for other logos
2022-11-06 20:20:43 +01:00
Tim Neumann
f414715ebf
LLVM 16: Update RISCV data layout
2022-11-06 19:03:22 +00:00
bors
9c574d8d96
Auto merge of #2655 - RalfJung:rustc-build-sysroot, r=RalfJung
...
bump rustc-build-sysroot
2022-11-06 19:02:09 +00:00
Ralf Jung
1f0a6725d3
bump rustc-build-sysroot
2022-11-06 19:59:28 +01:00
bors
7eef946fc0
Auto merge of #99943 - compiler-errors:tuple-trait, r=jackh726
...
Implement `std::marker::Tuple`, use it in `extern "rust-call"` and `Fn`-family traits
Implements rust-lang/compiler-team#537
I made a few opinionated decisions in this implementation, specifically:
1. Enforcing `extern "rust-call"` on fn items during wfcheck,
2. Enforcing this for all functions (not just ones that have bodies),
3. Gating this `Tuple` marker trait behind its own feature, instead of grouping it into (e.g.) `unboxed_closures`.
Still needing to be done:
1. Enforce that `extern "rust-call"` `fn`-ptrs are well-formed only if they have 1/2 args and the second one implements `Tuple`. (Doing this would fix ICE in #66696.)
2. Deny all explicit/user `impl`s of the `Tuple` trait, kinda like `Sized`.
3. Fixing `Tuple` trait built-in impl for chalk, so that chalkification tests are un-broken.
Open questions:
1. Does this need t-lang or t-libs signoff?
Fixes #99820
2022-11-06 17:48:33 +00:00
Guillaume Gomez
24d86a1c08
Migrate rust logo filter to CSS variables
2022-11-06 18:23:13 +01:00
bors
57d06f7283
Auto merge of #2654 - mkroening:macos-cache, r=RalfJung
...
README: Add macos cache deletion command
2022-11-06 17:14:26 +00:00
onestacked
dc1f1a8e97
Added const_hash tracking issue id
2022-11-06 18:01:44 +01:00
Michael Howell
b34fdd32bb
rustdoc: remove unused CSS #sidebar-filler
...
This hack was removed in 6a5f8b1aef , but the
CSS was left in.
2022-11-06 09:55:16 -07:00
onestacked
5f9899b289
Made Sip const Hasher
2022-11-06 17:46:38 +01:00
Martin Kröning
943f88bb4e
README: Add macos cache deletion command
2022-11-06 17:38:37 +01:00
Ralf Jung
edbbb10477
make uninit_mask a unit test
2022-11-06 17:26:52 +01:00
Rejyr
e15c406deb
fix: typo
2022-11-06 11:22:29 -05:00
ripytide
743726e352
Vec: IntoIterator signature consistency
...
Also makes the code dryer.
2022-11-06 15:25:00 +00:00
joboet
168f1f1d41
update LLVM submodule to make libunwind work on SGX
2022-11-06 15:33:00 +01:00
joboet
b231835179
std: fix double-free of mutex
2022-11-06 15:32:59 +01:00
joboet
98815742cf
std: remove lock wrappers in sys_common
2022-11-06 15:32:59 +01:00
bors
1e1e5b8d98
Auto merge of #103861 - compiler-errors:codegen-select-in-vtable-slot, r=nagisa
...
Use `codegen_select` in `vtable_trait_upcasting_coercion_new_vptr_slot`
A super tiny clean up
2022-11-06 14:03:59 +00:00
Boxy
c0889a6005
fixyfixfix
2022-11-06 13:39:18 +00:00
Ralf Jung
6b7f6b98c7
remove no-longer-needed work-arounds from the standard library
2022-11-06 14:20:09 +01:00
Ralf Jung
eb4bdb00a4
fix cranelift and gcc
2022-11-06 14:17:10 +01:00
Ralf Jung
3db45f00ff
add test for printing per-byte provenance
2022-11-06 14:17:10 +01:00
Ralf Jung
c3a7ca1125
move InitMask to its own module
2022-11-06 14:17:10 +01:00
Ralf Jung
3477645a23
dont debug-print allocations, that's too verbose
2022-11-06 14:17:10 +01:00
Ralf Jung
2cef9e3d19
interpret: support for per-byte provenance
2022-11-06 14:17:10 +01:00
bors
724c1a0c4d
Auto merge of #2653 - RalfJung:stderr, r=RalfJung
...
remove a stray stderr file
2022-11-06 12:53:23 +00:00
Ralf Jung
46d0df49d6
remove a stray stderr file
2022-11-06 13:52:38 +01:00
Nilstrieb
6d26ea86da
Rename Ctxt and CTX to Tcx and Qcx
...
This makes it consistent and clear which context is used.
2022-11-06 13:25:06 +01:00
Nilstrieb
16558bd267
Rename tcx to qcx when it's a QueryContext
2022-11-06 13:25:06 +01:00
Nilstrieb
91971f293c
Improve tracing logging
2022-11-06 13:25:06 +01:00
Nilstrieb
3da576804a
Rename incremental_verify_ich_cold to incremental_verify_ich_failed
2022-11-06 13:10:35 +01:00
Nilstrieb
df3187260f
Remove one lifetime from QueryKeyStringBuilder
2022-11-06 13:10:35 +01:00
bors
534ddc6166
Auto merge of #103720 - crlf0710:most_translation_attr, r=compiler-errors
...
Lint against usages of `struct_span_lint_hir`.
r? `@compiler-errors`
2022-11-06 11:23:24 +00:00
bors
f60a2ae3e9
Auto merge of #2638 - DrMeepster:windows-condvars, r=RalfJung
...
Implement condvars for Windows
Adds 3 shims for Windows: `SleepConditionVariableSRW`, `WakeConditionVariable`, `WakeAllConditionVariable` to add support for condvars (which fixes #2628 ).
Salvaged from what was removed from #2231
2022-11-06 09:57:45 +00:00
bors
4828edf39c
Auto merge of #2638 - DrMeepster:windows-condvars, r=RalfJung
...
Implement condvars for Windows
Adds 3 shims for Windows: `SleepConditionVariableSRW`, `WakeConditionVariable`, `WakeAllConditionVariable` to add support for condvars (which fixes #2628 ).
Salvaged from what was removed from #2231
2022-11-06 09:57:45 +00:00
Ralf Jung
a9edee7d1a
bootstrap: put Miri sysroot into local build dir
2022-11-06 10:15:34 +01:00
Ralf Jung
c199a39884
bootstrap: add support for running Miri on a file
2022-11-06 09:52:31 +01:00
Ayush Singh
299bc61035
Add type_array to BaseTypeMethods
...
Moved type_array function to rustc_codegen_ssa::BaseTypeMethods trait.
This allows using normal alloca function to create arrays as suggested in
https://github.com/rust-lang/rust/pull/104022 .
Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
2022-11-06 14:18:36 +05:30