diff options
| author | Andy Russell <arussell123@gmail.com> | 2019-01-25 16:03:27 -0500 |
|---|---|---|
| committer | Andy Russell <arussell123@gmail.com> | 2019-01-26 23:07:55 -0500 |
| commit | 0897ffc28f68fab862e970599c95bb65b280b48b (patch) | |
| tree | 7a1b107f558b9fc90815eadae7b004129b509f8f /src/libsyntax_ext/format.rs | |
| parent | 8eaa84c79f5491735dc616d8591318e954e57a68 (diff) | |
| download | rust-0897ffc28f68fab862e970599c95bb65b280b48b.tar.gz rust-0897ffc28f68fab862e970599c95bb65b280b48b.zip | |
remove `_with_applicability` from suggestion fns
Diffstat (limited to 'src/libsyntax_ext/format.rs')
| -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, |
