Add regression test for cross-crate assoc const private field leak in rustdoc - #160748
Add regression test for cross-crate assoc const private field leak in rustdoc#160748zakrad wants to merge 1 commit into
Conversation
|
rustbot has assigned @GuillaumeGomez. Use Why was this reviewer chosen?The reviewer was selected based on:
|
| extern crate assoc_const_private_fields; | ||
|
|
||
| //@ has foo/struct.HasPrivateFields.html | ||
| //@ has - '//*[@id="associatedconstant.ASSOC"]' 'pub const ASSOC: HasPrivateFields' |
There was a problem hiding this comment.
Can you use a regex instead to ensure it's the entire content and not just a sub-part? So you use ^ at the start and $ at the end to ensure it's the full content.
There was a problem hiding this comment.
Thanks for hint, switched to regex
|
|
||
| //@ has foo/struct.HasPrivateFields.html | ||
| //@ has - '//*[@id="associatedconstant.ASSOC"]' 'pub const ASSOC: HasPrivateFields' | ||
| //@ !has - '//*[@id="associatedconstant.ASSOC"]' '_private' |
There was a problem hiding this comment.
Once updated to the regex, please remove this check.
|
Thanks! r=me once CI pass. @bors delegate+ |
|
✌️ @zakrad, you can now approve this pull request! If @GuillaumeGomez told you to " |
|
@bors r=GuillaumeGomez |
…eGomez Add regression test for cross-crate assoc const private field leak in rustdoc Closes rust-lang#99630 adds a rustdoc test, reexporting a type must not leak the private field
Rollup of 6 pull requests Successful merges: - #160529 (Upgrade and deduplicate dependencies) - #158517 (Initial implementation of named `Fn` trait parameters) - #158587 (check if len of array const arg matches the expected len of the type when lowering to valtree) - #160748 (Add regression test for cross-crate assoc const private field leak in rustdoc) - #160708 (remove old update mechanism) - #160768 (Fix autodiff_illegal.rs test)
…eGomez Add regression test for cross-crate assoc const private field leak in rustdoc Closes rust-lang#99630 adds a rustdoc test, reexporting a type must not leak the private field
Closes #99630 adds a rustdoc test, reexporting a type must not leak the private field