about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/messages.ftl
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-12-28 18:20:44 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-01-18 21:13:27 +0000
commita47fee50bd2740caa91b6d658fa6e808466de5a5 (patch)
treef603e65096141554fe05378403f56757703d3ae4 /compiler/rustc_const_eval/messages.ftl
parentbcd0683e5dce1945b5d940714742e7502883bb5c (diff)
downloadrust-a47fee50bd2740caa91b6d658fa6e808466de5a5.tar.gz
rust-a47fee50bd2740caa91b6d658fa6e808466de5a5.zip
Structured suggestion for "missing `feature` in unstable fn call"
When encountering a call corresponding to an item marked as unstable behind a feature flag, provide a structured suggestion pointing at where in the crate the `#![feature(..)]` needs to be written.

```
error: `foobar` is not yet stable as a const fn
  --> $DIR/const-stability-attribute-implies-no-feature.rs:12:5
   |
LL |     foobar();
   |     ^^^^^^^^
   |
help: add `#![feature(const_foobar)]` to the crate attributes to enable
   |
LL + #![feature(const_foobar)]
   |
```

Fix #81370.
Diffstat (limited to 'compiler/rustc_const_eval/messages.ftl')
0 files changed, 0 insertions, 0 deletions