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:
Florian Diebold 2021-09-12 10:41:30 +02:00
parent 317059985a
commit a2d9f7d7bb
6 changed files with 66 additions and 27 deletions

View file

@ -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),
);
}