rust/compiler/rustc_passes/src
Manish Goregaokar 69e705564d
Rollup merge of #103575 - Xiretza:suggestions-style-attr, r=davidtwco
Change #[suggestion_*] attributes to use style="..."

As discussed [on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/336883-i18n/topic/.23100717.20tool_only_span_suggestion), this changes `#[(multipart_)suggestion_{short,verbose,hidden}(...)]` attributes to plain `#[(multipart_)suggestion(...)]` attributes with a `style = "{short,verbose,hidden}"` parameter.

It also adds a new style, `tool-only`, that corresponds to `tool_only_span_suggestion`/`tool_only_multipart_suggestion` and causes the suggestion to not be shown in human-readable output at all.

Best reviewed commit-by-commit, there's a bit of noise in there.

cc #100717 `@compiler-errors`
r? `@davidtwco`
2022-11-01 20:00:38 -04:00
..
liveness Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
check_attr.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
check_const.rs Remove code that was removed in master, and the corresponding diagnostic 2022-10-07 13:19:28 -06:00
dead.rs Rewrite implementation of #[alloc_error_handler] 2022-10-31 16:32:57 +00:00
debugger_visualizer.rs migrate debugger_visualizer.rs to translateable diagnostics 2022-10-07 13:19:27 -06:00
diagnostic_items.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
entry.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
errors.rs Rollup merge of #103575 - Xiretza:suggestions-style-attr, r=davidtwco 2022-11-01 20:00:38 -04:00
hir_id_validator.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
hir_stats.rs Rename AssocItemKind::TyAlias to AssocItemKind::Type 2022-10-10 02:31:37 +00:00
lang_items.rs Simplify lang item groups 2022-10-29 16:04:10 -05:00
layout_test.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
lib_features.rs migrate lib_features.rs to translateable diagnostics 2022-10-07 13:19:27 -06:00
lib.rs Add lint for diagnostic migration 2022-10-07 13:19:26 -06:00
liveness.rs Refactor rustc lint API 2022-10-01 10:03:06 +00:00
loops.rs migrate loops.rs to translateable diagnostics 2022-10-07 13:19:27 -06:00
naked_functions.rs migrate naked_functions.rs to translateable diagnostics 2022-10-07 13:19:27 -06:00
reachable.rs Improve LanguageItems api 2022-10-29 16:04:04 -05:00
stability.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
upvars.rs Rename local_did to def_id 2022-07-29 18:26:10 -04:00
weak_lang_items.rs Rewrite implementation of #[alloc_error_handler] 2022-10-31 16:32:57 +00:00