]> git.lizzy.rs Git - rust.git/commit
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)
commit4968eea6395f69df57274deeed473bbed853467b
tree612bf34377f15cd942afb95a201febde0150ac55
parent1cda84bfdbed2c14ae787cb41ebff1c166ac5fd9
parentbc8cead070a44a9ebc7cd559479e0266c45c7c72
Rollup merge of #53364 - varkor:gat-warn-broken, r=pnkfelix

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)).
src/libsyntax/feature_gate.rs