diff options
| author | bors <bors@rust-lang.org> | 2021-04-07 15:33:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-04-07 15:33:46 +0000 |
| commit | e9cdcccfa8321363999a43ee30a18b3aadbc20de (patch) | |
| tree | b9649646765b2d3c8d0a6d6595fdd5efa1cc9b03 /compiler/rustc_parse/src/parser | |
| parent | b01026de465d5a5ef51e32c1012c43927d2a111c (diff) | |
| parent | d82419b4062d69a197d543a17367f254d1b4fcff (diff) | |
| download | rust-e9cdcccfa8321363999a43ee30a18b3aadbc20de.tar.gz rust-e9cdcccfa8321363999a43ee30a18b3aadbc20de.zip | |
Auto merge of #83964 - Dylan-DPC:rollup-9kinaiv, r=Dylan-DPC
Rollup of 8 pull requests Successful merges: - #83476 (Add strong_count mutation methods to Rc) - #83634 (Do not emit the advanced diagnostics on macros) - #83816 (Trigger `unused_doc_comments` on macros at once) - #83916 (Use AnonConst for asm! constants) - #83935 (forbid `impl Trait` in generic param defaults) - #83936 (Disable using non-ascii identifiers in extern blocks.) - #83945 (Add suggestion to reborrow mutable references when they're moved in a for loop) - #83954 (Do not ICE when closure is involved in Trait Alias Impl Trait) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -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 fe190bfe9d9..02ee268b88c 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -107,7 +107,7 @@ impl<'a> Parser<'a> { } } - pub(super) fn parse_anon_const_expr(&mut self) -> PResult<'a, AnonConst> { + pub fn parse_anon_const_expr(&mut self) -> PResult<'a, AnonConst> { self.parse_expr().map(|value| AnonConst { id: DUMMY_NODE_ID, value }) } |
