about summary refs log tree commit diff
path: root/src/test/ui/label
AgeCommit message (Collapse)AuthorLines
2021-01-21Parse loop labels missing a leading `'`Esteban Küber-17/+22
When encountering the following typo: ```rust a: loop { break 'a; } ``` provide an appropriate suggestion.
2021-01-21Avoid emitting redundant "unused label" lintEsteban Küber-63/+17
2021-01-21Add more misspelled label testsEsteban Küber-15/+173
2021-01-21Tweak error for invalid `break expr`Esteban Küber-34/+71
Point at loop head on invalid `break expr`. Suggest removing `expr` or using label if available.
2021-01-21Suggest `'a` when given `a` only when appropriateEsteban Küber-20/+24
When encountering a name `a` that isn't resolved, but a label `'a` is found in the current ribs, only suggest `'a` if this name is the value expression of a `break` statement. Solve FIXME.
2021-01-21Account for labels when suggesting `loop` instead of `while true`Esteban Küber-2/+100
2020-12-17Add test case for break expr with misspelled valueDaiki Ihara-0/+65
Update src/test/ui/loops/loop-break-value.rs Co-authored-by: Ivan Tham <pickfire@riseup.net>
2020-05-26Allow unlabeled breaks from desugared `?` in labeled blocksSamrat Man Singh-0/+12
2020-04-21Added proper explanation error code E0696pankajchaudhary5-1/+2
2020-03-10more reuse in block parsing & improve diagnostics.Mazdak Farrokhzad-1/+4
2020-02-13parser: fuse free `fn` parsing together.Mazdak Farrokhzad-3/+3
2019-12-23more recovery in if-parsingMazdak Farrokhzad-1/+1
2019-11-25Tweak bad `continue` errorEsteban Küber-7/+2
2019-11-15Don't warn labels beginning with `_`Yuki Okushi-0/+10
2019-11-06Remove "here" from "expected one of X here"Esteban Küber-2/+2
2019-07-12Use snippet instead of pprinting statementEsteban Küber-2/+2
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-2/+1
2019-03-11Update testsVadim Petrochenkov-14/+14
2018-12-25Remove licensesMark Rousskov-64/+14
2018-11-05Auto merge of #55451 - estebank:arg-doc, r=pnkfelixbors-1/+3
Custom diagnostic when trying to doc comment argument When writing ``` pub fn f( /// Comment id: u8, ) {} ``` Produce a targeted diagnostic ``` error: documentation comments cannot be applied to method arguments --> $DIR/fn-arg-doc-comment.rs:2:5 | LL | /// Comment | ^^^^^^^^^^^ doc comments are not allowed here ``` Fix #54801.
2018-10-28Use token description in "expected/found" parse messagesEsteban Küber-0/+2
2018-10-28Point at `match` when a parse failure ocurrs inside of itEsteban Küber-1/+3
2018-08-19Fix typos found by codespell.Matthias Krüger-1/+1
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+232