rust/src/libsyntax/feature_gate
Tyler Mandry c5bb2ec0dd
Rollup merge of #66197 - Centril:transparent-ast, r=varkor
Push `ast::{ItemKind, ImplItemKind}::OpaqueTy` hack down into lowering

We currently have a hack in the form of `ast::{ItemKind, ImplItemKind}::OpaqueTy` which is constructed literally when you write `type Alias = impl Trait;` but not e.g. `type Alias = Vec<impl Trait>;`. Per https://github.com/rust-lang/rfcs/pull/2515, this needs to change to allow `impl Trait` in nested positions.  This PR achieves this change for the syntactic aspect but not the semantic one, which will require changes in lowering and def collection. In the interim, `TyKind::opaque_top_hack` is introduced to avoid knock-on changes in lowering, collection, and resolve. These hacks can then be removed and fixed one by one until the desired semantics are supported.

r? @varkor
2019-11-15 14:44:47 +01:00
..
accepted.rs Push re_rebalance_coherence to 1.41 2019-11-07 15:20:56 +01:00
active.rs support issue = "none" in unstable attributes 2019-11-11 19:33:30 +02:00
builtin_attrs.rs Rollup merge of #66166 - GuillaumeGomez:rename-rustdoc-to-doc, r=QuietMisdreavus 2019-11-13 22:09:13 +09:00
check.rs Rollup merge of #66197 - Centril:transparent-ast, r=varkor 2019-11-15 14:44:47 +01:00
mod.rs support issue = "none" in unstable attributes 2019-11-11 19:33:30 +02:00
removed.rs Remove #[feature(custom_attribute)] 2019-11-09 17:50:51 +03:00