about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2019-02-16 00:55:49 +0800
committerkennytm <kennytm@gmail.com>2019-02-16 14:11:30 +0800
commit49107c3398c88c7d46ada7285a953089b8e87864 (patch)
treefaa56ccc07c8872df87e324578d004d0b64bd360 /src/rustllvm/RustWrapper.cpp
parentf05e6bf7089fa3d5f3b490eb8d9fc89bc044604d (diff)
parent8ca44069bbd8df4d88b08a0fb9fdb63895d60560 (diff)
downloadrust-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