diff options
| author | kennytm <kennytm@gmail.com> | 2019-03-16 14:56:32 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2019-03-16 22:39:36 +0800 |
| commit | db93c9b1798164ed9ac500a92b2741a601f2ca86 (patch) | |
| tree | ab5572817cc02411680d06ee094edbc1e951cf5a /src/test/incremental/thinlto | |
| parent | 9d7450372648d5c15837d007a2ac77f84fb6cc58 (diff) | |
| parent | 3a83cb2c9ba2acca0577a5f4a092d7fc5b243faf (diff) | |
| download | rust-db93c9b1798164ed9ac500a92b2741a601f2ca86.tar.gz rust-db93c9b1798164ed9ac500a92b2741a601f2ca86.zip | |
Rollup merge of #59036 - dlrobertson:fix_59021, r=estebank
Fix ICE in MIR pretty printing
A `Def::Variant` should be considered as a function in mir pretty
printing. Each variant has a constructor that we must print.
Given the following enum definition:
```rust
pub enum TestMe {
X(usize),
}
```
We will need to generate a constructor for the variant `X` with a
signature that looks something like the following:
```
fn TestMe::X(_1: usize) -> TestMe;
```
Fixes: #59021
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
