rename sp
to span
This commit is contained in:
parent
e1d63d1d7c
commit
0fa70a8e2a
1 changed files with 2 additions and 2 deletions
|
@ -1687,10 +1687,10 @@ impl<'a> Parser<'a> {
|
||||||
// future.await()
|
// future.await()
|
||||||
let lo = self.token.span;
|
let lo = self.token.span;
|
||||||
self.bump(); // (
|
self.bump(); // (
|
||||||
let sp = lo.to(self.token.span);
|
let span = lo.to(self.token.span);
|
||||||
self.bump(); // )
|
self.bump(); // )
|
||||||
|
|
||||||
self.sess.emit_err(IncorrectUseOfAwait { span: sp });
|
self.sess.emit_err(IncorrectUseOfAwait { span });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue