Rename some ObligationCauseCode variants
This commit is contained in:
parent
4bde8a8f4b
commit
534e267d48
33 changed files with 186 additions and 246 deletions
|
@ -150,11 +150,8 @@ fn suggest_question_mark<'tcx>(
|
|||
let ocx = ObligationCtxt::new(&infcx);
|
||||
|
||||
let body_def_id = cx.tcx.hir().body_owner_def_id(body_id);
|
||||
let cause = ObligationCause::new(
|
||||
span,
|
||||
body_def_id,
|
||||
rustc_infer::traits::ObligationCauseCode::MiscObligation,
|
||||
);
|
||||
let cause =
|
||||
ObligationCause::new(span, body_def_id, rustc_infer::traits::ObligationCauseCode::Misc);
|
||||
|
||||
ocx.register_bound(
|
||||
cause,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue