Skip to content

Commit 691d10c

Browse files
committed
Rename new_binding -> binding.
1 parent 5dc1196 commit 691d10c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_resolve/resolve_imports.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ impl<'a> Resolver<'a> {
324324
{
325325
// Ensure that `resolution` isn't borrowed when defining in the module's glob importers,
326326
// during which the resolution might end up getting re-defined via a glob cycle.
327-
let (new_binding, t) = {
327+
let (binding, t) = {
328328
let mut resolution = &mut *self.resolution(module, name, ns).borrow_mut();
329329
let was_known = resolution.binding().is_some();
330330

@@ -337,10 +337,10 @@ impl<'a> Resolver<'a> {
337337
}
338338
};
339339

340-
// Define `new_binding` in `module`s glob importers.
341-
if new_binding.vis == ty::Visibility::Public {
340+
// Define `binding` in `module`s glob importers.
341+
if binding.vis == ty::Visibility::Public {
342342
for directive in module.glob_importers.borrow_mut().iter() {
343-
let imported_binding = self.import(new_binding, directive);
343+
let imported_binding = self.import(binding, directive);
344344
let _ = self.try_define(directive.parent, name, ns, imported_binding);
345345
}
346346
}

0 commit comments

Comments
 (0)