rust/compiler/rustc_ast_lowering/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
..
asm.rs Stabilize asm_sym 2022-10-17 22:38:37 +01:00
block.rs
errors.rs Convert all #[suggestion_*] attributes to #[suggestion(style = "...")] 2022-10-26 15:04:09 +02:00
expr.rs Lower condition directly from AST to HIR 2022-10-13 18:20:39 -07:00
index.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
item.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
lib.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
lifetime_collector.rs
pat.rs rustc_hir: Less error-prone methods for accessing PartialRes resolution 2022-10-11 09:04:52 +04:00
path.rs adopt to compiler changes 2022-10-25 13:47:43 +00:00