difftreelog
fix insert field access stack frame
in: master
1 file changed
crates/jrsonnet-evaluator/src/evaluate/mod.rsdiffbeforeafterboth19 typed::Typed,19 typed::Typed,20 val::{CachedUnbound, IndexableVal, StrValue, Thunk, ThunkValue},20 val::{CachedUnbound, IndexableVal, StrValue, Thunk, ThunkValue},21 Context, GcHashMap, ObjValue, ObjValueBuilder, ObjectAssertion, Pending, Result, ResultExt,21 Context, GcHashMap, ObjValue, ObjValueBuilder, ObjectAssertion, Pending, Result, ResultExt,22 State, Unbound, Val,22 State, Unbound, Val, Error,23};23};24pub mod destructure;24pub mod destructure;25pub mod operator;25pub mod operator;502 None => {502 None => {503 let suggestions = suggest_object_fields(&v, key.clone().into_flat());503 let suggestions = suggest_object_fields(&v, key.clone().into_flat());504504505 bail!(NoSuchField(key.clone().into_flat(), suggestions))505 return Err(Error::from(NoSuchField(506 key.clone().into_flat(),507 suggestions,508 )))509 .with_description_src(&part.value, || format!("field <{key}> access"));506 }510 }507 },511 },508 (Val::Obj(_), n) => bail!(ValueIndexMustBeTypeGot(512 (Val::Obj(_), n) => bail!(ValueIndexMustBeTypeGot(