Skip to content

Commit fe08e57

Browse files
forgotten change of late_binding() usage
1 parent dd5c2bb commit fe08e57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/rustc_resolve/src/imports.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,9 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
11851185
return None;
11861186
} // Never suggest the same name
11871187
match *resolution.borrow() {
1188-
NameResolution { non_glob_binding: Some(name_binding), .. } => {
1188+
ref resolution
1189+
if let Some(name_binding) = resolution.late_binding() =>
1190+
{
11891191
match name_binding.kind {
11901192
NameBindingKind::Import { binding, .. } => {
11911193
match binding.kind {

0 commit comments

Comments
 (0)