Uh oh!
There was an error while loading. Please reload this page.
[MIR] Make InlineAsm a Statement - #39854
Conversation
Previously InlineAsm was an Rvalue, but its semantics doesn’t really match the semantics of an Rvalue – rather it behaves more like a Statement.
| // asm. | ||
| } | ||
| // FIXME: rvalue with undeterminable type - e.g. AggregateKind::Array branch that | ||
| // returns `None`. |
There was a problem hiding this comment.
If I understand correctly, this case (the only remaining case that returns None now that InlineAsm is gone) is for empty arrays. I think that returning [!; 0] would be the correct behavior, removing the need to return an Option.
There was a problem hiding this comment.
At least currently [T; 0] is not a subtype of [!; 0] so no, that would not work.
There was a problem hiding this comment.
I think the problem is that Array ought to carry the type of its elements.
nikomatsakis
commented
Feb 16, 2017
@bors r+ |
bors
commented
Feb 16, 2017
📌 Commit 4a3c66a has been approved by |
nikomatsakis
commented
Feb 16, 2017
Thanks @nagisa ! |
[MIR] Make InlineAsm a Statement Previously InlineAsm was an Rvalue, but its semantics doesn’t really match the semantics of an Rvalue – rather it behaves more like a Statement. r? @nikomatsakis you wanted this to happen
[MIR] Make InlineAsm a Statement Previously InlineAsm was an Rvalue, but its semantics doesn’t really match the semantics of an Rvalue – rather it behaves more like a Statement. r? @nikomatsakis you wanted this to happen
[MIR] Make InlineAsm a Statement Previously InlineAsm was an Rvalue, but its semantics doesn’t really match the semantics of an Rvalue – rather it behaves more like a Statement. r? @nikomatsakis you wanted this to happen
alexcrichton
commented
Feb 18, 2017
@bors: retry |
bors
commented
Feb 18, 2017
[MIR] Make InlineAsm a Statement Previously InlineAsm was an Rvalue, but its semantics doesn't really match the semantics of an Rvalue - rather it behaves more like a Statement. r? @nikomatsakis you wanted this to happen
bors
commented
Feb 18, 2017
☀️ Test successful - status-appveyor, status-travis |
Previously InlineAsm was an Rvalue, but its semantics doesn't really match the semantics of an
Rvalue - rather it behaves more like a Statement.
r? @nikomatsakis you wanted this to happen