Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2e57845
actually use a doc comment
lcnr Jun 16, 2025
8710c1f
update comment
lcnr Jun 17, 2025
75da5c4
reevaluate: reset `encountered_overflow`
lcnr Jun 17, 2025
ecd65f8
`evaluate_goal`: accept different inputs
lcnr Jun 18, 2025
a0badba
Pass -Cpanic=abort for the panic_abort crate
bjorn3 Apr 24, 2025
5babf24
integer docs: remove extraneous text
tshepang Jun 20, 2025
e51c37c
Add AttributeExt::doc_resolution_scope
dtolnay Jun 20, 2025
86f40ac
Remove style() from AttributeExt trait
dtolnay Jun 20, 2025
715e02f
Add regression test for issue 142649
dtolnay Jun 19, 2025
6729b66
All HIR attributes are outer
dtolnay Jun 20, 2025
33b3ea2
Enable fmt-write-bloat for Windows
dpaoliello Jun 21, 2025
d86d3f3
Port `#[rustc_pub_transparent]` to the new attribute system
GrigorenkoPV Jun 14, 2025
0d50f91
Enable textrel-on-minimal-lib for Windows
dpaoliello Jun 21, 2025
eb86d09
remove asm_goto feature annotation, for it is now stabilized
tshepang Jun 21, 2025
6854f7d
Use `sym::asterisk` to avoid a `Symbol::intern` call.
nnethercote Jun 17, 2025
4736142
Remove some dead code.
nnethercote Jun 17, 2025
9a59774
Remove some code.
nnethercote Jun 17, 2025
88388f4
Use `FromClean` more.
nnethercote Jun 17, 2025
2878e1c
Rename some methods.
nnethercote Jun 19, 2025
6ff229b
Notify `jieyouxu` on tidy changes
jieyouxu Jun 22, 2025
aef8a76
Rollup merge of #140254 - bjorn3:rustc_panic_abort_abort, r=petrochenkov
jhpratt Jun 22, 2025
431a822
Rollup merge of #142600 - GrigorenkoPV:attributes/rustc_pub_transpare…
jhpratt Jun 22, 2025
9c09dd5
Rollup merge of #142617 - lcnr:search_graph-3, r=compiler-errors
jhpratt Jun 22, 2025
b5b106a
Rollup merge of #142747 - nnethercote:json-conversion-cleanups, r=aDo…
jhpratt Jun 22, 2025
bf63acf
Rollup merge of #142776 - dtolnay:hirattrstyle2, r=jdonszelmann
jhpratt Jun 22, 2025
9f99a27
Rollup merge of #142800 - tshepang:extraneous, r=Mark-Simulacrum
jhpratt Jun 22, 2025
cbfb654
Rollup merge of #142841 - dpaoliello:fmt-write-bloat, r=jieyouxu
jhpratt Jun 22, 2025
b64292a
Rollup merge of #142845 - dpaoliello:textrel-on-minimal-lib, r=jieyouxu
jhpratt Jun 22, 2025
f5b1c8e
Rollup merge of #142850 - tshepang:patch-1, r=jieyouxu
jhpratt Jun 22, 2025
34dd536
Rollup merge of #142860 - jieyouxu:notify-tidy, r=jieyouxu
jhpratt Jun 22, 2025
File filter

Filter by extension

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 some code.
It's just replicating exactly what is done by `<Vec<GenericParamDef> as
FromClean>::into_json`
  • Loading branch information
nnethercote committed Jun 21, 2025
commit 9a597743efefc0f912990931cde402047e7861dd
33 changes: 1 addition & 32 deletions src/librustdoc/json/conversions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,38 +423,7 @@ impl FromClean<clean::WherePredicate> for WherePredicate {
BoundPredicate { ty, bounds, bound_params } => WherePredicate::BoundPredicate {
type_: ty.into_json(renderer),
bounds: bounds.into_json(renderer),
generic_params: bound_params
.iter()
.map(|x| {
let name = x.name.to_string();
let kind = match &x.kind {
clean::GenericParamDefKind::Lifetime { outlives } => {
GenericParamDefKind::Lifetime {
outlives: outlives.iter().map(|lt| lt.0.to_string()).collect(),
}
}
clean::GenericParamDefKind::Type { bounds, default, synthetic } => {
GenericParamDefKind::Type {
bounds: bounds
.into_iter()
.map(|bound| bound.into_json(renderer))
.collect(),
default: default
.as_ref()
.map(|ty| ty.as_ref().into_json(renderer)),
is_synthetic: *synthetic,
}
}
clean::GenericParamDefKind::Const { ty, default, synthetic: _ } => {
GenericParamDefKind::Const {
type_: ty.as_ref().into_json(renderer),
default: default.as_ref().map(|d| d.as_ref().clone()),
}
}
};
GenericParamDef { name, kind }
})
.collect(),
generic_params: bound_params.into_json(renderer),
},
RegionPredicate { lifetime, bounds } => WherePredicate::LifetimePredicate {
lifetime: convert_lifetime(lifetime),
Expand Down