Skip to content

Commit 2c95105

Browse files
authored
Rollup merge of #142012 - oli-obk:no-optional-spans, r=fee1-dead
Replace some `Option<Span>` with `Span` and use DUMMY_SP instead of None Turns out many locations actually have a span available that we could use, so I used it
2 parents 2f80ead + 9f9f993 commit 2c95105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ fn is_ty_const_destruct<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>, body: &Body<'tcx>
439439
tcx,
440440
ObligationCause::dummy_with_span(body.span),
441441
param_env,
442-
TraitRef::new(tcx, tcx.require_lang_item(LangItem::Destruct, Some(body.span)), [ty]),
442+
TraitRef::new(tcx, tcx.require_lang_item(LangItem::Destruct, body.span), [ty]),
443443
);
444444

445445
let mut selcx = SelectionContext::new(&infcx);

0 commit comments

Comments
 (0)