mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
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:
parent
317059985a
commit
a2d9f7d7bb
6 changed files with 66 additions and 27 deletions
|
@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue