rust/compiler/rustc_passes/src
Yuki Okushi 3d42c00f0b
Rollup merge of #79877 - bstrie:depinfut, r=oli-obk
Allow `since="TBD"` for rustc_deprecated

Closes #78381.

This PR only affects `#[rustc_deprecated]`, not `#[deprecated]`, so there is no effect on any stable language feature.

Likewise this PR only implements `since="TBD"`, it does not actually tag any library functions with it, so there is no effect on any stable API.

Overview of changes:

* `rustc_middle/stability.rs`:
    * change `deprecation_in_effect` function to return `false` when `since="TBD"`
    * tidy up the compiler output when a deprecated item has `since="TBD"`
* `rustc_passes/stability.rs`:
    * allow `since="TBD"` to pass the sanity check for stable_version < deprecated_version
    * refactor the "invalid stability version" and "invalid deprecation version" error into separate errors
* rustdoc: make `since="TBD"` message on a deprecated item's page match the command-line deprecation output
* tests:
    * test rustdoc output
    * test that the `deprecated_in_future` lint fires when `since="TBD"`
    * test the new "invalid deprecation version" error message
2020-12-17 11:43:57 +09:00
..
liveness Move RWUTable to a separate module 2020-12-09 00:00:00 +00:00
check_attr.rs Don't ICE on malformed rustc_args_required_const attribute 2020-12-06 00:00:00 +00:00
check_const.rs Implement lowering of if-let guards to MIR 2020-12-06 13:42:24 +01:00
dead.rs Simplify visit_{foreign,trait}_item 2020-12-08 15:56:15 +01:00
diagnostic_items.rs Use visitor for its very purpose. 2020-11-26 21:32:29 +01:00
entry.rs Formatting. 2020-11-26 21:32:29 +01:00
hir_id_validator.rs Do not visit ForeignItemRef for HIR indexing and validation. 2020-11-28 18:08:17 +01:00
hir_stats.rs rustc_ast: visit_mac -> visit_mac_call 2020-11-03 23:39:51 +03:00
intrinsicck.rs Retain assembly operands span when lowering AST to HIR 2020-12-06 20:48:08 +01:00
lang_items.rs Store ForeignItem in a side table. 2020-11-26 21:29:27 +01:00
layout_test.rs Store ForeignItem in a side table. 2020-11-26 21:29:27 +01:00
lib_features.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
lib.rs Validate use of parameters in naked functions 2020-11-25 00:00:00 +00:00
liveness.rs Rollup merge of #79051 - LeSeulArtichaut:if-let-guard, r=matthewjasper 2020-12-17 11:43:55 +09:00
loops.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
naked_functions.rs Validate naked functions definitions 2020-12-07 00:00:00 +00:00
reachable.rs Formatting. 2020-11-26 21:32:29 +01:00
region.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
stability.rs Allow since="TBD" for rustc_deprecated 2020-12-16 13:21:24 -05:00
upvars.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
weak_lang_items.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00