Skip to content

Commit edcd417

Browse files
committed
fix: Fix format_args lowering using wrong integer suffix
1 parent 042e6d8 commit edcd417

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/hir-def/src/expr_store/lower.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2400,7 +2400,8 @@ impl ExprCollector<'_> {
24002400
Some(FormatCount::Literal(n)) => {
24012401
let args = self.alloc_expr_desugared(Expr::Literal(Literal::Uint(
24022402
*n as u128,
2403-
Some(BuiltinUint::Usize),
2403+
// FIXME: Change this to Some(BuiltinUint::U16) once we drop support for toolchains < 1.88
2404+
None,
24042405
)));
24052406
let count_is = match LangItem::FormatCount.ty_rel_path(
24062407
self.db,

0 commit comments

Comments
 (0)