Nicholas Nethercote
dd2b027d5d
Tweak more warnings.
...
Much like the previous commit.
I think the removal of "the token" in each message is fine here. There
are many more error messages that mention tokens without saying "the
token" than those that do say it.
2024-10-28 14:20:28 +11:00
Lieselotte
3d20c810b0
Fix Parser::break_up_float
's right span
2024-09-14 12:41:25 +02:00
George Bateman
23f46e5b99
Stabilize offset_of_nested
2024-07-29 17:50:12 +01:00
Esteban Küber
cc9631a371
When displaying multispans, ignore empty lines adjacent to ...
...
```
error[E0308]: `match` arms have incompatible types
--> tests/ui/codemap_tests/huge_multispan_highlight.rs:98:18
|
6 | let _ = match true {
| ---------- `match` arms have incompatible types
7 | true => (
| _________________-
8 | | // last line shown in multispan header
... |
96 | |
97 | | ),
| |_________- this is found to be of type `()`
98 | false => "
| __________________^
... |
119 | |
120 | | ",
| |_________^ expected `()`, found `&str`
error[E0308]: `match` arms have incompatible types
--> tests/ui/codemap_tests/huge_multispan_highlight.rs:215:18
|
122 | let _ = match true {
| ---------- `match` arms have incompatible types
123 | true => (
| _________________-
124 | |
125 | | 1 // last line shown in multispan header
... |
213 | |
214 | | ),
| |_________- this is found to be of type `{integer}`
215 | false => "
| __________________^
216 | |
217 | |
218 | | 1 last line shown in multispan
... |
237 | |
238 | | ",
| |_________^ expected integer, found `&str`
```
2024-03-18 16:25:36 +00:00
George Bateman
09bb07e38f
Make offset_of field parsing use metavariable which handles any spacing
2024-01-02 22:18:35 +00:00
Chayim Refael Friedman
592844cf88
Warn on unused offset_of!() result
2023-06-21 11:43:14 +03:00
est31
1b90f5efaf
Support float-like tuple indices in offset_of!()
...
The tokenizer gives us whole float literal tokens, we have to split them up
in order to be able to create field access from them.
2023-06-08 23:42:58 +02:00
clubby789
d722f27684
Test invalid tuple field identifiers
2023-06-02 01:33:09 +00:00