File tree 1 file changed +4
-2
lines changed
compiler/stable_mir/src/mir
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -643,8 +643,10 @@ impl Constant {
643
643
}
644
644
645
645
impl Place {
646
- // TODO(klinvill): What is the expected behavior of this function? Should it resolve down the
647
- // chain of projections so that `*(_1.f)` would end up returning the type referenced by `f`?
646
+ // FIXME(klinvill): This function is expected to resolve down the chain of projections to get
647
+ // the type referenced at the end of it. E.g. calling `ty()` on `*(_1.f)` should end up
648
+ // returning the type referenced by `f`. The information needed to do this may not currently be
649
+ // present in Stable MIR since at least an implementation for AdtDef is probably needed.
648
650
pub fn ty ( & self , locals : & [ LocalDecl ] ) -> Ty {
649
651
let _start_ty = locals[ self . local ] . ty ;
650
652
todo ! ( "Implement projection" )
You can’t perform that action at this time.
0 commit comments