about summary refs log tree commit diff
path: root/tests/ui/parser/misspelled-keywords
AgeCommit message (Collapse)AuthorLines
2025-08-26fix: Add col separator before secondary messages with no sourceScott Schafer-0/+1
2025-07-31Extend `is_case_difference` to handle digit-letter confusablesxizheyin-4/+4
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-06-11Add expectation for `{` when parsing lone coroutine qualifiersLukas Wirth-2/+2
2025-03-06Use closure parse codeSantiago Pastorino-2/+2
2025-02-21More sophisticated span trimmingMichael Goulet-3/+2
2025-02-14Trim suggestion parts to the subset that is purely additiveMichael Goulet-1/+1
2025-02-14Use underline suggestions for purely 'additive' replacementsMichael Goulet-3/+2
2025-02-10Show diff suggestion format on verbose replacementEsteban Küber-53/+80
``` error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields --> $DIR/attempted-access-non-fatal.rs:7:15 | LL | let _ = 2.l; | ^ | help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix | LL - let _ = 2.l; LL + let _ = 2.0f64; | ```
2024-11-24parse guard patternsNadrieril-2/+2
Co-authored-by: Max Niederman <max@maxniederman.com>
2024-09-12Implement a Method to Seal `DiagInner`'s SuggestionsVeera-8/+0
2024-09-06Add Suggestions for Misspelled KeywordsVeera-5/+139
This PR detects misspelled keywords using two heuristics: 1. Lowercasing the unexpected identifier. 2. Using edit distance to find a keyword similar to the unexpected identifier. However, it does not detect each and every misspelled keyword to minimize false positives and ambiguities. More details about the implementation can be found in the comments.
2024-09-02Update TestsVeera-0/+409