about summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2014-11-20 20:25:27 -0500
committerJorge Aparicio <japaricious@gmail.com>2014-12-03 10:41:48 -0500
commitb32b24d13a8cbf5db44ac73b44ae48ad639a47c7 (patch)
tree051fdd1c7a72c5267a849fa14d39c41cdbc4d80a /src/libsyntax/ext
parent2840d58dab0144c5589b60322c4f681bd8052aba (diff)
downloadrust-b32b24d13a8cbf5db44ac73b44ae48ad639a47c7.tar.gz
rust-b32b24d13a8cbf5db44ac73b44ae48ad639a47c7.zip
Replace `equiv` method calls with `==` operator sugar
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/asm.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ext/asm.rs b/src/libsyntax/ext/asm.rs
index a0999d9eee9..b138811187b 100644
--- a/src/libsyntax/ext/asm.rs
+++ b/src/libsyntax/ext/asm.rs
@@ -148,7 +148,7 @@ pub fn expand_asm<'cx>(cx: &'cx mut ExtCtxt, sp: Span, tts: &[ast::TokenTree])
 
                     let (s, _str_style) = p.parse_str();
 
-                    if OPTIONS.iter().any(|opt| s.equiv(opt)) {
+                    if OPTIONS.iter().any(|&opt| s == opt) {
                         cx.span_warn(p.last_span, "expected a clobber, found an option");
                     }
                     clobs.push(s);
@@ -157,13 +157,13 @@ pub fn expand_asm<'cx>(cx: &'cx mut ExtCtxt, sp: Span, tts: &[ast::TokenTree])
             Options => {
                 let (option, _str_style) = p.parse_str();
 
-                if option.equiv(&("volatile")) {
+                if option == "volatile" {
                     // Indicates that the inline assembly has side effects
                     // and must not be optimized out along with its outputs.
                     volatile = true;
-                } else if option.equiv(&("alignstack")) {
+                } else if option == "alignstack" {
                     alignstack = true;
-                } else if option.equiv(&("intel")) {
+                } else if option == "intel" {
                     dialect = ast::AsmIntel;
                 } else {
                     cx.span_warn(p.last_span, "unrecognized option");