Avoid change to current module on escape from callback
This commit is contained in:
parent
f4ea3928ac
commit
ff6dd5c24b
1 changed files with 1 additions and 2 deletions
|
|
@ -2624,9 +2624,8 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
|||
visit::walk_block(self, block);
|
||||
|
||||
// Move back up.
|
||||
self.current_module = orig_module;
|
||||
|
||||
if !self.resolved {
|
||||
self.current_module = orig_module;
|
||||
self.value_ribs.pop();
|
||||
}
|
||||
debug!("(resolving block) leaving block");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue