Closed
Description
E.g. consider this code (save it to a file with CR line endings):
fn main() {
let a = 0;
}
Error:
test.rs:1:18: 1:23 error: cannot determine a type for this local variable: cannot determine the type of this integer; add a suffix to specify the type explicitly [E0102]
}est.rs:let a = 0;) {
^~~~~
error: aborting due to previous error
I'm pretty sure this did not used to happen.
I suggest disallowing bare CRs rather than fixing this span issue.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: The grammar of RustCategory: This is a bug.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.Low priorityRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the language team, which will review and decide on the PR/issue.