1
Fork 0

Rollup merge of #107551 - fee1-dead-contrib:rm_const_fnmut_helper, r=oli-obk

Replace `ConstFnMutClosure` with const closures

Also fixes a parser bug. cc `@oli-obk` for compiler changes
This commit is contained in:
Michael Goulet 2023-02-03 14:15:22 -08:00 committed by GitHub
commit e99e05d135
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 51 additions and 129 deletions

View file

@ -2109,7 +2109,7 @@ impl<'a> Parser<'a> {
ClosureBinder::NotPresent
};
let constness = self.parse_constness(Case::Sensitive);
let constness = self.parse_closure_constness(Case::Sensitive);
let movability =
if self.eat_keyword(kw::Static) { Movability::Static } else { Movability::Movable };