diff options
| author | Gary Guo <gary@garyguo.net> | 2021-09-24 21:58:25 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2021-12-01 19:59:15 +0000 |
| commit | f7ef1c9f4163df30ae67ab177d5c306cb90b3d47 (patch) | |
| tree | b67fb64885b1caf857e94f2f128c472fa9a98c3d /compiler/rustc_mir_transform/src/coverage/mod.rs | |
| parent | f04a2f4b8e89eac1119061ea2055d33c97e618b4 (diff) | |
| download | rust-f7ef1c9f4163df30ae67ab177d5c306cb90b3d47.tar.gz rust-f7ef1c9f4163df30ae67ab177d5c306cb90b3d47.zip | |
Disallow non-c-like but "fieldless" ADTs from being casted to integer...
... if they use arbitrary enum discriminant. Code like
```rust
enum Enum {
Foo = 1,
Bar(),
Baz{}
}
```
seems to be unintentionally allowed so we couldn't disallow them now,
but we could disallow them if arbitrary enum discriminant is used before
1.56 hits stable.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions
