rust/compiler/rustc_passes/src
Yuki Okushi f3218dfa57
Rollup merge of #82651 - jyn514:rustdoc-warnings, r=GuillaumeGomez
Cleanup rustdoc warnings

## Clean up error reporting for deprecated passes

Using `error!` here goes all the way back to the original commit, https://github.com/rust-lang/rust/pull/8540. I don't see any reason to use logging; rustdoc should use diagnostics wherever possible. See https://github.com/rust-lang/rust/pull/81932#issuecomment-785291244 for further context.

- Use spans for deprecated attributes
- Use a proper diagnostic for unknown passes, instead of error logging
- Add tests for unknown passes
- Improve some wording in diagnostics

##  Report that `doc(plugins)` doesn't work using diagnostics instead of `eprintln!`

This also adds a test for the output.

This was added in https://github.com/rust-lang/rust/pull/52194. I don't see any particular reason not to use diagnostics here, I think it was just missed in https://github.com/rust-lang/rust/pull/50541.
2021-03-07 10:41:13 +09:00
..
liveness Move RWUTable to a separate module 2020-12-09 00:00:00 +00:00
check_attr.rs Rollup merge of #82651 - jyn514:rustdoc-warnings, r=GuillaumeGomez 2021-03-07 10:41:13 +09:00
check_const.rs remove redundant wrapping of return types of allow_internal_unstable() and rustc_allow_const_fn_unstable() 2021-02-21 18:11:27 +01:00
dead.rs Consider auto derefs before warning about write only fields 2021-02-19 00:00:00 +00:00
diagnostic_items.rs Use less HirId when referring to items. 2021-02-15 19:36:12 +01:00
entry.rs Only store a LocalDefId in hir::Item. 2021-02-15 19:32:10 +01:00
hir_id_validator.rs Index Modules using their LocalDefId. 2021-02-15 19:32:30 +01:00
hir_stats.rs Rollup merge of #82258 - tmiasko:foreign-hir-stats, r=davidtwco 2021-02-23 16:10:22 +01:00
intrinsicck.rs Use ty::{IntTy,UintTy,FloatTy} in rustc 2021-01-18 21:09:30 +01:00
lang_items.rs Only store a LocalDefId in hir::ImplItem. 2021-02-15 19:32:29 +01:00
layout_test.rs Only store a LocalDefId in hir::Item. 2021-02-15 19:32:10 +01:00
lib.rs Validate use of parameters in naked functions 2020-11-25 00:00:00 +00:00
lib_features.rs Inherit #[stable(..)] annotations in enum variants and fields from its item 2021-02-10 19:10:14 -08:00
liveness.rs Use identifier's span in unused lint 2021-02-28 23:21:18 +01:00
loops.rs Do not suggest using a break label when one is already present 2021-01-21 21:43:29 -08:00
naked_functions.rs Reintroduce hir::ExprKind::If 2021-01-07 18:54:12 -03:00
reachable.rs Only store a LocalDefId in hir::ImplItem. 2021-02-15 19:32:29 +01:00
region.rs Rename HIR UnOp variants 2021-02-09 11:39:20 +03:00
stability.rs Auto merge of #71481 - estebank:inherit-stability, r=nikomatsakis 2021-03-05 05:28:07 +00:00
upvars.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
weak_lang_items.rs This should address issue 81294. 2021-01-25 14:37:27 -05:00