borrowck diagnostics cleanup: remove an unused and a barely-used field by dianne · Pull Request #137006 · rust-lang/rust (original) (raw)

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Feb 15, 2025

@rust-timer

Rollup merge of rust-lang#137006 - dianne:remove-errci-fields, r=compiler-errors

borrowck diagnostics cleanup: remove an unused and a barely-used field

This removes the fields fr_is_local and outlived_fr_is_local from the struct ErrorConstraintInfo. fr_is_local was fully unused, but wasn't caught by dead-code analysis. For symmetry, and since outlived_fr_is_local was used only once and is easy to recompute, I've removed it too. That makes its one use a bit longer, but constructing/destructuring an ErrorConsraintInfo now fits on one line.