diff options
| author | kennytm <kennytm@gmail.com> | 2019-02-16 00:55:49 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2019-02-16 14:11:30 +0800 |
| commit | 49107c3398c88c7d46ada7285a953089b8e87864 (patch) | |
| tree | faa56ccc07c8872df87e324578d004d0b64bd360 /src/rustllvm/RustWrapper.cpp | |
| parent | f05e6bf7089fa3d5f3b490eb8d9fc89bc044604d (diff) | |
| parent | 8ca44069bbd8df4d88b08a0fb9fdb63895d60560 (diff) | |
| download | rust-49107c3398c88c7d46ada7285a953089b8e87864.tar.gz rust-49107c3398c88c7d46ada7285a953089b8e87864.zip | |
Rollup merge of #58196 - varkor:const-fn-feature-gate-error, r=oli-obk
Add specific feature gate error for const-unstable features
Before:
```
error: `impl Trait` in const fn is unstable
--> src/lib.rs:7:19
|
7 | const fn foo() -> impl T {
| ^^^^^^
error: aborting due to previous error
```
After:
```
error[E0723]: `impl Trait` in const fn is unstable (see issue #57563)
--> src/lib.rs:7:19
|
7 | const fn foo() -> impl T {
| ^^^^^^
= help: add #![feature(const_fn)] to the crate attributes to enable
error: aborting due to previous error
```
This improves the situation with https://github.com/rust-lang/rust/issues/57563. Fixes https://github.com/rust-lang/rust/issues/57544. Fixes https://github.com/rust-lang/rust/issues/54469.
r? @oli-obk
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
