Use more appropriate spans on object unsafe traits and provide structured suggestions when possible
This commit is contained in:
parent
413bfa4b98
commit
a52ec87a17
22 changed files with 178 additions and 62 deletions
|
@ -172,7 +172,7 @@ impl<'a> Parser<'a> {
|
|||
/// ```
|
||||
pub(super) fn parse_where_clause(&mut self) -> PResult<'a, WhereClause> {
|
||||
let mut where_clause =
|
||||
WhereClause { predicates: Vec::new(), span: self.prev_span.to(self.prev_span) };
|
||||
WhereClause { predicates: Vec::new(), span: self.prev_span.shrink_to_hi() };
|
||||
|
||||
if !self.eat_keyword(kw::Where) {
|
||||
return Ok(where_clause);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue