Skip to content

Commit a9759cf

Browse files
committed
Replace meaningless placeholder with one of the legit expr variants
1 parent 5796d98 commit a9759cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/expr.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2868,7 +2868,8 @@ pub(crate) mod parsing {
28682868
}
28692869
for part in float_repr.split('.') {
28702870
let index = crate::parse_str(part).map_err(|err| Error::new(float.span(), err))?;
2871-
let base = mem::replace(e, Expr::__TestExhaustive(crate::private(())));
2871+
let meaningless_placeholder = Expr::Verbatim(TokenStream::new());
2872+
let base = mem::replace(e, meaningless_placeholder);
28722873
*e = Expr::Field(ExprField {
28732874
attrs: Vec::new(),
28742875
base: Box::new(base),

0 commit comments

Comments
 (0)