diff options
| author | bors <bors@rust-lang.org> | 2022-07-01 08:19:29 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-01 08:19:29 +0000 |
| commit | 7e2733bb1dd9afe5fd20370ca4d539d42ac50419 (patch) | |
| tree | 8e8742c5fceba260fa0c4b0349b48005f413b70c /src/test/rustdoc | |
| parent | acdcdfb61b7b472bfacbb8bb889bdf3204827f2e (diff) | |
| parent | 18d4228456a98fd6d8950f74fd117aba7fb45757 (diff) | |
| download | rust-7e2733bb1dd9afe5fd20370ca4d539d42ac50419.tar.gz rust-7e2733bb1dd9afe5fd20370ca4d539d42ac50419.zip | |
Auto merge of #98752 - matthiaskrgr:rollup-uwimznc, r=matthiaskrgr
Rollup of 9 pull requests Successful merges: - #98610 (fix `emit_inference_failure_err` ICE) - #98640 (Let rust-analyzer ship on stable, non-preview) - #98686 (add ice test for 46511) - #98727 (rustdoc: filter '_ lifetimes from ty::PolyTraitRef) - #98729 (clarify that ExactSizeIterator::len returns the remaining length) - #98733 (Request to be notified of MIR changes) - #98734 (Update RELEASES.md) - #98745 (Add a `--build-dir` flag to rustbuild) - #98749 (Add macro_rules! rustdoc change to 1.62 relnotes) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/auxiliary/issue-98697-reexport-with-anonymous-lifetime.rs | 9 | ||||
| -rw-r--r-- | src/test/rustdoc/issue-98697.rs | 13 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/test/rustdoc/auxiliary/issue-98697-reexport-with-anonymous-lifetime.rs b/src/test/rustdoc/auxiliary/issue-98697-reexport-with-anonymous-lifetime.rs new file mode 100644 index 00000000000..22cbeae7266 --- /dev/null +++ b/src/test/rustdoc/auxiliary/issue-98697-reexport-with-anonymous-lifetime.rs @@ -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!() +} diff --git a/src/test/rustdoc/issue-98697.rs b/src/test/rustdoc/issue-98697.rs new file mode 100644 index 00000000000..25ab55acd77 --- /dev/null +++ b/src/test/rustdoc/issue-98697.rs @@ -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; |
