]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_parse/src/parser/ty.rs
Rename `rust_2015` => `is_rust_2015`
[rust.git] / compiler / rustc_parse / src / parser / ty.rs
index 306cbcff149f7d5327c66e9cc397142811ad6281..ba16be29f4ee289efd5799332d5629882f766293 100644 (file)
@@ -673,7 +673,7 @@ fn parse_impl_ty(&mut self, impl_dyn_multi: &mut bool) -> PResult<'a, TyKind> {
     /// 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().rust_2015()
+            && (!self.token.uninterpolated_span().is_rust_2015()
                 || self.look_ahead(1, |t| {
                     (t.can_begin_bound() || t.kind == TokenKind::BinOp(token::Star))
                         && !can_continue_type_after_non_fn_ident(t)