mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Add missing Diag::with_span_suggestion_with_style method
This commit is contained in:
@@ -934,6 +934,7 @@ pub fn span_suggestion(
|
||||
self
|
||||
} }
|
||||
|
||||
with_fn! { with_span_suggestion_with_style,
|
||||
/// [`Diag::span_suggestion()`] but you can set the [`SuggestionStyle`].
|
||||
pub fn span_suggestion_with_style(
|
||||
&mut self,
|
||||
@@ -956,7 +957,7 @@ pub fn span_suggestion_with_style(
|
||||
applicability,
|
||||
});
|
||||
self
|
||||
}
|
||||
} }
|
||||
|
||||
with_fn! { with_span_suggestion_verbose,
|
||||
/// Always show the suggested change.
|
||||
|
||||
Reference in New Issue
Block a user