Skip to content

Commit a7f97a7

Browse files
committed
Use rust_2018 instead of !is_rust_2015
1 parent 9fe8ae7 commit a7f97a7

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
@@ -673,7 +673,7 @@ impl<'a> Parser<'a> {
673673
/// Is a `dyn B0 + ... + Bn` type allowed here?
674674
fn is_explicit_dyn_type(&mut self) -> bool {
675675
self.check_keyword(kw::Dyn)
676-
&& (!self.token.uninterpolated_span().is_rust_2015()
676+
&& (self.token.uninterpolated_span().rust_2018()
677677
|| self.look_ahead(1, |t| {
678678
(t.can_begin_bound() || t.kind == TokenKind::BinOp(token::Star))
679679
&& !can_continue_type_after_non_fn_ident(t)

0 commit comments

Comments
 (0)