File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
crates/cairo-lang-lowering/src/lower Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ impl BlockBuilder {
407407}
408408
409409/// Gets the type of a semantic variable.
410- fn get_ty ( ctx : & mut LoweringContext < ' _ , ' _ > , member_path : & MemberPath ) -> semantic:: TypeId {
410+ fn get_ty ( ctx : & LoweringContext < ' _ , ' _ > , member_path : & MemberPath ) -> semantic:: TypeId {
411411 match member_path {
412412 MemberPath :: Var ( var) => ctx. semantic_defs [ var] . ty ( ) ,
413413 MemberPath :: Member { member_id, concrete_struct_id, .. } => {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ impl SemanticLoweringMapping {
2929 /// Returns the topmost mapped member path containing the given member path, or None no such
3030 /// member path exists in the mapping.
3131 pub fn topmost_mapped_containing_member_path (
32- & mut self ,
32+ & self ,
3333 mut member_path : MemberPath ,
3434 ) -> Option < MemberPath > {
3535 let mut res = None ;
@@ -46,7 +46,7 @@ impl SemanticLoweringMapping {
4646
4747 /// Returns the scattered members of the given member path, or None if the member path is not
4848 /// scattered.
49- pub fn get_scattered_members ( & mut self , member_path : & MemberPath ) -> Option < Vec < MemberPath > > {
49+ pub fn get_scattered_members ( & self , member_path : & MemberPath ) -> Option < Vec < MemberPath > > {
5050 let Some ( Value :: Scattered ( scattered) ) = self . scattered . get ( member_path) else {
5151 return None ;
5252 } ;
You can’t perform that action at this time.
0 commit comments