]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #53364 - varkor:gat-warn-broken, r=pnkfelix
authorkennytm <kennytm@gmail.com>
Thu, 16 Aug 2018 16:13:23 +0000 (00:13 +0800)
committerGitHub <noreply@github.com>
Thu, 16 Aug 2018 16:13:23 +0000 (00:13 +0800)
Warn if the user tries to use GATs

GATs are currently broken, but still accessible behind a feature gate. This leads to people attempting to use them and then immediately encountering ICEs (or other broken behaviour). Here, we emit a warning if the user tries to use any feature associated with GATs, hopefully making it obvious that ICEs and the like are expected. For the meantime, this seems better than continually getting reported errors (for example: [here](https://github.com/rust-lang/rust/issues?q=is%3Aissue+gat+is%3Aclosed) and [here](https://github.com/rust-lang/rust/issues?utf8=%E2%9C%93&q=is%3Aissue+generic_associated_types+is%3Aclosed)).

1  2 
src/libsyntax/feature_gate.rs

Simple merge