Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler crashes displaying error line when compiling .rc files #677

Closed
brson opened this issue Jul 12, 2011 · 2 comments
Closed

Compiler crashes displaying error line when compiling .rc files #677

brson opened this issue Jul 12, 2011 · 2 comments
Labels
A-frontend Area: frontend (errors, parsing and HIR)

Comments

@brson
Copy link
Contributor

brson commented Jul 12, 2011

When compiling a .rc file and there is an error in one of the .rs files. The compiler will crash when trying to use the codemap to display which line the error was on.

Example:

../src/lib/test.rs:82:23:82:52: error: unknown type in conversion:
rt: d76f:main:main:                   upcall fail 'Assertion end <= str::byte_len(s) failed', /media/src/rust-tinderbox/srcdir-snap-stage3-x86_64-unknown-linux-gnu/src/lib/str.rs:393

This is likely because it is trying to relate numbers in the codemap to bytes in the file, but the codemap treats all files in the compilation unit as if they were one giant file. So when it goes to look up line 5 in foo.rs it may (currently) end up looking for byte 17000.

@brson
Copy link
Contributor Author

brson commented Jul 13, 2011

This functionality is temporarily disabled in e53cfb9 because it was messing with the windows build bot

@brson
Copy link
Contributor Author

brson commented Aug 5, 2011

Long fixed.

@brson brson closed this as completed Aug 5, 2011
pdietl pushed a commit to pdietl/rust that referenced this issue Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: frontend (errors, parsing and HIR)
Projects
None yet
Development

No branches or pull requests

1 participant