about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2013-09-10 14:23:35 -0700
committerJohn Clements <clements@racket-lang.org>2013-09-11 22:18:45 -0700
commitb9a8b3700b6f3b49a9b31af1e55caaa147f069e9 (patch)
tree7d44548fc0ee468f149a3974024d7040e504e338
parent62166611e7510b86f395dbf19973e442fd43c403 (diff)
downloadrust-b9a8b3700b6f3b49a9b31af1e55caaa147f069e9.tar.gz
rust-b9a8b3700b6f3b49a9b31af1e55caaa147f069e9.zip
more helpful error message for ident comparison failure
-rw-r--r--src/libsyntax/ast.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index f5de683cb97..7e4cbf8e975 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -47,7 +47,8 @@ impl Eq for Ident {
             // if it should be non-hygienic (most things are), just compare the
             // 'name' fields of the idents. Or, even better, replace the idents
             // with Name's.
-            fail!(fmt!("not allowed to compare these idents: %?, %?", self, other));
+            fail!(fmt!("not allowed to compare these idents: %?, %?. Probably \
+                       related to issue #6993", self, other));
         }
     }
     fn ne(&self, other: &Ident) -> bool {