Closed ranjitjhala closed 4 weeks ago
Matching PR https://github.com/PLSysSec/tock/pull/4/files
By "outside" Checker
do you mean it should be at the "level" of fn check_fn
in flux-refineck/src/lib.rs
?
or at the level of fn run_in_refine_mode
?
I think this should be part of flux_fhir_analysis::compare_impl_item::check_impl_against_trait
, but that would require reshuffling things across crates. Putting it in flux_refineck::check_fn
would be a good start though.
AFAICT InferCtxt
can only be initialized with a Body
and so you can't initialize it in the context of a trait-method (which may not have a Body
?)
@nilehmann I have done the refactoring, so the impl-trait check lives in
pub fn trait_impl_subtyping
(currently in checker.rs) but independent of the Checker
itself andPHASE 4
in check_fn
See esp. the new args
passed into RefineTree::new
and the subsequent .instantiate(...)
ok, I'll merge if everything -- IF I get the damn tock thing to pass locally.
merging!
Fixes #592