Skip to content

Rollup of 13 pull requests #59046

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

Closed
wants to merge 80 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
13ffbee
Add MaybeUninit::read_uninitialized
RalfJung Feb 22, 2019
dc570fb
also add examples to MaybeUninit::into_initialized
RalfJung Feb 22, 2019
10f511d
misc tweaks
RalfJung Feb 22, 2019
48aa59e
examples for as[_mut]_ptr
RalfJung Feb 22, 2019
084ee7a
examples for MaybeUninit::zeroed
RalfJung Feb 22, 2019
d10366f
avoid unnecessary use of MaybeUninit::get_ref, and expand comment on …
RalfJung Feb 22, 2019
aa4a9b0
make MaybeUninit Copy
RalfJung Feb 22, 2019
53c0275
Apply suggestions from code review
Centril Feb 23, 2019
ac2284b
expand type name
RalfJung Feb 23, 2019
8ce9b86
fix link
RalfJung Feb 23, 2019
a5e2d0c
remark that the rules are unfinished
RalfJung Feb 24, 2019
be8d728
show how to set with ptr::write
RalfJung Feb 24, 2019
6d32e5a
prefer into_initialized over read_initialited
RalfJung Feb 24, 2019
b11502f
Mention `unwind(aborts)` in diagnostics for `#[unwind]`
petrochenkov Feb 26, 2019
dc00a8a
Validate `#[unwind]` syntax regardless of platform-specific panic str…
petrochenkov Feb 27, 2019
fc4b916
Add a test for #10876
varkor Feb 25, 2019
e206d4e
Add tests for #26448
varkor Feb 25, 2019
93ff7dc
Add a test for #26619
varkor Feb 25, 2019
987d71f
Add a test for #44127
varkor Feb 25, 2019
bdd3826
Add a test for #44255
varkor Feb 25, 2019
36b1326
Add a test for #46101
varkor Feb 25, 2019
1068424
Add a test for #55731
varkor Feb 25, 2019
525dc46
Add a test for #57781
varkor Feb 25, 2019
5fb2d8b
Add a test for #22892
varkor Feb 25, 2019
0976e5e
Add a test for #28587
varkor Feb 25, 2019
42a89c6
Add a test for #26577
varkor Feb 25, 2019
0df193f
Add a test for #27054
varkor Feb 25, 2019
70b853d
Update test for issue #55731
varkor Feb 26, 2019
797d8ea
Make `Unique::as_ptr`, `NonNull::dangling` and `NonNull::cast` const
Feb 28, 2019
009c91a
add option to calculate documentation coverage
QuietMisdreavus Jan 30, 2019
9e98a25
tabs -> spaces
QuietMisdreavus Jan 30, 2019
fc94593
count fewer items in calculate-doc-coverage
QuietMisdreavus Feb 20, 2019
95500c0
refactor: combine item count numbers into a new struct
QuietMisdreavus Feb 20, 2019
5eb1ab5
print doc coverage as a table of individual item types
QuietMisdreavus Feb 21, 2019
a3a2559
add a coverage mode for private items
QuietMisdreavus Feb 21, 2019
3ce19b4
tweak wording of extern types
QuietMisdreavus Feb 21, 2019
63bdd29
add tests for doc coverage
QuietMisdreavus Feb 21, 2019
80b4919
update docs for doc coverage
QuietMisdreavus Feb 21, 2019
1b63543
track items per-file instead of per-type
QuietMisdreavus Feb 28, 2019
74cf1ad
tweak docs for rustdoc's `--show-coverage`
QuietMisdreavus Feb 28, 2019
515dbe7
update rustdoc coverage tests with new table layout
QuietMisdreavus Feb 28, 2019
5360ded
fix an issue with path probing on Windows
euclio Mar 2, 2019
12d8a7d
look for python2 symlinks before bootstrap python
euclio Feb 22, 2019
c38c959
Ignore WASM on asm tests
varkor Mar 2, 2019
60a649e
Add .nll.stderr output
Mar 3, 2019
5c0615b
Use early unwraps instead of bubbling up errors just to unwrap in the…
oli-obk Feb 16, 2019
538a096
Add as_slice() to slice::IterMut and vec::Drain
cuviper Mar 4, 2019
9902f8c
fixes rust-lang#52482
Feb 23, 2019
e28cf74
remove unused Display impl
QuietMisdreavus Mar 5, 2019
3df0b89
only print coverage pass lists if running on nightly
QuietMisdreavus Mar 5, 2019
5384a11
Apply suggestions from code review
Centril Mar 6, 2019
51e0d1c
Clean up the example on slice::IterMut::as_slice()
cuviper Mar 6, 2019
e478cad
Add a tracking issue for new as_slice methods
cuviper Mar 6, 2019
d5bb71c
Split up privacy checking so privacy_access_levels only does computat…
Zoxc Feb 23, 2019
d2923e5
Run the first block in a parallel! macro directly in the scope which …
Zoxc Feb 23, 2019
1745957
Make misc checking 2 more parallel
Zoxc Feb 23, 2019
140a837
Make misc checking 1 more parallel
Zoxc Feb 23, 2019
350f72f
Make wf checking parallel
Zoxc Feb 23, 2019
01f7450
Update tests
Zoxc Feb 23, 2019
7cc7b8f
Execute all parallel blocks even if they panic in a single-threaded c…
Zoxc Feb 24, 2019
db9a1c1
Add some comments
Zoxc Mar 6, 2019
7985c6f
Rename check_privacy to check_private_in_public
Zoxc Mar 6, 2019
9e5def9
rust-lldb: fix crash when printing empty string
euclio Feb 22, 2019
90bb07e
Apply suggestions from code review
Centril Mar 6, 2019
cefe9b0
Apply suggestions from code review
RalfJung Mar 6, 2019
e5b3ed8
Actually publish miri in the manifest
oli-obk Mar 7, 2019
6465257
std: Delete a by-definition spuriously failing test
alexcrichton Mar 8, 2019
d6234ba
Rollup merge of #58518 - oli-obk:unreachable_result_errors, r=RalfJung
Centril Mar 9, 2019
1812e5b
Rollup merge of #58626 - QuietMisdreavus:doc-coverage, r=GuillaumeGomez
Centril Mar 9, 2019
63cca75
Rollup merge of #58629 - euclio:debug-empty-str, r=alexcrichton
Centril Mar 9, 2019
60a24db
Rollup merge of #58660 - RalfJung:maybe-uninit, r=Centril
Centril Mar 9, 2019
2b53d60
Rollup merge of #58670 - saleemjaffer:refactor_typecast_check_kinds, …
Centril Mar 9, 2019
1b737b9
Rollup merge of #58676 - euclio:bootstrap-python, r=alexcrichton
Centril Mar 9, 2019
7c6d8cc
Rollup merge of #58679 - Zoxc:passes-refactor, r=michaelwoerister
Centril Mar 9, 2019
eec629b
Rollup merge of #58743 - varkor:bulk-needstest-1, r=alexcrichton
Centril Mar 9, 2019
2485fb3
Rollup merge of #58750 - TimDiekmann:master, r=oli-obk
Centril Mar 9, 2019
df1b061
Rollup merge of #58762 - petrochenkov:unwind, r=Mark-Simulacrum
Centril Mar 9, 2019
73ac551
Rollup merge of #58924 - cuviper:more-as_slice, r=dtolnay
Centril Mar 9, 2019
081cf87
Rollup merge of #58990 - oli-obk:miri_manifest, r=alexcrichton
Centril Mar 9, 2019
aba3c79
Rollup merge of #59018 - alexcrichton:omg, r=sfackler
Centril Mar 9, 2019
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
update rustdoc coverage tests with new table layout
  • Loading branch information
