@@ -1160,9 +1160,9 @@ impl<'a, 'b> DefIdTree for &'a Resolver<'b> {
11601160/// This interface is used through the AST→HIR step, to embed full paths into the HIR. After that
11611161/// the resolver is no longer needed as all the relevant information is inline.
11621162impl ResolverAstLowering for Resolver < ' _ > {
1163- fn def_key ( & mut self , id : DefId ) -> DefKey {
1163+ fn def_key ( & self , id : DefId ) -> DefKey {
11641164 if let Some ( id) = id. as_local ( ) {
1165- self . definitions ( ) . def_key ( id)
1165+ self . definitions . def_key ( id)
11661166 } else {
11671167 self . cstore ( ) . def_key ( id)
11681168 }
@@ -1189,22 +1189,22 @@ impl ResolverAstLowering for Resolver<'_> {
11891189 self . partial_res_map . get ( & id) . cloned ( )
11901190 }
11911191
1192- fn get_import_res ( & mut self , id : NodeId ) -> PerNS < Option < Res > > {
1192+ fn get_import_res ( & self , id : NodeId ) -> PerNS < Option < Res > > {
11931193 self . import_res_map . get ( & id) . cloned ( ) . unwrap_or_default ( )
11941194 }
11951195
1196- fn get_label_res ( & mut self , id : NodeId ) -> Option < NodeId > {
1196+ fn get_label_res ( & self , id : NodeId ) -> Option < NodeId > {
11971197 self . label_res_map . get ( & id) . cloned ( )
11981198 }
11991199
1200- fn definitions ( & mut self ) -> & mut Definitions {
1201- & mut self . definitions
1202- }
1203-
12041200 fn create_stable_hashing_context ( & self ) -> StableHashingContext < ' _ > {
12051201 StableHashingContext :: new ( self . session , & self . definitions , self . crate_loader . cstore ( ) )
12061202 }
12071203
1204+ fn definitions ( & self ) -> & Definitions {
1205+ & self . definitions
1206+ }
1207+
12081208 fn lint_buffer ( & mut self ) -> & mut LintBuffer {
12091209 & mut self . lint_buffer
12101210 }
0 commit comments