about summary refs log tree commit diff
path: root/src/libstd/sys/unix/ext/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-07-09 03:41:22 +0000
committerbors <bors@rust-lang.org>2015-07-09 03:41:22 +0000
commitafe25a2d6aaa308cce861fab50014f6a9f57a269 (patch)
treeb5dd91309e3ed292722faa5e4ea8295cd0df293e /src/libstd/sys/unix/ext/mod.rs
parent3198e1acf3301fdcfe527feb327ccd02d0e4434b (diff)
parentb952c0e4e9f3c169c6647fd05fef68ae1119865a (diff)
downloadrust-afe25a2d6aaa308cce861fab50014f6a9f57a269.tar.gz
rust-afe25a2d6aaa308cce861fab50014f6a9f57a269.zip
Auto merge of #26515 - quantheory:check_enum_recursion, r=nrc
Fixes #23302.

Note that there's an odd situation regarding the following, most likely due to some inadequacy in `const_eval`:

```rust
enum Y {
    A = 1usize,
    B,
}
```

In this case, `Y::B as usize` might be considered a constant expression in some cases, but not others.  (See #23513, for a related problem where there is only one variant, with no discriminant, and it doesn't behave nicely as a constant expression either.)

Most of the complexity in this PR is basically future-proofing, to ensure that when `Y::B as usize` is fully made to be a constant expression, it can't be used to set `Y::A`, and thus indirectly itself.
Diffstat (limited to 'src/libstd/sys/unix/ext/mod.rs')
0 files changed, 0 insertions, 0 deletions