fmt
This commit is contained in:
parent
40f161aeb0
commit
d2d9eb3715
1 changed files with 17 additions and 16 deletions
|
@ -126,7 +126,8 @@ impl<'a, 'tcx> NiceRegionError<'a, 'tcx> {
|
|||
lifetime,
|
||||
);
|
||||
|
||||
let (mention_influencer, influencer_point) = if sup_origin.span().overlaps(param.param_ty_span) {
|
||||
let (mention_influencer, influencer_point) =
|
||||
if sup_origin.span().overlaps(param.param_ty_span) {
|
||||
// Account for `async fn` like in `async-await/issues/issue-62097.rs`.
|
||||
// The desugaring of `async `fn`s causes `sup_origin` and `param` to point at the same
|
||||
// place (but with different `ctxt`, hence `overlaps` instead of `==` above).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue