diff options
| author | bors <bors@rust-lang.org> | 2019-01-27 06:35:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-01-27 06:35:51 +0000 |
| commit | 1484d0d123860dbd79804e9996f3fa5b6f4a6d58 (patch) | |
| tree | 62ccf312c693be2bc4f57991c31e0034da7a0eba /src/libsyntax_ext | |
| parent | 677064b979874407b861bf06bf88969aba174ff7 (diff) | |
| parent | 0897ffc28f68fab862e970599c95bb65b280b48b (diff) | |
| download | rust-1484d0d123860dbd79804e9996f3fa5b6f4a6d58.tar.gz rust-1484d0d123860dbd79804e9996f3fa5b6f4a6d58.zip | |
Auto merge of #57907 - euclio:applicability-rename, r=estebank
remove deprecated suggestion functions This PR removes the (now unused) deprecated suggestion functions and removes `_with_applicability` from their replacements' names. This PR will break clippy, but I'll open a clippy PR once this is merged.
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/format.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax_ext/format.rs b/src/libsyntax_ext/format.rs index 215df4224c5..4c473fe7612 100644 --- a/src/libsyntax_ext/format.rs +++ b/src/libsyntax_ext/format.rs @@ -763,7 +763,7 @@ pub fn expand_preparsed_format_args(ecx: &mut ExtCtxt, 0 => "{}".to_string(), _ => format!("{}{{}}", "{} ".repeat(args.len())), }; - err.span_suggestion_with_applicability( + err.span_suggestion( fmt_sp.shrink_to_lo(), "you might be missing a string literal to format with", format!("\"{}\", ", sugg_fmt), @@ -1080,7 +1080,7 @@ pub fn expand_preparsed_format_args(ecx: &mut ExtCtxt, )); } if suggestions.len() > 0 { - diag.multipart_suggestion_with_applicability( + diag.multipart_suggestion( "format specifiers use curly braces", suggestions, Applicability::MachineApplicable, |
