diff options
| author | Lieselotte <52315535+she3py@users.noreply.github.com> | 2024-07-04 14:10:17 +0200 |
|---|---|---|
| committer | Lieselotte <52315535+she3py@users.noreply.github.com> | 2024-09-18 20:37:56 +0200 |
| commit | c2047219b59ac7830c4315653858f28cf0d57b9d (patch) | |
| tree | ebf28f0147468ed69fab37e67d93d3fad4952d0c /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 7fc70f870a1d11c3b104274d3a18112996cdec9a (diff) | |
| download | rust-c2047219b59ac7830c4315653858f28cf0d57b9d.tar.gz rust-c2047219b59ac7830c4315653858f28cf0d57b9d.zip | |
Recover more expressions in patterns
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 2d5a1914fa6..f19cba4c1bf 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -41,7 +41,7 @@ use super::{ use crate::{errors, maybe_recover_from_interpolated_ty_qpath}; #[derive(Debug)] -enum DestructuredFloat { +pub(super) enum DestructuredFloat { /// 1e2 Single(Symbol, Span), /// 1. @@ -1041,7 +1041,7 @@ impl<'a> Parser<'a> { // support pushing "future tokens" (would be also helpful to `break_and_eat`), or // we should break everything including floats into more basic proc-macro style // tokens in the lexer (probably preferable). - fn break_up_float(&self, float: Symbol, span: Span) -> DestructuredFloat { + pub(super) fn break_up_float(&self, float: Symbol, span: Span) -> DestructuredFloat { #[derive(Debug)] enum FloatComponent { IdentLike(String), |
