Fix unittests

This commit is contained in:
Esteban Küber
2017-03-25 19:06:19 -07:00
parent 78ae8feebb
commit b477682dca
6 changed files with 8 additions and 4 deletions

View File

@@ -571,7 +571,7 @@ impl<'a> Parser<'a> {
label_sp
};
err.span_label(sp, &label_exp);
if label_sp != self.span {
if !sp.source_equal(&self.span) {
err.span_label(self.span, &"unexpected token");
}
Err(err)