Fix tidy and remove unused method
This commit is contained in:
parent
a93f176b74
commit
317258c1ce
7 changed files with 8 additions and 7 deletions
|
@ -648,8 +648,8 @@ impl<'a> Parser<'a> {
|
|||
let cm = self.sess.codemap();
|
||||
match (cm.lookup_line(self.span.lo()), cm.lookup_line(sp.lo())) {
|
||||
(Ok(ref a), Ok(ref b)) if a.line == b.line => {
|
||||
// When the spans are in the same line, it means that the only content between
|
||||
// them is whitespace, point only at the found token.
|
||||
// When the spans are in the same line, it means that the only content
|
||||
// between them is whitespace, point only at the found token.
|
||||
err.span_label(self.span, label_exp);
|
||||
}
|
||||
_ => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue