1
Fork 0

Use verbose help for deprecation suggestion

This commit is contained in:
Chris Denton 2022-06-29 09:36:12 +01:00
parent 116edb6800
commit 3cbf864d43
No known key found for this signature in database
GPG key ID: 713472F2F45627DE
4 changed files with 28 additions and 6 deletions

View file

@ -150,7 +150,7 @@ pub fn deprecation_suggestion(
span: Span,
) {
if let Some(suggestion) = suggestion {
diag.span_suggestion(
diag.span_suggestion_verbose(
span,
&format!("replace the use of the deprecated {}", kind),
suggestion,