diff options
| author | bors <bors@rust-lang.org> | 2019-06-19 12:41:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-06-19 12:41:38 +0000 |
| commit | e79b2a18a21e6b178d73473bb8fdbf3d18c66051 (patch) | |
| tree | 093258b3615472cfd3dbad9238abc18c1cdc0361 /src/libsyntax/parse | |
| parent | 9cb052acfb25c12d5e8960f9ea53b69a2f19b0e8 (diff) | |
| parent | fdeb58151370c1a65fa1ff23e7d4b304fca01d2a (diff) | |
| download | rust-e79b2a18a21e6b178d73473bb8fdbf3d18c66051.tar.gz rust-e79b2a18a21e6b178d73473bb8fdbf3d18c66051.zip | |
Auto merge of #61172 - matthewjasper:cleanup-implied-bounds-lint, r=varkor
Improve the explicit_outlives_requirements lint * Don't use Strings to compare parameters * Extend the lint to lifetime bounds * Extend the lint to enums and unions * Use the correct span for where clauses in tuple structs * Try to early-out where possible * Remove unnecessary bounds in rustc crates
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 78eeb512206..fa697e06d26 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -5075,7 +5075,6 @@ impl<'a> Parser<'a> { Ok(ast::Generics { params, where_clause: WhereClause { - id: ast::DUMMY_NODE_ID, predicates: Vec::new(), span: DUMMY_SP, }, @@ -5334,7 +5333,6 @@ impl<'a> Parser<'a> { /// ``` fn parse_where_clause(&mut self) -> PResult<'a, WhereClause> { let mut where_clause = WhereClause { - id: ast::DUMMY_NODE_ID, predicates: Vec::new(), span: self.prev_span.to(self.prev_span), }; |
