File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
ide-completion/src/completions Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,11 @@ pub(crate) fn deref_by_trait(
194194 }
195195
196196 let trait_id = || {
197- if use_receiver_trait {
197+ // FIXME: Remove the `false` once `Receiver` needs to be stabilized, doing so will
198+ // effectively bump the MSRV of rust-analyzer to 1.84 due to 1.83 and below lacking the
199+ // blanked impl on `Deref`.
200+ #[ expect( clippy:: overly_complex_bool_expr) ]
201+ if use_receiver_trait && false {
198202 if let Some ( receiver) =
199203 db. lang_item ( table. trait_env . krate , LangItem :: Receiver ) . and_then ( |l| l. as_trait ( ) )
200204 {
Original file line number Diff line number Diff line change @@ -2163,9 +2163,9 @@ impl Receiver for Bar {
21632163fn main() {
21642164 let bar = Bar;
21652165 let _v1 = bar.foo1();
2166- //^^^ type: i32
2166+ //^^^ type: {unknown}
21672167 let _v2 = bar.foo2();
2168- //^^^ type: bool
2168+ //^^^ type: {unknown}
21692169}
21702170"# ,
21712171 ) ;
Original file line number Diff line number Diff line change @@ -1500,9 +1500,7 @@ fn main() {
15001500 bar.$0
15011501}
15021502"# ,
1503- expect ! [ [ r#"
1504- me foo() fn(self: Bar)
1505- "# ] ] ,
1503+ expect ! [ [ r#""# ] ] ,
15061504 ) ;
15071505 }
15081506
You can’t perform that action at this time.
0 commit comments