diff options
| author | bors <bors@rust-lang.org> | 2020-02-04 17:17:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-02-04 17:17:55 +0000 |
| commit | 5b0caef54a062b5e283cf15d1fad7027f631f29d (patch) | |
| tree | 3b81b3e42e787d78a52a066b09ee3399b716e7b9 /src/librustc_parse | |
| parent | 126ad2b813010447807b0593a80bc6c04962e7ea (diff) | |
| parent | 0e584114c6153a3d7ff94349729c46a4735cb838 (diff) | |
Auto merge of #68377 - estebank:fn-obligations-spans, r=oli-obk
Tweak obligation error output - Point at arguments or output when fn obligations come from them, or ident when they don't - Point at `Sized` bound (fix #47990) - When object unsafe trait uses itself in associated item suggest using `Self` (fix #66424, fix #33375, partially address #38376, cc #61525) - Point at reason in object unsafe trait with `Self` in supertraits or `where`-clause (cc #40533, cc #68377) - On implicit type parameter `Sized` obligations, suggest `?Sized` (fix #57744, fix #46683)
Diffstat (limited to 'src/librustc_parse')
| -rw-r--r-- | src/librustc_parse/parser/generics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/generics.rs b/src/librustc_parse/parser/generics.rs index 075583711f5..0984263bb28 100644 --- a/src/librustc_parse/parser/generics.rs +++ b/src/librustc_parse/parser/generics.rs @@ -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); |
