-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add support for half-open range patterns #13739
Copy link
Copy link
Closed
Labels
A-parserparser issuesparser issuesA-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionC-featureCategory: feature requestCategory: feature requestE-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Metadata
Metadata
Assignees
Labels
A-parserparser issuesparser issuesA-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionC-featureCategory: feature requestCategory: feature requestE-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently produces three syntax errors
[{ "resource": "/home/jplatte/code/playground/src/lib.rs", "owner": "rustc", "code": { "value": "syntax-error", "target": { "$mid": 1, "external": "https://rust-analyzer.github.io/manual.html#syntax-error", "path": "/manual.html", "scheme": "https", "authority": "rust-analyzer.github.io", "fragment": "syntax-error" } }, "severity": 8, "message": "Syntax Error: expected FAT_ARROW", "source": "rust-analyzer", "startLineNumber": 3, "startColumn": 11, "endLineNumber": 3, "endColumn": 11 }] [{ "resource": "/home/jplatte/code/playground/src/lib.rs", "owner": "rustc", "code": { "value": "syntax-error", "target": { "$mid": 1, "external": "https://rust-analyzer.github.io/manual.html#syntax-error", "path": "/manual.html", "scheme": "https", "authority": "rust-analyzer.github.io", "fragment": "syntax-error" } }, "severity": 8, "message": "Syntax Error: expected expression", "source": "rust-analyzer", "startLineNumber": 3, "startColumn": 11, "endLineNumber": 3, "endColumn": 11 }] [{ "resource": "/home/jplatte/code/playground/src/lib.rs", "owner": "rustc", "code": { "value": "syntax-error", "target": { "$mid": 1, "external": "https://rust-analyzer.github.io/manual.html#syntax-error", "path": "/manual.html", "scheme": "https", "authority": "rust-analyzer.github.io", "fragment": "syntax-error" } }, "severity": 8, "message": "Syntax Error: expected `,`", "source": "rust-analyzer", "startLineNumber": 3, "startColumn": 12, "endLineNumber": 3, "endColumn": 12 }]Half-open range patterns were stabilized for 1.66 in rust-lang/rust#102275.