Skip to content

Commit

Permalink
Merge #6176
Browse files Browse the repository at this point in the history
6176: add eprintln in fmt-like postfix r=SomeoneToIgnore a=bnjjj



Co-authored-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
  • Loading branch information
bors[bot] and bnjjj authored Oct 9, 2020
2 parents b0eb01e + 3645928 commit 05261f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/ide/src/completion/complete_postfix/format_like.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ static KINDS: &[(&str, &str)] = &[
("fmt", "format!"),
("panic", "panic!"),
("println", "println!"),
("eprintln", "eprintln!"),
("logd", "log::debug!"),
("logt", "log::trace!"),
("logi", "log::info!"),
Expand Down Expand Up @@ -259,6 +260,7 @@ mod tests {
fn test_into_suggestion() {
let test_vector = &[
("println!", "{}", r#"println!("{}", $1)"#),
("eprintln!", "{}", r#"eprintln!("{}", $1)"#),
(
"log::info!",
"{} {expr} {} {2 + 2}",
Expand Down

0 comments on commit 05261f5

Please sign in to comment.