Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 10 pull requests #131269

Merged
merged 28 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
ae5d448
Add x86_64-unknown-trusty as tier 3
randomPoison Sep 16, 2024
fd5aa07
Stabilize the `map`/`value` methods on `ControlFlow`
scottmcm Sep 18, 2024
c89b873
Remove the `control_flow_enum` feature from clippy
scottmcm Sep 18, 2024
ddfd0c7
Remove `feature(control_flow_enum)` in tests
scottmcm Sep 18, 2024
9be9141
increase stack size for aix
Oct 1, 2024
162ee75
format
Oct 1, 2024
033fdda
Fix target_env in avr-unknown-gnu-atmega328
madsmtm Oct 2, 2024
a022868
library: Stabilize `const_str_from_utf8_unchecked_mut`
workingjubilee Sep 27, 2024
bcc78bd
library: Stabilize `const_str_as_mut`
workingjubilee Sep 27, 2024
966405d
library: Stabilize `const_ptr_as_ref`
workingjubilee Sep 27, 2024
75db6b2
library: Stabilize `const_unsafecell_get_mut`
workingjubilee Sep 27, 2024
ac53f1f
library: Stabilize `const_slice_first_last`
workingjubilee Sep 27, 2024
ea3d336
Remove mw from triagebot.toml
michaelwoerister Oct 4, 2024
c6774f1
Fix typo in csky-unknown-linux-gnuabiv2.md
taiki-e Oct 4, 2024
cc36e0d
Fix list margins
GuillaumeGomez Oct 4, 2024
1c63ec9
Add GUI regression test for #130622 and for #131223
GuillaumeGomez Oct 3, 2024
be2540a
Fix some pub(crate) that were undetected bc of instrument
compiler-errors Oct 4, 2024
f51d8e3
Fix target_abi in sparc-unknown-none-elf
madsmtm Oct 2, 2024
b88f56f
Rollup merge of #130453 - randomPoison:trusty-x86, r=pnkfelix
workingjubilee Oct 4, 2024
5a8fcab
Rollup merge of #130518 - scottmcm:stabilize-controlflow-extra, r=dto…
workingjubilee Oct 4, 2024
554daa0
Rollup merge of #131116 - mustartt:aix-stack-size, r=petrochenkov
workingjubilee Oct 4, 2024
ff57e0b
Rollup merge of #131171 - madsmtm:target-info-avr-env, r=petrochenkov
workingjubilee Oct 4, 2024
1462815
Rollup merge of #131174 - madsmtm:target-info-sparc-abi, r=pnkfelix
workingjubilee Oct 4, 2024
882d660
Rollup merge of #131177 - workingjubilee:stabilize-const-mut-referees…
workingjubilee Oct 4, 2024
8ec5494
Rollup merge of #131238 - michaelwoerister:triagebot, r=michaelwoerister
workingjubilee Oct 4, 2024
a17df37
Rollup merge of #131240 - taiki-e:typo, r=jieyouxu
workingjubilee Oct 4, 2024
869b8eb
Rollup merge of #131257 - GuillaumeGomez:fix-list-margins, r=notriddle
workingjubilee Oct 4, 2024
4778893
Rollup merge of #131264 - compiler-errors:fix-pub-crate, r=jieyouxu
workingjubilee Oct 4, 2024
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
Add GUI regression test for #130622 and for #131223
  • Loading branch information
GuillaumeGomez committed Oct 4, 2024
commit 1c63ec9fa002980fb792d8630661e931ebf9ac06
11 changes: 11 additions & 0 deletions tests/rustdoc-gui/list-margins.goml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This test ensures that the documentation list markers are correctly placed.
// It also serves as a regression test for <https://github.com/rust-lang/rust/issues/130622>.

go-to: "file://" + |DOC_PATH| + "/test_docs/long_list/index.html"
show-text: true

// 0.3em
assert-css: (".docblock li p:not(last-child)", {"margin-bottom": "4.8px"})
assert-css: (".docblock li p + p:last-child", {"margin-bottom": "0px"})
// 0.4em
assert-css: (".docblock li", {"margin-bottom": "6.4px"})
24 changes: 24 additions & 0 deletions tests/rustdoc-gui/src/test_docs/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,3 +628,27 @@ pub mod short_docs {
/// subt_vec_num(x: &[f64], y: f64)
pub fn subt_vec_num() {}
}

pub mod long_list {
//! bla
//!
//! * Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque et libero ut leo
//! interdum laoreet vitae a mi. Aliquam erat volutpat. Suspendisse volutpat non quam non
//! commodo.
//!
//! Praesent enim neque, imperdiet sed nisl at, lobortis egestas augue. Sed vitae tristique
//! augue. Phasellus vel pretium lectus.
//! * Praesent enim neque, imperdiet sed nisl at, lobortis egestas augue. Sed vitae tristique
//! augue. Phasellus vel pretium lectus.
//! * Praesent enim neque, imperdiet sed nisl at, lobortis egestas augue. Sed vitae tristique
//! augue. Phasellus vel pretium lectus.
//!
//! Another list:
//!
//! * [`TryFromBytes`](#a) indicates that a type may safely be converted from certain byte
//! sequence (conditional on runtime checks)
//! * [`FromZeros`](#a) indicates that a sequence of zero bytes represents a valid instance of
//! a type
//! * [`FromBytes`](#a) indicates that a type may safely be converted from an arbitrary byte
//! sequence
}
Loading