Commit Graph

21 Commits

Author SHA1 Message Date
yukang 5afa27c67b fix tests 2023-05-01 16:15:17 +08:00
Nilstrieb 4a65efc7e8 Rip it out
My type ascription
Oh rip it out
Ah
If you think we live too much then
You can sacrifice diagnostics
Don't mix your garbage
Into my syntax
So many weird hacks keep diagnostics alive
Yet I don't even step outside
So many bad diagnostics keep tyasc alive
Yet tyasc doesn't even bother to survive!
2023-05-01 16:15:13 +08:00
Oli Scherer f79bdb9a33 Run check_match and check_liveness when MIR is built instead of having an explicit phase for them 2023-04-21 22:32:38 +00:00
Camille GILLOT def7dd3d9c Reinstate confusion note. 2023-04-03 15:59:21 +00:00
Camille GILLOT b6ccedde88 Perform match checking on THIR. 2023-04-03 15:59:21 +00:00
Camille GILLOT c5c3f7e806 Shrink binding span. 2023-04-03 15:59:21 +00:00
Jamen Marz 635fd65763 Add notes to non-structural const in pattern error message 2023-03-27 11:08:11 -04:00
Ezra Shaw 531a1e00ec error-msg: impl better suggestion for E0532 2023-03-15 22:19:54 +13:00
Vadim Petrochenkov cde9e9d7ec resolve: Remove struct_field_names_untracked 2023-03-13 17:31:55 +04:00
Esteban Küber 5eb6468cef Modify primary span label for E0308
The previous output was unintuitive to users.
2023-01-30 20:12:19 +00:00
Matthias Krüger 6f970db125 Rollup merge of #106978 - mejrs:mir_build3, r=davidtwco
Migrate mir_build's borrow conflicts

This also changes the error message slightly, for two reasons:

- I'm not a fan of saying "value borrowed, by `x`, here"
- it simplifies the error implementation significantly.
2023-01-26 15:02:20 +01:00
Matthias Krüger 75d1d276bd Rollup merge of #106897 - estebank:issue-99430, r=davidtwco
Tweak E0597

CC #99430
2023-01-25 22:19:52 +01:00
--global ac6454ed96 Change bindings_with_variant_name to deny-by-default 2023-01-20 02:26:12 -05:00
mejrs 8d591b2212 Migrate mir_build's borrow conflicts 2023-01-17 13:48:43 +01:00
Esteban Küber e775d95135 Tweak E0597
CC #99430
2023-01-15 19:46:20 +00:00
Ezra Shaw 2d97c581d8 suggest fix for attempted integer identifier in patterns 2023-01-14 12:51:20 +13:00
mejrs 70d2e86bcc Translate Overlap eagerly 2023-01-11 14:40:13 -08:00
mejrs b67adfa326 Don't recommend if let if let else works 2023-01-11 14:40:07 -08:00
mejrs d09f21f498 Migrate pattern matching 2023-01-11 14:40:02 -08:00
mejrs d3dde881c1 Migrate deconstruct_pat.rs 2023-01-11 14:39:49 -08:00
Albert Larsan 8f6b5d4e26 Move /src/test to /tests 2023-01-11 09:32:08 +00:00