QuietMisdreavus committed Feb 28, 2019
commit 515dbe73abb3ee20582011f9bcc2cb20ced098d3
22 changes: 7 additions & 15 deletions src/test/rustdoc-ui/coverage/basic.stdout
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
+---------------------------+------------+------------+------------+
| Item Type | Documented | Total | Percentage |
+---------------------------+------------+------------+------------+
| Modules | 1 | 1 | 100.0% |
| Functions | 1 | 2 | 50.0% |
| Structs | 1 | 2 | 50.0% |
| Struct Fields | 0 | 1 | 0.0% |
| Enums | 0 | 1 | 0.0% |
| Enum Variants | 2 | 3 | 66.7% |
| Methods | 1 | 2 | 50.0% |
| Macros | 1 | 1 | 100.0% |
| Extern Types | 0 | 1 | 0.0% |
+---------------------------+------------+------------+------------+
| Total | 7 | 14 | 50.0% |
+---------------------------+------------+------------+------------+
+-------------------------------------+------------+------------+------------+
| File | Documented | Total | Percentage |
+-------------------------------------+------------+------------+------------+
| ...est/rustdoc-ui/coverage/basic.rs | 7 | 14 | 50.0% |
+-------------------------------------+------------+------------+------------+
| Total | 7 | 14 | 50.0% |
+-------------------------------------+------------+------------+------------+
14 changes: 7 additions & 7 deletions src/test/rustdoc-ui/coverage/empty.stdout
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+---------------------------+------------+------------+------------+
| Item Type | Documented | Total | Percentage |
+---------------------------+------------+------------+------------+
| Modules | 0 | 1 | 0.0% |
+---------------------------+------------+------------+------------+
| Total | 0 | 1 | 0.0% |
+---------------------------+------------+------------+------------+
+-------------------------------------+------------+------------+------------+
| File | Documented | Total | Percentage |
+-------------------------------------+------------+------------+------------+
| ...est/rustdoc-ui/coverage/empty.rs | 0 | 1 | 0.0% |
+-------------------------------------+------------+------------+------------+
| Total | 0 | 1 | 0.0% |
+-------------------------------------+------------+------------+------------+
17 changes: 7 additions & 10 deletions src/test/rustdoc-ui/coverage/enums.stdout
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
+---------------------------+------------+------------+------------+
| Item Type | Documented | Total | Percentage |
+---------------------------+------------+------------+------------+
| Modules | 1 | 1 | 100.0% |
| Struct Fields | 1 | 2 | 50.0% |
| Enums | 2 | 2 | 100.0% |
| Enum Variants | 2 | 3 | 66.7% |
+---------------------------+------------+------------+------------+
| Total | 6 | 8 | 75.0% |
+---------------------------+------------+------------+------------+
+-------------------------------------+------------+------------+------------+
| File | Documented | Total | Percentage |
+-------------------------------------+------------+------------+------------+
| ...est/rustdoc-ui/coverage/enums.rs | 6 | 8 | 75.0% |
+-------------------------------------+------------+------------+------------+
| Total | 6 | 8 | 75.0% |
+-------------------------------------+------------+------------+------------+
17 changes: 8 additions & 9 deletions src/test/rustdoc-ui/coverage/exotic.stdout
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
+---------------------------+------------+------------+------------+
| Item Type | Documented | Total | Percentage |
+---------------------------+------------+------------+------------+
| Modules | 1 | 1 | 100.0% |
| Primitives | 1 | 1 | 100.0% |
| Keywords | 1 | 1 | 100.0% |
+---------------------------+------------+------------+------------+
| Total | 3 | 3 | 100.0% |
+---------------------------+------------+------------+------------+
+-------------------------------------+------------+------------+------------+
| File | Documented | Total | Percentage |
+-------------------------------------+------------+------------+------------+
| ...st/rustdoc-ui/coverage/exotic.rs | 1 | 1 | 100.0% |
| <anon> | 2 | 2 | 100.0% |
+-------------------------------------+------------+------------+------------+
| Total | 3 | 3 | 100.0% |
+-------------------------------------+------------+------------+------------+
17 changes: 7 additions & 10 deletions src/test/rustdoc-ui/coverage/private.stdout
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
+---------------------------+------------+------------+------------+
| Item Type | Documented | Total | Percentage |
+---------------------------+------------+------------+------------+
| Modules | 1 | 2 | 50.0% |
| Functions | 1 | 2 | 50.0% |
| Structs | 1 | 1 | 100.0% |
| Struct Fields | 1 | 2 | 50.0% |
+---------------------------+------------+------------+------------+
| Total | 4 | 7 | 57.1% |
+---------------------------+------------+------------+------------+
+-------------------------------------+------------+------------+------------+
| File | Documented | Total | Percentage |
+-------------------------------------+------------+------------+------------+
| ...t/rustdoc-ui/coverage/private.rs | 4 | 7 | 57.1% |
+-------------------------------------+------------+------------+------------+
| Total | 4 | 7 | 57.1% |
+-------------------------------------+------------+------------+------------+
19 changes: 7 additions & 12 deletions src/test/rustdoc-ui/coverage/statics-consts.stdout
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
+---------------------------+------------+------------+------------+
| Item Type | Documented | Total | Percentage |
+---------------------------+------------+------------+------------+
| Modules | 1 | 1 | 100.0% |
| Structs | 0 | 1 | 0.0% |
| Traits | 1 | 1 | 100.0% |
| Associated Constants | 2 | 2 | 100.0% |
| Statics | 1 | 1 | 100.0% |
| Constants | 1 | 1 | 100.0% |
+---------------------------+------------+------------+------------+
| Total | 6 | 7 | 85.7% |
+---------------------------+------------+------------+------------+
+-------------------------------------+------------+------------+------------+
| File | Documented | Total | Percentage |
+-------------------------------------+------------+------------+------------+
| ...oc-ui/coverage/statics-consts.rs | 6 | 7 | 85.7% |
+-------------------------------------+------------+------------+------------+
| Total | 6 | 7 | 85.7% |
+-------------------------------------+------------+------------+------------+
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/coverage/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct SomeStruct;

