mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Merge #11321
11321: Remove spurious format r=lnicola a=schuyler-cohen-zipline Co-authored-by: Schuyler Cohen <schuyler.cohen@flyzipline.com>
This commit is contained in:
commit
df53403863
1 changed files with 0 additions and 1 deletions
|
@ -13,7 +13,6 @@ pub fn is_format_string(string: &ast::String) -> bool {
|
||||||
//
|
//
|
||||||
// This setup lets us correctly highlight the components of `concat!("{}", "bla")` format
|
// This setup lets us correctly highlight the components of `concat!("{}", "bla")` format
|
||||||
// strings. It still fails for `concat!("{", "}")`, but that is rare.
|
// strings. It still fails for `concat!("{", "}")`, but that is rare.
|
||||||
format!("{string} {bar}", bar = string);
|
|
||||||
(|| {
|
(|| {
|
||||||
let macro_call = string.syntax().ancestors().find_map(ast::MacroCall::cast)?;
|
let macro_call = string.syntax().ancestors().find_map(ast::MacroCall::cast)?;
|
||||||
let name = macro_call.path()?.segment()?.name_ref()?;
|
let name = macro_call.path()?.segment()?.name_ref()?;
|
||||||
|
|
Loading…
Reference in a new issue