File tree 3 files changed +23
-1
lines changed
3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ fn clean_poly_trait_ref_with_bindings<'tcx>(
167
167
. collect_referenced_late_bound_regions ( & poly_trait_ref)
168
168
. into_iter ( )
169
169
. filter_map ( |br| match br {
170
- ty:: BrNamed ( _, name) => Some ( GenericParamDef {
170
+ ty:: BrNamed ( _, name) if name != kw :: UnderscoreLifetime => Some ( GenericParamDef {
171
171
name,
172
172
kind : GenericParamDefKind :: Lifetime { outlives : vec ! [ ] } ,
173
173
} ) ,
Original file line number Diff line number Diff line change
1
+ /// When reexporting this function, make sure the anonymous lifetimes are not rendered.
2
+ ///
3
+ /// https://github.com/rust-lang/rust/issues/98697
4
+ pub fn repro < F > ( )
5
+ where
6
+ F : Fn ( & str ) ,
7
+ {
8
+ unimplemented ! ( )
9
+ }
Original file line number Diff line number Diff line change
1
+ // aux-build:issue-98697-reexport-with-anonymous-lifetime.rs
2
+ // ignore-cross-compile
3
+
4
+ // When reexporting a function with a HRTB with anonymous lifetimes,
5
+ // make sure the anonymous lifetimes are not rendered.
6
+ //
7
+ // https://github.com/rust-lang/rust/issues/98697
8
+
9
+ extern crate issue_98697_reexport_with_anonymous_lifetime;
10
+
11
+ // @has issue_98697/fn.repro.html '//pre[@class="rust fn"]/code' 'fn repro<F>() where F: Fn(&str)'
12
+ // @!has issue_98697/fn.repro.html '//pre[@class="rust fn"]/code' 'for<'
13
+ pub use issue_98697_reexport_with_anonymous_lifetime:: repro;
You can’t perform that action at this time.
0 commit comments