Skip to content

Commit 7f8bf60

Browse files
committed
Use rust_2018 instead of !is_rust_2015
1 parent b96c899 commit 7f8bf60

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-1
lines changed

compiler/rustc_parse/src/parser/ty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ impl<'a> Parser<'a> {
702702
/// Is a `dyn B0 + ... + Bn` type allowed here?
703703
fn is_explicit_dyn_type(&mut self) -> bool {
704704
self.check_keyword(kw::Dyn)
705-
&& (!self.token.uninterpolated_span().is_rust_2015()
705+
&& (self.token.uninterpolated_span().rust_2018()
706706
|| self.look_ahead(1, |t| {
707707
(t.can_begin_bound() || t.kind == TokenKind::BinOp(token::Star))
708708
&& !can_continue_type_after_non_fn_ident(t)

0 commit comments

Comments
 (0)