forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rustdoc: filter '_ lifetimes from ty::PolyTraitRef
Fixes rust-lang#98697
- Loading branch information
1 parent
8a23603
commit d8395c0
Showing
3 changed files
with
23 additions
and
1 deletion.
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
9 changes: 9 additions & 0 deletions
9
src/test/rustdoc/auxiliary/issue-98697-reexport-with-anonymous-lifetime.rs
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// When reexporting this function, make sure the anonymous lifetimes are not rendered. | ||
/// | ||
/// https://github.com/rust-lang/rust/issues/98697 | ||
pub fn repro<F>() | ||
where | ||
F: Fn(&str), | ||
{ | ||
unimplemented!() | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// aux-build:issue-98697-reexport-with-anonymous-lifetime.rs | ||
// ignore-cross-compile | ||
|
||
// When reexporting a function with a HRTB with anonymous lifetimes, | ||
// make sure the anonymous lifetimes are not rendered. | ||
// | ||
// https://github.com/rust-lang/rust/issues/98697 | ||
|
||
extern crate issue_98697_reexport_with_anonymous_lifetime; | ||
|
||
// @has issue_98697/fn.repro.html '//pre[@class="rust fn"]/code' 'fn repro<F>() where F: Fn(&str)' | ||
// @!has issue_98697/fn.repro.html '//pre[@class="rust fn"]/code' 'for<' | ||
pub use issue_98697_reexport_with_anonymous_lifetime::repro; |