Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1aad89d
Add match arm for Fuchsia status code upon an abort in a test
c6c7 Jul 10, 2024
deb8ebb
Update name of Windows abort constant to match platform documentation
c6c7 Jul 10, 2024
03bfa36
Rename `MatchPair` to `MatchPairTree`
Zalathar Jul 17, 2024
411fcb6
Rename `test` to `pick_test_for_match_pair`
Zalathar Jul 17, 2024
3716a3f
Mention that type parameters are used recursively
compiler-errors Jul 17, 2024
a0a251a
Account for self ty alias
compiler-errors Jul 17, 2024
c02d0de
Account for structs that have unused params in nested types in fields
compiler-errors Jul 17, 2024
0c5864f
check default config profiles on CI
onur-ozkan Jul 18, 2024
6310da9
remove `debug-logging` default from tools profile
onur-ozkan Jul 18, 2024
5901c8c
create `check-default-config-profiles.sh` for `mingw-check`
onur-ozkan Jul 18, 2024
67ec132
Fix ICE in suggestion caused by `⩵` being recovered as `==`
estebank Jul 16, 2024
8dbb63a
Remove tag field from relations
compiler-errors Jul 18, 2024
abf92c0
Use more accurate span for `addr_of!` suggestion
estebank Jul 11, 2024
fed0592
Wrap too long item name and improve the item list display a bit
GuillaumeGomez Jul 17, 2024
c820a23
Add test for size of items in the items list
GuillaumeGomez Jul 18, 2024
7c1bf86
Rollup merge of #127418 - GuillaumeGomez:wrap-too-long-type-name, r=n…
matthiaskrgr Jul 18, 2024
c1bbe34
Rollup merge of #127594 - c6c7:fuchsia-status-code-match-arm, r=tmandry
matthiaskrgr Jul 18, 2024
50a90e3
Rollup merge of #127835 - estebank:issue-127823, r=compiler-errors
matthiaskrgr Jul 18, 2024
4d5ba0d
Rollup merge of #127858 - Zalathar:pair-tree, r=Nadrieril
matthiaskrgr Jul 18, 2024
65de5d0
Rollup merge of #127871 - compiler-errors:recursive, r=estebank
matthiaskrgr Jul 18, 2024
f4a9f7f
Rollup merge of #127913 - onur-ozkan:broken-defaults, r=Kobzol
matthiaskrgr Jul 18, 2024
1168837
Rollup merge of #127925 - compiler-errors:tag, r=lcnr
matthiaskrgr Jul 18, 2024
d1250bc
Rollup merge of #127929 - estebank:addr_of, r=compiler-errors
matthiaskrgr Jul 18, 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 test for size of items in the items list
  • Loading branch information
GuillaumeGomez committed Jul 18, 2024
commit c820a2392ce90722c2d8d0e1050b6194ac532b78
1 change: 1 addition & 0 deletions tests/rustdoc-gui/src/lib2/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ pub mod too_long {
pub type ReallyLongTypeNameLongLongLong =
Option<unsafe extern "C" fn(a: *const u8, b: *const u8) -> *const u8>;

/// Short doc.
pub const ReallyLongTypeNameLongLongLongConstBecauseWhyNotAConstRightGigaGigaSupraLong: u32 = 0;

/// This also has a really long doccomment. Lorem ipsum dolor sit amet,
Expand Down
6 changes: 5 additions & 1 deletion tests/rustdoc-gui/type-declation-overflow.goml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ assert-property: ("pre.item-decl", {"scrollWidth": "1324"})

// In the table-ish view on the module index, the name should not be wrapped more than necessary.
go-to: "file://" + |DOC_PATH| + "/lib2/too_long/index.html"
assert-property: (".item-table .struct", {"offsetWidth": "684"})

// We'll ensure that items with short documentation have the same width.
store-property: ("//*[@class='item-table']//*[@class='struct']/..", {"offsetWidth": offset_width})
assert: |offset_width| == "277"
assert-property: ("//*[@class='item-table']//*[@class='constant']/..", {"offsetWidth": |offset_width|})

// We now make the same check on type declaration...
go-to: "file://" + |DOC_PATH| + "/lib2/too_long/type.ReallyLongTypeNameLongLongLong.html"
Expand Down