diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-02-01 10:44:59 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-02-02 08:17:18 +0000 |
| commit | a7f97a7689197e5d87fd26390cfdb387185a7376 (patch) | |
| tree | 890fc9d8dd0c2a344e5296df044f40a94ece18aa | |
| parent | 9fe8ae792e4efd59ea37116a44391b4abdd2d7be (diff) | |
| download | rust-a7f97a7689197e5d87fd26390cfdb387185a7376.tar.gz rust-a7f97a7689197e5d87fd26390cfdb387185a7376.zip | |
Use `rust_2018` instead of `!is_rust_2015`
| -rw-r--r-- | compiler/rustc_parse/src/parser/ty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/ty.rs b/compiler/rustc_parse/src/parser/ty.rs index ba16be29f4e..18aa20cee42 100644 --- a/compiler/rustc_parse/src/parser/ty.rs +++ b/compiler/rustc_parse/src/parser/ty.rs @@ -673,7 +673,7 @@ impl<'a> Parser<'a> { /// Is a `dyn B0 + ... + Bn` type allowed here? fn is_explicit_dyn_type(&mut self) -> bool { self.check_keyword(kw::Dyn) - && (!self.token.uninterpolated_span().is_rust_2015() + && (self.token.uninterpolated_span().rust_2018() || self.look_ahead(1, |t| { (t.can_begin_bound() || t.kind == TokenKind::BinOp(token::Star)) && !can_continue_type_after_non_fn_ident(t) |
