diff options
| author | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2021-06-04 19:48:24 +0200 |
|---|---|---|
| committer | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2021-06-04 22:17:04 +0200 |
| commit | 4e219e6335a04cae15a784063f8cbe021076c933 (patch) | |
| tree | fa0f13a7cc824087cc9c67909b78d27a3ad8813b /compiler/rustc_parse/src | |
| parent | c4c2ab57a43737867982fafc8cfacd9b069fee96 (diff) | |
| download | rust-4e219e6335a04cae15a784063f8cbe021076c933.tar.gz rust-4e219e6335a04cae15a784063f8cbe021076c933.zip | |
Remove incorrect assertion in type parsing code
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/ty.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/ty.rs b/compiler/rustc_parse/src/parser/ty.rs index 89cf2d7876e..de5a5632600 100644 --- a/compiler/rustc_parse/src/parser/ty.rs +++ b/compiler/rustc_parse/src/parser/ty.rs @@ -334,7 +334,6 @@ impl<'a> Parser<'a> { mut bounds: GenericBounds, plus: bool, ) -> PResult<'a, TyKind> { - assert_ne!(self.token, token::Question); if plus { self.eat_plus(); // `+`, or `+=` gets split and `+` is discarded bounds.append(&mut self.parse_generic_bounds(Some(self.prev_token.span))?); |
