Make the derived obligation cause parent private
This commit is contained in:
parent
5b5b549580
commit
9ba6ddb929
4 changed files with 21 additions and 14 deletions
|
@ -1606,9 +1606,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
let mut result_code = code;
|
||||
loop {
|
||||
let parent = match code {
|
||||
ObligationCauseCode::ImplDerivedObligation(c) => &c.derived.parent_code,
|
||||
ObligationCauseCode::ImplDerivedObligation(c) => c.derived.parent_code(),
|
||||
ObligationCauseCode::BuiltinDerivedObligation(c)
|
||||
| ObligationCauseCode::DerivedObligation(c) => &c.parent_code,
|
||||
| ObligationCauseCode::DerivedObligation(c) => c.parent_code(),
|
||||
_ => break result_code,
|
||||
};
|
||||
(result_code, code) = (code, parent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue