diff options
| author | Michael Goulet <michael@errs.io> | 2023-02-03 14:15:22 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-03 14:15:22 -0800 |
| commit | e99e05d13592d2e9868fa69f98dc01f9766f05ed (patch) | |
| tree | faa84e1df772ee6c48b73321bf6ba08931a456ef /compiler/rustc_parse/src/parser/expr.rs | |
| parent | beb5cc9cf79b782094bb75fe41df3b7bdbb05bd7 (diff) | |
| parent | b886a4de157873c6a3e536a517fd6b097a4ab11b (diff) | |
| download | rust-e99e05d13592d2e9868fa69f98dc01f9766f05ed.tar.gz rust-e99e05d13592d2e9868fa69f98dc01f9766f05ed.zip | |
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
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 8a6436b041b..28347b137f3 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -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 }; |
