Skip to content

Commit b9a8b37

Browse files
committed
more helpful error message for ident comparison failure
1 parent 6216661 commit b9a8b37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libsyntax/ast.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ impl Eq for Ident {
4747
// if it should be non-hygienic (most things are), just compare the
4848
// 'name' fields of the idents. Or, even better, replace the idents
4949
// with Name's.
50-
fail!(fmt!("not allowed to compare these idents: %?, %?", self, other));
50+
fail!(fmt!("not allowed to compare these idents: %?, %?. Probably \
51+
related to issue #6993", self, other));
5152
}
5253
}
5354
fn ne(&self, other: &Ident) -> bool {

0 commit comments

Comments
 (0)