1
Fork 0

Migrate stable let_chains error to session diagnostics

This commit is contained in:
Nilstrieb 2022-08-29 19:49:30 +02:00
parent d1ef8180f9
commit 01acfef1a4
3 changed files with 14 additions and 23 deletions

View file

@ -4,6 +4,10 @@ ast_passes_forbidden_let =
.not_supported_or = `||` operators are not supported in let chain expressions
.not_supported_parentheses = `let`s wrapped in parentheses are not supported in a context with let chains
ast_passes_forbidden_let_stable =
expected expression, found statement (`let`)
.note = variable declaration using `let` is a statement
ast_passes_deprecated_where_clause_location =
where clause not allowed here