Use rust_2018
instead of !is_rust_2015
This commit is contained in:
parent
9fe8ae792e
commit
a7f97a7689
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue