-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)
Description
Test case:
fn dummy() {
// padding
// padding
// padding
// padding
// padding
// padding
// padding
// padding
// padding
// padding
// padding
// padding
// padding
// padding
}
fn main() {
// oopsie
for [1,2,3,4,5].slice(3,1).each |x| { log(error, x); } // Line 20, not line 1!
assert true == false; // This reports line 21 if you comment out the above line
}
Output (with incorrect line number):
rust: task failed at 'Assertion start <= end failed', fail.rs:1
Expected output:
rust: task failed at 'Assertion start <= end failed', fail.rs:20
Metadata
Metadata
Assignees
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)