We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1fb465f + 9a5a11f commit 5bbf2ceCopy full SHA for 5bbf2ce
crates/hir-def/src/expr_store/lower.rs
@@ -2400,7 +2400,8 @@ impl ExprCollector<'_> {
2400
Some(FormatCount::Literal(n)) => {
2401
let args = self.alloc_expr_desugared(Expr::Literal(Literal::Uint(
2402
*n as u128,
2403
- Some(BuiltinUint::Usize),
+ // FIXME: Change this to Some(BuiltinUint::U16) once we drop support for toolchains < 1.88
2404
+ None,
2405
)));
2406
let count_is = match LangItem::FormatCount.ty_rel_path(
2407
self.db,
crates/hir-def/src/expr_store/tests.rs
@@ -216,7 +216,7 @@ fn main() {
216
8u32,
217
builtin#lang(Count::Implied),
218
builtin#lang(Count::Is)(
219
- 2usize,
+ 2,
220
),
221
), builtin#lang(Placeholder::new)(
222
1usize,
0 commit comments