rust/compiler/rustc_middle/src
bors f361413cbf Auto merge of #106399 - estebank:type-err-span-label, r=nagisa
Modify primary span label for E0308

Looking at the reactions to https://hachyderm.io/`@ekuber/109622160673605438,` a lot of people seem to have trouble understanding the current output, where the primary span label on type errors talks about the specific types that diverged, but these can be deeply nested type parameters. Because of that we could see "expected i32, found u32" in the label while the note said "expected Vec<i32>, found Vec<u32>". This understandably confuses people. I believe that once people learn to read these errors it starts to make more sense, but this PR changes the output to be more in line with what people might expect, without sacrificing terseness.

Fix #68220.
2023-01-31 13:53:40 +00:00
..
dep_graph rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
hir Remove HirId -> LocalDefId map from HIR. 2023-01-28 09:55:26 +00:00
infer Make make_identity take CanonicalVarInfos 2023-01-26 20:33:40 +00:00
middle rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
mir use a more descriptive name 2023-01-30 07:20:38 +02:00
query Auto merge of #107463 - Dylan-DPC:rollup-6mq1li8, r=Dylan-DPC 2023-01-30 11:14:21 +00:00
thir address review 2023-01-27 22:13:55 +01:00
traits Impl HashStable/Encodable/Decodable for ObligationCause. 2023-01-27 18:56:32 +00:00
ty Fix unquoted projection types in label 2023-01-30 22:02:30 +00:00
util Add some docs to bug, span_bug and delay_span_bug 2022-12-30 16:47:56 +01:00
arena.rs Remove HirId -> LocalDefId map from HIR. 2023-01-28 09:55:26 +00:00
error.rs Match crate and slug names 2022-11-21 15:24:50 +01:00
lib.rs Use strict provenance APIs in ty::tls 2023-01-21 11:25:21 +01:00
lint.rs create helper function for rustc_lint_defs::Level and remove it's duplicated code r=ozkanonur 2023-01-10 10:56:17 +03:00
macros.rs Stop using BREAK & CONTINUE in compiler 2023-01-17 23:17:51 -08:00
metadata.rs rustc: Parameterize ty::Visibility over used ID 2022-09-07 13:35:41 +04:00
tests.rs
thir.rs output tree representation for thir-tree 2023-01-26 11:31:55 +01:00
values.rs add EarlyBinder::subst_identity; impl ParameterizedOverTcx (needed for rustc_metadata) and Value for EarlyBinder 2023-01-14 00:13:06 -07:00