Convert all #[suggestion_*] attributes to #[suggestion(style = "...")]
Using the following command: find compiler/ -type f -name '*.rs' -exec perl -i -gpe \ 's/(#\[\w*suggestion)_(short|verbose|hidden)\(\s*(\S+,)?/\1(\3style = "\2",/g' \ '{}' +
This commit is contained in:
parent
20f2958b8a
commit
cd621be782
10 changed files with 73 additions and 38 deletions
|
@ -129,7 +129,7 @@ pub fn lint_diagnostic_derive(s: Structure<'_>) -> TokenStream {
|
|||
/// }
|
||||
///
|
||||
/// #[derive(Subdiagnostic)]
|
||||
/// #[suggestion_verbose(parser::raw_identifier)]
|
||||
/// #[suggestion(style = "verbose",parser::raw_identifier)]
|
||||
/// pub struct RawIdentifierSuggestion<'tcx> {
|
||||
/// #[primary_span]
|
||||
/// span: Span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue