Fix trans for foreign methods#22538
Conversation
|
(rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
This should be a span_bug, not span_fatal, unless you think this is user error (the assert suggests it's a bug in the compiler).
Also, it's always nice to print out the value of f.abi too.
|
r+ if the fatal is changed to a bug (ping me or someone else once that's done...) |
|
note to self:
|
abd4ffd to
0debe6d
Compare
|
I updated the code to report error in typeck, and indeed, it is much nicer. I’m not happy about the span, though. Currently it spans the whole function and I’d like to only span the |
70c16e4 to
11e7b20
Compare
11e7b20 to
ba4cdca
Compare
This fixes a general issue of trying to define extern functions inside impl blocks resulting in ICE. Fixes rust-lang#21238 Fixes rust-lang#20734 Fixes rust-lang#19047
ba4cdca to
9be8ec8
Compare
|
Rebased. |
|
Needs Manishearth@77b4bba to work on master. You're part of the rollup, so you shouldn't have to worry about this though. |
|
Also 315f200 (Windows specific stuff) |
|
Is it possible to get this reverted? Or more accurately, changed to completely disallow non-Rust ABI methods? There's a bunch of bugs related to this and I'm not sure non-Rust ABI methods really make sense. All this PR did was allow them to be declared, but didn't handle the bodies. It also never addressed methods on trait objects. |
minor: Bump `peaceiris/actions-gh-pages`
No description provided.