about summary refs log tree commit diff
path: root/src/libsyntax/ext/asm.rs
diff options
context:
space:
mode:
authorJonas Hietala <tradet.h@gmail.com>2014-08-23 12:41:32 +0200
committerJonas Hietala <tradet.h@gmail.com>2014-08-24 09:53:01 +0200
commit9968ae255495704cb0c3fc1f43d2df2e84c20d5e (patch)
tree9812a6ca9aa9325047cba5294fdc1dc5b5ff1e97 /src/libsyntax/ext/asm.rs
parent2e5aea65cd2594f19b9043d8df0e6461504cda9b (diff)
downloadrust-9968ae255495704cb0c3fc1f43d2df2e84c20d5e.tar.gz
rust-9968ae255495704cb0c3fc1f43d2df2e84c20d5e.zip
Adjust the error messages to match the pattern "expected foo, found bar"
Closes #8492
Diffstat (limited to 'src/libsyntax/ext/asm.rs')
-rw-r--r--src/libsyntax/ext/asm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/asm.rs b/src/libsyntax/ext/asm.rs
index 43fa0964f80..180f2409b8a 100644
--- a/src/libsyntax/ext/asm.rs
+++ b/src/libsyntax/ext/asm.rs
@@ -151,7 +151,7 @@ pub fn expand_asm(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree])
                     clobs.push(clob);
 
                     if OPTIONS.iter().any(|opt| s.equiv(opt)) {
-                        cx.span_warn(p.last_span, "expected a clobber, but found an option");
+                        cx.span_warn(p.last_span, "expected a clobber, found an option");
                     }
                 }