/// ...and slap this trait on it?
impl ThisTrait for SomeStruct {
/// what we get is a perfect combo!
/// nothing! trait impls are totally ignored in this calculation, sorry.
fn right_here(&self) {}

type SomeType = String;
Expand Down
23 changes: 7 additions & 16 deletions src/test/rustdoc-ui/coverage/traits.stdout
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
+---------------------------+------------+------------+------------+
| Item Type | Documented | Total | Percentage |
+---------------------------+------------+------------+------------+
| Modules | 0 | 1 | 0.0% |
| Structs | 1 | 1 | 100.0% |
| Traits | 1 | 1 | 100.0% |
| Trait Methods | 2 | 2 | 100.0% |
| Associated Types | 1 | 1 | 100.0% |
| Trait Aliases | 1 | 1 | 100.0% |
+---------------------------+------------+------------+------------+
| Total (non trait impls) | 6 | 7 | 85.7% |
+---------------------------+------------+------------+------------+
| Trait Impl Items | 2 | 3 | 66.7% |
+---------------------------+------------+------------+------------+
| Total | 8 | 10 | 80.0% |
+---------------------------+------------+------------+------------+
+-------------------------------------+------------+------------+------------+
| File | Documented | Total | Percentage |
+-------------------------------------+------------+------------+------------+
| ...st/rustdoc-ui/coverage/traits.rs | 6 | 7 | 85.7% |
+-------------------------------------+------------+------------+------------+
| Total | 6 | 7 | 85.7% |
+-------------------------------------+------------+------------+------------+