Skip to content

Commit 9f9f993

Browse files
committed
Replace some Option<Span> with Span and use DUMMY_SP instead of None
1 parent 9b8bf53 commit 9f9f993

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)