mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
format-postfix completion takes format instead of fmt
This commit is contained in:
parent
fd1fcf2c2e
commit
20bd4ddd4e
@ -502,7 +502,7 @@ fn main() {
|
||||
#[test]
|
||||
fn postfix_completion_for_format_like_strings() {
|
||||
check_edit(
|
||||
"fmt",
|
||||
"format",
|
||||
r#"fn main() { "{some_var:?}".<|> }"#,
|
||||
r#"fn main() { format!("{:?}", some_var) }"#,
|
||||
);
|
||||
|
@ -22,7 +22,7 @@ use syntax::ast::{self, AstToken};
|
||||
|
||||
/// Mapping ("postfix completion item" => "macro to use")
|
||||
static KINDS: &[(&str, &str)] = &[
|
||||
("fmt", "format!"),
|
||||
("format", "format!"),
|
||||
("panic", "panic!"),
|
||||
("println", "println!"),
|
||||
("eprintln", "eprintln!"),
|
||||
|
Loading…
Reference in New Issue
Block a user