diff options
| author | Zack M. Davis <code@zackmdavis.net> | 2017-08-22 16:05:01 -0700 |
|---|---|---|
| committer | Zack M. Davis <code@zackmdavis.net> | 2017-08-22 20:37:14 -0700 |
| commit | 8492ad2479379d2e07ccf2d3439ec29b19d164b8 (patch) | |
| tree | 0b689201efb14d9a1dea597ae54ec413ff550aa8 /src/rustllvm/RustWrapper.cpp | |
| parent | 7b6e9b4b8424e8ef722a3fa6388fe3bc8414bab0 (diff) | |
| download | rust-8492ad2479379d2e07ccf2d3439ec29b19d164b8.tar.gz rust-8492ad2479379d2e07ccf2d3439ec29b19d164b8.zip | |
"soft" (warn instead of error) feature-gate for #[must_use] on functions
Before `#[must_use]` for functions was implemented, a `#[must_use]` attribute on a function was a no-op. To avoid a breaking change in this behavior, we add an option for "this-and-such feature is experimental" feature-gate messages to be a mere warning rather than a compilation-halting failure (so old code that used to have a useless no-op `#[must_use]` attribute now warns rather than breaking). When we're on stable, we add a help note to clarify that the feature isn't "on." This is in support of #43302.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
