-
Notifications
You must be signed in to change notification settings - Fork 13.4k
E0138 needs to be updated to new format #35510
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
sophiajt
pushed a commit
to sophiajt/rust
that referenced
this issue
Aug 10, 2016
Update E0138 to new format Part of rust-lang#35233 Fix rust-lang#35510 r? @jonathandturner  Question: How can I only underline the function name ? I have observed the debug output and the struct of item, but I can't find the `Span` for function name. Should I modify the struct I get to save function name's position or there is another way to get it ? (I can only find `Span`s for function attributes, inputs, outputs, blocks)
sophiajt
pushed a commit
to sophiajt/rust
that referenced
this issue
Aug 13, 2016
Update E0138 to new format Part of rust-lang#35233 Fix rust-lang#35510 r? @jonathandturner  Question: How can I only underline the function name ? I have observed the debug output and the struct of item, but I can't find the `Span` for function name. Should I modify the struct I get to save function name's position or there is another way to get it ? (I can only find `Span`s for function attributes, inputs, outputs, blocks)
eddyb
added a commit
to eddyb/rust
that referenced
this issue
Aug 14, 2016
Update E0138 to new format Part of rust-lang#35233 Fix rust-lang#35510 r? @jonathandturner  Question: How can I only underline the function name ? I have observed the debug output and the struct of item, but I can't find the `Span` for function name. Should I modify the struct I get to save function name's position or there is another way to get it ? (I can only find `Span`s for function attributes, inputs, outputs, blocks)
eddyb
added a commit
to eddyb/rust
that referenced
this issue
Aug 14, 2016
Update E0138 to new format Part of rust-lang#35233 Fix rust-lang#35510 r? @jonathandturner  Question: How can I only underline the function name ? I have observed the debug output and the struct of item, but I can't find the `Span` for function name. Should I modify the struct I get to save function name's position or there is another way to get it ? (I can only find `Span`s for function attributes, inputs, outputs, blocks)
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Uh oh!
There was an error while loading. Please reload this page.
From: src/test/compile-fail/E0138.rs
E0138 needs a span_label, updating it from:
To:
Bonus: would be better to just underline the name of the function and show the other start function:
The text was updated successfully, but these errors were encountered: