about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-04-04 11:07:10 +0200
committerGitHub <noreply@github.com>2018-04-04 11:07:10 +0200
commitb7b2ae2b6f88ea29290e0b25576c4a92690c0e26 (patch)
treef0b86b0d4b20c17cc0a29484d6b6d271357c4acb /src/rustllvm/RustWrapper.cpp
parent5758c2dd14fd29caf7c7bb2123eb6b23443b9233 (diff)
parentb2ed9dd546e33ded4a80acd02e1710fe811936b2 (diff)
downloadrust-b7b2ae2b6f88ea29290e0b25576c4a92690c0e26.tar.gz
rust-b7b2ae2b6f88ea29290e0b25576c4a92690c0e26.zip
Rollup merge of #49179 - varkor:future-deprecation, r=QuietMisdreavus,GuillaumeGomez
Handle future deprecation annotations

This adds special handling to the `since` parameter of the `deprecated` attribute: in particular, if the `since` version exceeds the version of the compiler, the deprecation notice will not be printed; but a note is added to the documentation stating that the item will be deprecated in a later version.

(I've used `since` for this, rather than adding a new attribute, because it's more seamless and, I feel, intuitive. Plus it involves less code churn.)

![image](https://user-images.githubusercontent.com/3943692/37611317-ef5cdf16-2b99-11e8-8251-e35e8f7b0137.png)
![image](https://user-images.githubusercontent.com/3943692/37611323-f748c2d0-2b99-11e8-966b-11408c73d416.png)

This is a prerequisite for doing things renaming methods in the standard library (e.g. #30459). Resolves #30785.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions