You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Spanned::get_spans method needs a MIR body to obtain the spans of variables stored in the ForAllVars<'tcx> type. Currently, the MIR body is passed as argument and is used to resolve all quantifiers in an assertion, but each quantifier should use its own MIR body: the one in which the quantified variables are declared.
Add a definition: LocalDefId field to the typed::ForAllVars structure (this probably requires adding one more type parameter to common::ForAllVars`).
Remove the mir_body: mir::Body argument from all Spanned::get_spans methods, using the precedently added definition field to resolve local variables in typed::ForAllVars.
The text was updated successfully, but these errors were encountered:
Spanned no longer exists in the codebase. Errors (parse and type) are reported at the correct location thanks to how the new preparser works. There are two potential problems still:
unused qvars are not reported (because somewhere there is an allow(unused_vars) to suppress other warnings we would get, I imagine)
The
Spanned::get_spans
method needs a MIR body to obtain the spans of variables stored in theForAllVars<'tcx>
type. Currently, the MIR body is passed as argument and is used to resolve all quantifiers in an assertion, but each quantifier should use its own MIR body: the one in which the quantified variables are declared.prusti-dev/prusti-interface/src/specs/typed.rs
Lines 54 to 62 in 7ac30e8
A solution:
definition: LocalDefId
field to thetyped::ForAllVars
structure (this probably requires adding one more type parameter to common::ForAllVars`).mir_body: mir::Body
argument from allSpanned::get_spans
methods, using the precedently addeddefinition
field to resolve local variables intyped::ForAllVars
.The text was updated successfully, but these errors were encountered: