Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b335056
Turn `Cow::is_borrowed,is_owned` into associated functions.
theemathas Mar 8, 2025
f0c98c2
Allocate vec capacity upfront in coroutine layout computation
yotamofek Oct 18, 2025
a67c615
Reduce rightward drift in `locals_live_across_suspend_points`
yotamofek Oct 18, 2025
11b82e1
rustdoc: Rename unstable option `--nocapture` to `--no-capture`
fmease Oct 25, 2025
857a187
rustdoc search: Include attribute and derive macros when filtering on…
GuillaumeGomez Oct 27, 2025
52c99e6
Add regression test for including derive macros in macro filtering
GuillaumeGomez Oct 27, 2025
6f3d0f7
Introduce qpath lang item utils
camsteffen Sep 1, 2025
7e51a76
Prefactor LangItem::QPath lowering functions
camsteffen Sep 1, 2025
e289f27
Remove QPath::LangItem from for loops
camsteffen Sep 1, 2025
eac2c25
Remove QPath::LangItem from format_args!
camsteffen Sep 1, 2025
9c98533
Remove QPath::LangItem from contracts
camsteffen Sep 1, 2025
7cbff63
Remove QPath::LangItem from ranges
camsteffen Aug 17, 2025
bd13c30
Remove QPath::LangItem from async
camsteffen Aug 17, 2025
a96e21b
Remove QPath::LangItem from try
camsteffen Sep 1, 2025
ead5e12
Remove QPath::LangItem
camsteffen Sep 1, 2025
bef018e
Mark yield spans with desugaring
camsteffen Sep 2, 2025
95732f4
Fix a bad hint
camsteffen Oct 27, 2025
a242c85
replace SanitizerSet in CodegenFnAttrs by new type
inkreasing Jul 26, 2025
bd61985
Disable crt_static_allows_dylibs in redox targets
jackpot51 Oct 3, 2025
fa0f163
Add riscv64gc-unknown-redox
bjorn3 Oct 26, 2025
4d7c784
Handle default features and -Ctarget-features in the dummy backend
bjorn3 Oct 29, 2025
5dbccd2
add realtime sanitizer
inkreasing May 23, 2025
06a8823
add warning for async
inkreasing Aug 26, 2025
2e1fdb4
add docs
inkreasing Jul 26, 2025
e0b8dd3
Simplify rustc_public context handling
celinval Oct 20, 2025
0a9570f
Rollup merge of #138217 - theemathas:cow_is_owned_borrowed_associated…
Zalathar Oct 30, 2025
dff167f
Rollup merge of #147858 - yotamofek:pr/mir/coroutine-layout-opt, r=cj…
Zalathar Oct 30, 2025
f825c95
Rollup merge of #147923 - celinval:rpub-remove-trait, r=oli-obk
Zalathar Oct 30, 2025
6f201c5
Rollup merge of #147935 - luca3s:add-rtsan, r=petrochenkov
Zalathar Oct 30, 2025
961f76f
Rollup merge of #148115 - fmease:rustdoc-no-capture, r=notriddle
Zalathar Oct 30, 2025
3056e47
Rollup merge of #148137 - bjorn3:redox_fixes, r=mati865
Zalathar Oct 30, 2025
8965a90
Rollup merge of #148176 - GuillaumeGomez:filter-macros, r=notriddle
Zalathar Oct 30, 2025
51df375
Rollup merge of #148193 - camsteffen:remove-qpath-langitem, r=cjgillot
Zalathar Oct 30, 2025
6e480c9
Rollup merge of #148253 - bjorn3:dummy_backend_target_features, r=Jon…
Zalathar Oct 30, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove QPath::LangItem from format_args!
  • Loading branch information
camsteffen committed Oct 28, 2025
commit eac2c2523e29b6a9c94912e8b393a292af61cfcc
3 changes: 2 additions & 1 deletion compiler/rustc_ast_lowering/src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,8 @@ fn make_format_spec<'hir>(
let flags = ctx.expr_field(Ident::new(sym::flags, sp), ctx.arena.alloc(flags), sp);
let precision = ctx.expr_field(Ident::new(sym::precision, sp), ctx.arena.alloc(precision), sp);
let width = ctx.expr_field(Ident::new(sym::width, sp), ctx.arena.alloc(width), sp);
let placeholder = ctx.arena.alloc(hir::QPath::LangItem(hir::LangItem::FormatPlaceholder, sp));
let placeholder =
ctx.arena.alloc(ctx.make_lang_item_qpath(hir::LangItem::FormatPlaceholder, sp, None));
let fields = ctx.arena.alloc_from_iter([position, flags, precision, width]);
ctx.expr(sp, hir::ExprKind::Struct(placeholder, fields, hir::StructTailExpr::None))
}
Expand Down