rust/src/librustc_resolve
bors 5748825cc8 Auto merge of #61682 - Centril:stabilize-type_alias_enum_variants, r=petrochenkov
Stabilize `type_alias_enum_variants` in Rust 1.37.0

Stabilize `#![feature(type_alias_enum_variants)]` which allows type-relative resolution with highest priority to `enum` variants in both expression and pattern contexts. For example, you may now write:

```rust
enum Option<T> {
    None,
    Some(T),
}

type OptAlias<T> = Option<T>;

fn work_on_alias(x: Option<u8>) -> u8 {
    match x {
        OptAlias::Some(y) => y + 1,
        OptAlias::None => 0,
    }
}
```

Closes https://github.com/rust-lang/rfcs/issues/2218
Closes https://github.com/rust-lang/rust/issues/52118

r? @petrochenkov
2019-07-01 03:11:19 +00:00
..
build_reduced_graph.rs Rollup merge of #61898 - petrochenkov:sekind, r=eddyb 2019-06-19 01:52:10 +02:00
Cargo.toml rustc: use indexmap instead of a plain vector for upvars. 2019-06-01 19:17:22 +03:00
check_unused.rs rustc: remove 'x: 'y bounds (except from comments/strings). 2019-06-18 18:10:21 +03:00
diagnostics.rs rustc: remove 'x: 'y bounds (except from comments/strings). 2019-06-18 18:10:21 +03:00
error_codes.rs Fix error code description 2019-04-25 23:19:36 +01:00
lib.rs Auto merge of #61682 - Centril:stabilize-type_alias_enum_variants, r=petrochenkov 2019-07-01 03:11:19 +00:00
macros.rs Remove built-in derive macros Send and Sync 2019-06-23 15:33:39 +03:00
resolve_imports.rs rustc: remove 'x: 'y bounds (except from comments/strings). 2019-06-18 18:10:21 +03:00