Yuki Okushi
19c780ab13
Rollup merge of #103914 - nnethercote:close-42326, r=petrochenkov
...
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 .
r? ``@pnkfelix``
2022-11-07 09:46:26 +09:00
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
40290505fb
cfg-step code
2022-11-06 17:21:21 -05:00
Mark Rousskov
455a7bc685
Bump version placeholders to release
2022-11-06 17:11:02 -05: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
Tim Neumann
f414715ebf
LLVM 16: Update RISCV data layout
2022-11-06 19:03:22 +00: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
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
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
eb4bdb00a4
fix cranelift and gcc
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
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
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
bors
88935e0bea
Auto merge of #104043 - matthiaskrgr:rollup-sttf9e8, r=matthiaskrgr
...
Rollup of 7 pull requests
Successful merges:
- #103012 (Suggest use .. to fill in the rest of the fields of Struct)
- #103851 (Fix json flag in bootstrap doc)
- #103990 (rustdoc: clean up `.logo-container` layout CSS)
- #104002 (fix a comment in UnsafeCell::new)
- #104014 (Migrate test-arrow to CSS variables)
- #104016 (Add internal descriptions to a few queries)
- #104035 (Add 'closure match' test to weird-exprs.rs.)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-11-06 08:13:56 +00:00
Matthias Krüger
13e62be1e5
Rollup merge of #104016 - Nilstrieb:query-descs-more, r=compiler-errors
...
Add internal descriptions to a few queries
helps with #104008
2022-11-06 08:35:28 +01:00
Matthias Krüger
58f5d57b5d
Rollup merge of #103012 - chenyukang:fix-102806, r=davidtwco,compiler-errors
...
Suggest use .. to fill in the rest of the fields of Struct
Fixes #102806
2022-11-06 08:35:26 +01:00
bors
e30fb6a26f
Auto merge of #102618 - aliemjay:simplify-closure-promote, r=compiler-errors
...
rework applying closure requirements in borrowck
Previously the promoted closure constraints were registered under the category `ConstraintCategory::ClosureBounds` in `type_check::prove_closure_bounds()` and then mapped back their original category in `regions_infer::best_blame_constraint` using the complicated map `closure_bounds_mapping`.
Now we're registering promoted constraints under their original category and span earlier in `type_check::prove_closure_bounds`.
See commit messages.
Fixes #99245
2022-11-06 05:26:09 +00:00
Michael Goulet
bc345d7bd0
Move fallback_has_occurred to FnCtxt
2022-11-06 02:40:25 +00:00
Michael Goulet
28d82ddfc2
Fix typo
2022-11-05 19:33:12 -07:00
bors
a4ab2e0643
Auto merge of #103975 - oli-obk:tracing, r=jackh726
...
Some tracing and comment cleanups
Pulled out of https://github.com/rust-lang/rust/pull/101900 to see if that is the perf impact
2022-11-06 02:21:34 +00:00
Michael Goulet
9a1043eac7
Normalize signature when deducing closure signature from supertraits
2022-11-06 02:07:34 +00:00
bors
e6fead46dc
Auto merge of #104009 - Nilstrieb:query-unify-config-desc, r=jyn514
...
Merge `QueryDescription` into `QueryConfig`
`QueryDescription` has gone through a lot of refactoring and doesn't make sense anymore.
r? `@jyn514`
2022-11-05 23:21:01 +00:00
clubby789
7df4b0b662
Rebase and update test
2022-11-05 23:07:57 +00:00
BlackHoleFox
ae948c6380
Cleanup Apple target specifications
2022-11-05 17:57:32 -05:00
clubby789
2553a9590c
Replace boxed iterator with vec collect
2022-11-05 22:56:38 +00:00
clubby789
da588e6df7
Attempt to fix arguments of associated functions
2022-11-05 22:56:37 +00:00
BlackHoleFox
de0ab1cee6
Merge apple_base and apple_sdk_base into one module
2022-11-05 17:56:21 -05:00
clubby789
02025b54ea
Use FmtPrinter instead of creating Instance
2022-11-05 22:56:20 +00:00
clubby789
a3b5ca7b6d
Allow inferring generic arguments for associated methods
2022-11-05 22:56:19 +00:00
clubby789
87de9bd108
Prevent auto-application of associated functions with placeholders
2022-11-05 22:56:02 +00:00
bors
1286ee23e4
Auto merge of #102458 - JohnTitor:stabilize-instruction-set, r=oli-obk
...
Stabilize the `instruction_set` feature
Closes https://github.com/rust-lang/rust/issues/74727
FCP is complete on https://github.com/rust-lang/rust/issues/74727#issuecomment-1242773253
r? `@pnkfelix` and/or `@nikomatsakis`
cc `@xd009642`
Signed-off-by: Yuki Okushi <jtitor@2k36.org >
2022-11-05 20:39:06 +00:00
Michael Goulet
29dccfe9e4
Bless chalk tests
2022-11-05 18:05:44 +00:00
Michael Goulet
2257ba92db
Adjust diagnostics, bless tests
2022-11-05 18:05:44 +00:00
Michael Goulet
99b3454d37
Enforce rust-check ABI in signatures, calls
2022-11-05 18:05:25 +00:00
Matthias Krüger
cf2d88db38
Rollup merge of #103972 - oli-obk:unoptional, r=fee1-dead
...
Remove an option and choose a behaviour-preserving default instead.
r? ``@fee1-dead``
2022-11-05 18:06:07 +01:00
Matthias Krüger
51287f264c
Rollup merge of #103927 - fee1-dead-contrib:E0425-no-typo-when-pattern-matching, r=cjgillot
...
Do not make typo suggestions when suggesting pattern matching
Fixes #103909 .
2022-11-05 18:06:06 +01:00
Nilstrieb
27e0f03d41
Add internal descriptions to a few queries
2022-11-05 17:54:15 +01:00
Nilstrieb
04583f29c8
Simplify code
2022-11-05 17:54:06 +01:00
Alex Gaynor
c33ee13391
Remove linuxkernel targets
...
These are not used by the actual Rust-for-Linux project, so they're mostly just confusing.
2022-11-05 12:30:28 -04:00