mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 08:37:14 +00:00
Auto merge of #24685 - nrc:span-pred, r=huonw
This commit is contained in:
commit
e9e9279d87
|
@ -3888,7 +3888,7 @@ pub fn parse_where_clause(&mut self) -> PResult<ast::WhereClause> {
|
|||
let bounds =
|
||||
try!(self.parse_lifetimes(token::BinOp(token::Plus)));
|
||||
|
||||
let hi = self.span.hi;
|
||||
let hi = self.last_span.hi;
|
||||
let span = mk_sp(lo, hi);
|
||||
|
||||
where_clause.predicates.push(ast::WherePredicate::RegionPredicate(
|
||||
|
@ -3917,7 +3917,7 @@ pub fn parse_where_clause(&mut self) -> PResult<ast::WhereClause> {
|
|||
|
||||
if try!(self.eat(&token::Colon) ){
|
||||
let bounds = try!(self.parse_ty_param_bounds(BoundParsingMode::Bare));
|
||||
let hi = self.span.hi;
|
||||
let hi = self.last_span.hi;
|
||||
let span = mk_sp(lo, hi);
|
||||
|
||||
if bounds.is_empty() {
|
||||
|
@ -3937,7 +3937,7 @@ pub fn parse_where_clause(&mut self) -> PResult<ast::WhereClause> {
|
|||
parsed_something = true;
|
||||
} else if try!(self.eat(&token::Eq) ){
|
||||
// let ty = try!(self.parse_ty_nopanic());
|
||||
let hi = self.span.hi;
|
||||
let hi = self.last_span.hi;
|
||||
let span = mk_sp(lo, hi);
|
||||
// where_clause.predicates.push(
|
||||
// ast::WherePredicate::EqPredicate(ast::WhereEqPredicate {
|
||||
|
|
Loading…
Reference in a new issue