Skip to content

Commit 8f30245

Browse files
committed
[fixup] latent resolver: Rename to FieldInstantiationResolver
1 parent c18fd2f commit 8f30245

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

name_resolve/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ mod resolver;
4949
mod scoper;
5050

5151
use declarator::Declarator;
52-
use resolver::{LatentResolver, ResolveKind, Resolver};
52+
use resolver::{FieldInstantiationResolver, ResolveKind, Resolver};
5353
use scoper::Scoper;
5454

5555
/// Error reported when an item (variable, function, type) was already declared
@@ -368,7 +368,7 @@ impl<'enclosing> NameResolveCtx<'enclosing> {
368368
map
369369
});
370370

371-
LatentResolver {
371+
FieldInstantiationResolver {
372372
ctx: self,
373373
latent_map,
374374
}

name_resolve/src/resolver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub(crate) struct Resolver<'ctx, 'enclosing> {
4141
}
4242

4343
/// Created thanks to [`Resolver`]
44-
pub(crate) struct LatentResolver<'ctx, 'enclosing> {
44+
pub(crate) struct FieldInstantiationResolver<'ctx, 'enclosing> {
4545
pub(crate) ctx: &'ctx mut NameResolveCtx<'enclosing>,
4646
pub(crate) latent_map: HashMap<OriginIdx, Scope>,
4747
}
@@ -246,7 +246,7 @@ impl<'ast, 'ctx, 'enclosing> Mapper<FlattenData<'ast>, FlattenData<'ast>, NameRe
246246
}
247247

248248
impl<'ast, 'ctx, 'enclosing> Mapper<FlattenData<'ast>, FlattenData<'ast>, NameResolutionError>
249-
for LatentResolver<'ctx, 'enclosing>
249+
for FieldInstantiationResolver<'ctx, 'enclosing>
250250
{
251251
// FIXME: Disgusting
252252
fn map_assignment(

0 commit comments

Comments
 (0)