You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Self works in impls now, it's probably time to retire that hack and always provide the correct type. SelfExplicit appears to hold the type (with its correct span), instead of the self argument itself, in this case.
Activity
marcusklaas commentedon Aug 4, 2015
It's seems to be caused by this `hack': https://github.com/rust-lang/rust/blob/master/src/libsyntax/ast.rs#L1503-L1521. (Called here: https://github.com/rust-lang/rust/blob/master/src/libsyntax/parse/parser.rs#L4321-L4323)
Weirdly enough, the proper span is shown for diagnostics: play.rust-lang.org
Any pointers, @eddyb?
eddyb commentedon Aug 5, 2015
Since
Selfworks inimpls now, it's probably time to retire that hack and always provide the correct type.SelfExplicitappears to hold the type (with its correct span), instead of theselfargument itself, in this case.estebank commentedon Aug 23, 2016
This has been fixed. Can this ticket be closed?
Add test for correct span for type
Rollup merge of rust-lang#38606 - estebank:test-for-27522, r=petroche…
Add test for correct span for type
Rollup merge of rust-lang#38606 - estebank:test-for-27522, r=petroche…