Avoid type inference panic on bitslice methods
Should fix #10090, #10046, #10179. This is only a workaround, but the proper fix requires some bigger refactoring (also related to fixing #10058), and this at least prevents the crash.
This commit is contained in:
@@ -2612,7 +2612,7 @@ impl Type {
|
||||
None,
|
||||
name,
|
||||
method_resolution::LookupMode::MethodCall,
|
||||
callback,
|
||||
&mut |ty, id| callback(&ty.value, id),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2664,7 +2664,7 @@ impl Type {
|
||||
None,
|
||||
name,
|
||||
method_resolution::LookupMode::Path,
|
||||
callback,
|
||||
&mut |ty, id| callback(&ty.value, id),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user