mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00
fix: Fix format_args
lowering using wrong integer suffix
This commit is contained in:
parent
042e6d8efb
commit
9a5a11fb30
@ -2400,7 +2400,8 @@ impl ExprCollector<'_> {
|
||||
Some(FormatCount::Literal(n)) => {
|
||||
let args = self.alloc_expr_desugared(Expr::Literal(Literal::Uint(
|
||||
*n as u128,
|
||||
Some(BuiltinUint::Usize),
|
||||
// FIXME: Change this to Some(BuiltinUint::U16) once we drop support for toolchains < 1.88
|
||||
None,
|
||||
)));
|
||||
let count_is = match LangItem::FormatCount.ty_rel_path(
|
||||
self.db,
|
||||
|
@ -216,7 +216,7 @@ fn main() {
|
||||
8u32,
|
||||
builtin#lang(Count::Implied),
|
||||
builtin#lang(Count::Is)(
|
||||
2usize,
|
||||
2,
|
||||
),
|
||||
), builtin#lang(Placeholder::new)(
|
||||
1usize,
|
||||
|
Loading…
x
Reference in New Issue
Block a user