Camille GILLOT
42e4eee893
Shorten def_span for more items.
2022-07-01 17:39:19 +02:00
Takayuki Maeda
b2480a0251
suggest extern crate foo when failing to resolve use foo
...
fix ci error
2022-05-25 09:58:19 +09:00
Esteban Kuber
1c85987274
Point (again) to more expressions with their type, even if not fully resolved
2022-03-27 02:20:17 +00:00
Noah Lev
c8198a608e
Improve suggestion for escaping reserved keywords
2022-01-27 14:53:39 -08:00
Hirochika Matsumoto
a72dd4a5b9
Explain why Self is invalid in generic parameters
2021-10-19 23:00:18 +09:00
Esteban Küber
99f2977031
Modify structured suggestion output
...
* On suggestions that include deletions, use a diff inspired output format
* When suggesting addition, use `+` as underline
* Color highlight modified span
2021-08-11 09:46:24 +00:00
Yuki Okushi
2c6268678d
Move some UI tests to more suitable subdirs
2021-06-30 06:41:10 +09:00
Mazdak Farrokhzad
af1146bd23
parse: recover on const fn() / async fn().
2020-03-26 09:44:11 +01:00
Vadim Petrochenkov
e80cb2032c
resolve: Fix regression in resolution of raw keywords in paths
2020-03-14 19:21:38 +03:00
varkor
8461fa5119
Diagnostics should not end with a full stop
2020-01-12 15:37:50 +00:00
Esteban Küber
6f8f70624b
Surround types with backticks in type errors
2019-11-18 11:03:04 -08:00
Esteban Küber
94c6425464
Remove E0308 note when primary label has all info
2019-11-18 11:03:03 -08:00
Mazdak Farrokhzad
2fe6f22dea
Rollup merge of #65640 - estebank:recover-missing-semi, r=Centril
...
Use heuristics to recover parsing of missing `;`
- Detect `,` and `:` typos where `;` was intended.
- When the next token could have been the start of a new statement,
detect a missing semicolon.
Fix #48160 , fix #44767 (after adding note about statements).
2019-10-28 21:35:58 +01:00
Esteban Küber
1b0836df6f
Tweak unexpected token wording
2019-10-28 10:53:13 -07:00
Esteban Küber
b26ddb8af3
Point at local similarly named element and tweak references to variants
...
Point at the span for the definition of ADTs internal to the current
crate.
Look at the leading char of the ident to determine whether we're
expecting a likely fn or any of a fn, a tuple struct or a tuple variant.
Turn fn `add_typo_suggestion` into a `Resolver` method.
2019-10-27 11:50:43 -07:00
Esteban Küber
0baf61bfdb
Increase spacing for suggestions in diagnostics
...
Make the spacing between the code snippet and verbose structured
suggestions consistent with note and help messages.
2019-10-24 12:26:01 -07:00
Guillaume Gomez
2fd3811509
update ui tests
2019-09-25 16:41:05 +02:00
Mazdak Farrokhzad
f908aa9e80
recover on 'mut ' and improve recovery for keywords.
2019-08-27 13:04:48 +02:00
Andy Russell
b6f148c8bd
hide --explain hint if error has no extended info
2019-04-18 13:29:28 -04:00
Vadim Petrochenkov
fa72a81bea
Update tests
2019-03-11 23:10:26 +03:00
Mazdak Farrokhzad
c4f6ef25d2
remove extern_in_paths.
2019-01-13 14:18:00 +01:00
Yuning Zhang
710dcbd381
Improve type mismatch error messages
...
Replace "integral variable" with "integer" and replace
"floating-point variable" with "floating-point number" to make the
message less confusing.
2018-12-31 20:43:08 -05:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Alexander Regueiro
24717fdaa1
Updated ui tests.
2018-11-30 15:42:57 +00:00
Alexander Regueiro
d49a8d558f
Removed feature gate.
2018-11-30 15:42:43 +00:00
Vadim Petrochenkov
4fc3c13e32
resolve: Avoid sentence breaks in diagnostics
2018-11-18 13:58:36 +03:00
F001
2157958b27
introduce SelfCtor
2018-09-13 12:27:29 +08:00
David Wood
3fc7ab2373
Merged migrated compile-fail tests and ui tests. Fixes #46841 .
2018-08-14 11:12:09 +02:00