Skip to content

Commit af2d89c

Browse files
committed
Refactor path resoloution.
1 parent cb9f14e commit af2d89c

File tree

4 files changed

+287
-546
lines changed

4 files changed

+287
-546
lines changed

src/librustc/hir/lowering.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub struct LoweringContext<'a> {
7777

7878
pub trait Resolver {
7979
// Resolve a global hir path generated by the lowerer when expanding `for`, `if let`, etc.
80-
fn resolve_generated_global_path(&mut self, path: &mut hir::Path, is_value: bool);
80+
fn resolve_hir_path(&mut self, path: &mut hir::Path, is_value: bool);
8181

8282
// Obtain the resolution for a node id
8383
fn get_resolution(&mut self, id: NodeId) -> Option<PathResolution>;
@@ -2091,7 +2091,7 @@ impl<'a> LoweringContext<'a> {
20912091
segments: segments.into(),
20922092
};
20932093

2094-
self.resolver.resolve_generated_global_path(&mut path, is_value);
2094+
self.resolver.resolve_hir_path(&mut path, is_value);
20952095
path
20962096
}
20972097

0 commit comments

Comments
 (0)