diff options
| author | bors <bors@rust-lang.org> | 2015-02-28 18:36:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-02-28 18:36:00 +0000 |
| commit | 890293655251c372ea99694c0c9f0795e2663286 (patch) | |
| tree | dcd899519544caface9bf0d5d6b07c762c89bc50 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 8a69110c3b1122596ddc8999bb2403a5777bb8ed (diff) | |
| parent | 6c35bf4fbc4f795eb18bbb0c750ed478a47fff4e (diff) | |
| download | rust-890293655251c372ea99694c0c9f0795e2663286.tar.gz rust-890293655251c372ea99694c0c9f0795e2663286.zip | |
Auto merge of #21521 - defuz:interval-with-path, r=pnkfelix
Fixing #21475. Right now this code can not be parsed:
```rust
use m::{START, END};
fn main() {
match 42u32 {
m::START...m::END => {}, // error: expected one of `::`, `=>`, or `|`, found `...`
_ => {},
}
}
mod m {
pub const START: u32 = 4;
pub const END: u32 = 14;
}
```
I fixed the parser and added test for this case, but now there are still problems with mixing literals and paths in interval:
```rust
match 42u32 {
0u32...m::END => {}, // mismatched types in range [E0031]
m::START...59u32 => {}, // mismatched types in range [E0031]
_ => {},
}
}
```
I'll try fix this problem and need review.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
