rust/compiler
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
..
rustc
rustc_apfloat
rustc_arena
rustc_ast
rustc_ast_lowering
rustc_ast_passes
rustc_ast_pretty
rustc_attr Auto merge of #71481 - estebank:inherit-stability, r=nikomatsakis 2021-03-05 05:28:07 +00:00
rustc_builtin_macros
rustc_codegen_cranelift
rustc_codegen_llvm Auto merge of #81451 - nikic:llvm-12, r=nagisa 2021-03-04 15:16:44 +00:00
rustc_codegen_ssa Rollup merge of #80723 - rylev:noop-lint-pass, r=estebank 2021-03-05 10:57:14 +01:00
rustc_data_structures
rustc_driver Auto merge of #82304 - LeSeulArtichaut:unpretty-ast, r=spastorino 2021-03-04 05:46:43 +00:00
rustc_error_codes Rollup merge of #80527 - jyn514:rustdoc-lints, r=GuillaumeGomez 2021-03-04 20:01:01 +09:00
rustc_errors
rustc_expand Auto merge of #71481 - estebank:inherit-stability, r=nikomatsakis 2021-03-05 05:28:07 +00:00
rustc_feature Rollup merge of #82697 - jplatte:patch-1, r=davidtwco 2021-03-04 20:01:07 +09:00
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer
rustc_interface Fix rustc_driver self text and bump the mir_opt_level 2021-03-05 17:13:58 -03:00
rustc_lexer
rustc_lint Rollup merge of #80723 - rylev:noop-lint-pass, r=estebank 2021-03-05 10:57:14 +01:00
rustc_lint_defs Make invalid_doc_attribute lint plural 2021-03-05 14:44:31 +01:00
rustc_llvm Schedule ThinLTOBuffer passes again after sanitizer passes 2021-03-03 20:48:37 +01:00
rustc_macros
rustc_metadata
rustc_middle Auto merge of #82795 - m-ou-se:rollup-uzx0b92, r=m-ou-se 2021-03-05 13:34:33 +00:00
rustc_mir Rollup merge of #82736 - spastorino:mir-opt-level-perf-changes, r=oli-obk 2021-03-05 21:44:40 +01:00
rustc_mir_build Rollup merge of #80723 - rylev:noop-lint-pass, r=estebank 2021-03-05 10:57:14 +01:00
rustc_parse Detect match arm body without braces 2021-03-03 12:17:26 -08:00
rustc_parse_format
rustc_passes Rollup merge of #82651 - jyn514:rustdoc-warnings, r=GuillaumeGomez 2021-03-07 10:41:13 +09:00
rustc_plugin_impl
rustc_privacy
rustc_query_impl
rustc_query_system
rustc_resolve Rollup merge of #80763 - petrochenkov:pubusecrate, r=estebank 2021-03-05 10:57:15 +01:00
rustc_save_analysis
rustc_serialize
rustc_session Fix MIR optimization level description 2021-03-05 17:13:58 -03:00
rustc_span Rollup merge of #82773 - mgacek8:feature/add_diagnostic_item_to_Default_trait, r=oli-obk 2021-03-05 10:57:24 +01:00
rustc_symbol_mangling
rustc_target Rollup merge of #77916 - QuiltOS:kernel-code-targets-os-none, r=joshtriplett 2021-03-07 10:41:04 +09:00
rustc_trait_selection Fix tests 2021-03-03 11:22:44 +01:00
rustc_traits Fix tests 2021-03-03 11:22:44 +01:00
rustc_ty_utils
rustc_type_ir
rustc_typeck Auto merge of #82738 - estebank:tail-expr-check-is-too-slow, r=oli-obk 2021-03-06 21:02:53 +00:00