rust/compiler/rustc_lint/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
..
nonstandard_style
array_into_iter.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
builtin.rs Rollup merge of #103338 - l4l:enum-unreachable-pub, r=nagisa 2022-10-31 14:52:55 +05:30
context.rs privacy: Rename "accessibility levels" to "effective visibilities" 2022-10-26 16:34:53 +04:00
early.rs
enum_intrinsics_non_enums.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
errors.rs Convert all #[suggestion_*] attributes to #[suggestion(style = "...")] 2022-10-26 15:04:09 +02:00
expect.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
for_loops_over_fallibles.rs
hidden_unicode_codepoints.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
internal.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
late.rs privacy: Rename "accessibility levels" to "effective visibilities" 2022-10-26 16:34:53 +04:00
let_underscore.rs
levels.rs Change unknown_lint applicability to MaybeIncorrect 2022-10-22 07:17:36 -04:00
lib.rs privacy: Rename "accessibility levels" to "effective visibilities" 2022-10-26 16:34:53 +04:00
methods.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
non_ascii_idents.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
non_fmt_panic.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
nonstandard_style.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
noop_method_call.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
opaque_hidden_inferred_bound.rs Rollup merge of #103575 - Xiretza:suggestions-style-attr, r=davidtwco 2022-11-01 20:00:38 -04:00
pass_by_value.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
passes.rs
redundant_semicolon.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
tests.rs
traits.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
types.rs Rollup merge of #103625 - WaffleLapkin:no_tyctxt_dogs_allowed, r=compiler-errors 2022-10-29 14:18:03 +02:00
unused.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00