-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rustdoc: correctly clean cross-crate opaque types
- Loading branch information
Showing
4 changed files
with
101 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,46 @@ | ||
// aux-build:impl_trait_aux.rs | ||
// aux-crate:impl_trait=impl_trait.rs | ||
// edition:2018 | ||
#![crate_name = "user"] | ||
|
||
extern crate impl_trait_aux; | ||
|
||
// @has impl_trait/fn.func.html | ||
// @has user/fn.func.html | ||
// @has - '//pre[@class="rust item-decl"]' "pub fn func<'a>(_x: impl Clone + Into<Vec<u8, Global>> + 'a)" | ||
// @!has - '//pre[@class="rust item-decl"]' 'where' | ||
pub use impl_trait_aux::func; | ||
pub use impl_trait::func; | ||
|
||
// @has impl_trait/fn.func2.html | ||
// @has user/fn.func2.html | ||
// @has - '//pre[@class="rust item-decl"]' "func2<T>(" | ||
// @has - '//pre[@class="rust item-decl"]' "_x: impl Deref<Target = Option<T>> + Iterator<Item = T>," | ||
// @has - '//pre[@class="rust item-decl"]' "_y: impl Iterator<Item = u8> )" | ||
// @!has - '//pre[@class="rust item-decl"]' 'where' | ||
pub use impl_trait_aux::func2; | ||
pub use impl_trait::func2; | ||
|
||
// @has impl_trait/fn.func3.html | ||
// @has user/fn.func3.html | ||
// @has - '//pre[@class="rust item-decl"]' "func3(" | ||
// @has - '//pre[@class="rust item-decl"]' "_x: impl Iterator<Item = impl Iterator<Item = u8>> + Clone)" | ||
// @!has - '//pre[@class="rust item-decl"]' 'where' | ||
pub use impl_trait_aux::func3; | ||
pub use impl_trait::func3; | ||
|
||
// @has impl_trait/fn.func4.html | ||
// @has user/fn.func4.html | ||
// @has - '//pre[@class="rust item-decl"]' "func4<T>(" | ||
// @has - '//pre[@class="rust item-decl"]' "T: Iterator<Item = impl Clone>," | ||
pub use impl_trait_aux::func4; | ||
pub use impl_trait::func4; | ||
|
||
// @has impl_trait/fn.func5.html | ||
// @has user/fn.func5.html | ||
// @has - '//pre[@class="rust item-decl"]' "func5(" | ||
// @has - '//pre[@class="rust item-decl"]' "_f: impl for<'any> Fn(&'any str, &'any str) -> bool + for<'r> Other<T<'r> = ()>," | ||
// @has - '//pre[@class="rust item-decl"]' "_a: impl for<'beta, 'alpha, '_gamma> Auxiliary<'alpha, Item<'beta> = fn(_: &'beta ())>" | ||
// @!has - '//pre[@class="rust item-decl"]' 'where' | ||
pub use impl_trait_aux::func5; | ||
pub use impl_trait::func5; | ||
|
||
// @has impl_trait/struct.Foo.html | ||
// @has user/struct.Foo.html | ||
// @has - '//*[@id="method.method"]//h4[@class="code-header"]' "pub fn method<'a>(_x: impl Clone + Into<Vec<u8, Global>> + 'a)" | ||
// @!has - '//*[@id="method.method"]//h4[@class="code-header"]' 'where' | ||
pub use impl_trait_aux::Foo; | ||
pub use impl_trait::Foo; | ||
|
||
// @has user/fn.rpit_fn.html | ||
// @has - '//pre[@class="rust item-decl"]' "rpit_fn() -> impl Fn() -> bool" | ||
pub use impl_trait::rpit_fn; | ||
|
||
// @has user/fn.rpit_fn_mut.html | ||
// @has - '//pre[@class="rust item-decl"]' "rpit_fn_mut() -> impl for<'a> FnMut(&'a str) -> &'a str" | ||
pub use impl_trait::rpit_fn_mut; |