Manish Goregaokar
a709cc1f32
Rollup merge of #104156 - oli-obk:autoderef, r=estebank
...
Cleanups in autoderef impl
Just something I noticed. Turns out the `overloaded_span` is not actually used separately from the main span, so I merged them.
2022-11-09 15:39:06 -05:00
Manish Goregaokar
bfd637a3cf
Rollup merge of #104020 - nicholasbishop:bishop-limit-efiapi, r=nagisa
...
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
https://github.com/rust-lang/rust/issues/65815
2022-11-09 15:39:05 -05:00
Manish Goregaokar
67c0bff934
Rollup merge of #104015 - alex:remove-kernel, r=oli-obk
...
Remove linuxkernel targets
These are not used by the actual Rust-for-Linux project, so they're mostly just confusing.
2022-11-09 15:39:05 -05:00
Manish Goregaokar
017c9aa4a0
Rollup merge of #103929 - BlackHoleFox:apple-targets-cleanup, r=petrochenkov
...
Cleanup Apple-related code in rustc_target
While working on https://github.com/rust-lang/rust/pull/103455 , the consistency of the `rustc_target` code for Apple's platforms was "kind of bad." There were two "base" files (`apple_base.rs` and `apple_sdk_base.rs`) that the targets each pulled some parts out of, each and all of them were written slightly differently, and sometimes missed comments other implementations had.
So to hopefully make future maintenance, like implementing https://github.com/rust-lang/compiler-team/issues/556 , easier, this makes all of them use similar patterns and the same target base logic everywhere instead of picking bits from both. This also has some other smaller upsides like less stringly-typed functions.
2022-11-09 15:39:04 -05:00
Manish Goregaokar
3f11d39eec
Rollup merge of #103464 - JakobDegen:mir-parsing, r=oli-obk
...
Add support for custom mir
This implements rust-lang/compiler-team#564 . Details about the design, motivation, etc. can be found in there.
r? ```@oli-obk```
2022-11-09 15:39:03 -05:00
Manish Goregaokar
46bc12c95a
Rollup merge of #103307 - b4den:master, r=estebank
...
Add context to compiler error message
Changed `creates a temporary which is freed while still in use` to `creates a temporary value which is freed while still in use`.
2022-11-09 15:39:02 -05:00
Manish Goregaokar
2206267c31
Rollup merge of #101005 - SLASHLogin:rustc_codegen_llvm_diagnostics, r=davidtwco
...
Migrate rustc_codegen_llvm to SessionDiagnostics
WIP: Port current implementation of diagnostics to the new SessionDiagnostics.
Part of #100717
```@rustbot``` label +A-translation
2022-11-09 15:39:02 -05:00
Nilstrieb
07a47e0708
Emit error in collecting_trait_impl_trait_tys on mismatched signatures
...
Previously, a `delay_span_bug` was isssued, failing normalization. This
create a `TyKind::Error` in the signature, which caused
`compare_predicate_entailment` to swallow its signature mismatch error,
causing ICEs because no error was emitted.
2022-11-09 21:28:07 +01:00
Michael Goulet
38ada60eb6
Suggest is_some or let when encountering Option and bool type mismatch
2022-11-09 20:00:24 +00:00
Michael Goulet
9568138069
rebase conflict
2022-11-09 19:42:23 +00:00
Michael Goulet
e807cb3c41
Make span_suggestions take IntoIterator
2022-11-09 19:42:23 +00:00
Michael Goulet
fbce7decd8
DiagnosticBuilder -> Diagnostic
2022-11-09 19:42:23 +00:00
Michael Goulet
bdced83a2e
Use ObligationCtxt in expected_inputs_for_expected_outputs
2022-11-09 18:55:11 +00:00
Jannis Christopher Köhl
9766ee0b20
Fix struct field tracking and add tests for it
2022-11-09 18:21:42 +01:00
Jannis Christopher Köhl
bfbca6c75c
Completely remove tracking of references for now
2022-11-09 18:03:30 +01:00
bors
c71658706f
Auto merge of #104192 - Dylan-DPC:rollup-jjo1o80, r=Dylan-DPC
...
Rollup of 7 pull requests
Successful merges:
- #103570 (Stabilize integer logarithms)
- #103694 (Add documentation examples for `pointer::mask`)
- #103919 (Unescaping cleanups)
- #103933 (Promote {aarch64,i686,x86_64}-unknown-uefi to Tier 2)
- #103952 (Don't intra linkcheck reference)
- #104111 (rustdoc: Add mutable to the description)
- #104125 (Const Compare for Tuples)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-11-09 16:54:02 +00:00
yukang
c69872bb6c
add 'is_assign_rhs' to avoid weird suggesting 'let'
2022-11-10 00:43:12 +08:00
Cameron Steffen
76cab67ed8
Add domain size check to fix ICE
2022-11-09 10:19:23 -06:00
Boxy
4c197c0319
docs
2022-11-09 14:25:08 +00:00
SLASHLogin
caada745d1
Add missing emitted_at to the Diagnostic
2022-11-09 15:14:58 +01:00
SLASHLogin
39895b0716
Add constructor for Diagnostic that takes Vec<(DiagnosticMessage, Style)>
2022-11-09 14:57:54 +01:00
SLASHLogin
0baac880fc
Update compiler/rustc_codegen_llvm/src/back/archive.rs
...
Co-authored-by: David Wood <agile.lion3441@fuligin.ink >
2022-11-09 14:56:21 +01:00
SLASHLogin
a8a8055cc7
Use LayoutError's implementation of IntoDiagnostic
2022-11-09 14:56:21 +01:00
SLASHLogin
0381e51822
Formatting
2022-11-09 14:56:21 +01:00
SLASHLogin
3b949eb7c1
Add replace_args method for rustc_errors::diagnostic::Diagnostic
2022-11-09 14:56:21 +01:00
SLASHLogin
b4820a3b94
Delay diagnostic translation in rustc_codegen_ssa
2022-11-09 14:56:21 +01:00
SLASHLogin
9a1545861e
Simplify existing Diagnostic implementations
2022-11-09 14:56:21 +01:00
SLASHLogin
3728e95596
Port diagnostics created by Handler
2022-11-09 14:56:21 +01:00
SLASHLogin
67394e7945
Flatten diagnostic structs
2022-11-09 14:56:21 +01:00
SLASHLogin
e9a5329a6f
Correct tests to match errors
2022-11-09 14:56:21 +01:00
SLASHLogin
1c7a801bbc
Fix CI
...
Add missing 'the' to the error en-US translation
2022-11-09 14:56:21 +01:00
SLASHLogin
185ef7b6de
Port MissingFeatures and TargetFeatureDisableOrEnable
2022-11-09 14:56:21 +01:00
SLASHLogin
33ef16f291
Port UnknownArchiveKind
2022-11-09 14:56:21 +01:00
SLASHLogin
c01546fcd6
Port DlltoolFailImportLibrary and implement IntoDiagnosticArg for Cow<'a, str>
2022-11-09 14:56:21 +01:00
SLASHLogin
81f7a8d7f1
Port ErrorCallingDllTool
2022-11-09 14:56:21 +01:00
SLASHLogin
ddbb650289
Import ErrorWritingDEFFile
2022-11-09 14:56:21 +01:00
SLASHLogin
d32caf9ced
Port ArchiveBuildFailure
2022-11-09 14:56:21 +01:00
SLASHLogin
978b5f73e4
Port SanitizerMemtagRequiresMte
2022-11-09 14:56:21 +01:00
SLASHLogin
02403ee31d
Reuse SymbolAlreadyDefined
2022-11-09 14:56:20 +01:00
SLASHLogin
60ee496c74
Port LinkageConstOrMutType error
2022-11-09 14:56:20 +01:00
SLASHLogin
5d79d3c4bb
Port InvalidMinimumAlignment
2022-11-09 14:56:20 +01:00
SLASHLogin
39d363fd58
Port layout size overflow
2022-11-09 14:56:20 +01:00
SLASHLogin
f031823ecd
Formatting
2022-11-09 14:56:20 +01:00
SLASHLogin
59b8aedf0e
Port branch protection on aarch64
2022-11-09 14:56:20 +01:00
SLASHLogin
ec1e101e1b
Fix diag() and formatting
2022-11-09 14:56:20 +01:00
SLASHLogin
9f0c16576b
Port symbol_already_defined error
2022-11-09 14:56:20 +01:00
SLASHLogin
4c625dc682
Port Instrument coverage requires llvm 12 to the new struct
2022-11-09 14:56:20 +01:00
SLASHLogin
05ae7ecb74
Import error creating import library
2022-11-09 14:56:20 +01:00
SLASHLogin
69d412a073
Missing lifetime parameter and formatting
2022-11-09 14:56:20 +01:00
SLASHLogin
b1647903f8
Change String in structs to &'a str
2022-11-09 14:56:20 +01:00