From 13a416298c1670f0304eeb64f46a410cd1bb5e8e Mon Sep 17 00:00:00 2001 From: Tommy Ip Date: Mon, 6 Nov 2017 14:20:31 +0000 Subject: [PATCH] Update tests for new format! error message --- src/test/ui/cross-crate-macro-backtrace/main.stderr | 2 +- src/test/ui/macros/macro-backtrace-println.stderr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/ui/cross-crate-macro-backtrace/main.stderr b/src/test/ui/cross-crate-macro-backtrace/main.stderr index 84db85ac092..4dad6d60b40 100644 --- a/src/test/ui/cross-crate-macro-backtrace/main.stderr +++ b/src/test/ui/cross-crate-macro-backtrace/main.stderr @@ -1,4 +1,4 @@ -error: invalid reference to argument `0` (no arguments given) +error: 1 positional argument in format string, but no arguments were given --> $DIR/main.rs:16:5 | 16 | myprintln!("{}"); //~ ERROR in this macro diff --git a/src/test/ui/macros/macro-backtrace-println.stderr b/src/test/ui/macros/macro-backtrace-println.stderr index f21253bb67f..3e782294484 100644 --- a/src/test/ui/macros/macro-backtrace-println.stderr +++ b/src/test/ui/macros/macro-backtrace-println.stderr @@ -1,4 +1,4 @@ -error: invalid reference to argument `0` (no arguments given) +error: 1 positional argument in format string, but no arguments were given --> $DIR/macro-backtrace-println.rs:24:30 | 24 | ($fmt:expr) => (myprint!(concat!($fmt, "/n")));