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(
194
194
}
195
195
196
196
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 {
198
202
if let Some ( receiver) =
199
203
db. lang_item ( table. trait_env . krate , LangItem :: Receiver ) . and_then ( |l| l. as_trait ( ) )
200
204
{
Original file line number Diff line number Diff line change @@ -2163,9 +2163,9 @@ impl Receiver for Bar {
2163
2163
fn main() {
2164
2164
let bar = Bar;
2165
2165
let _v1 = bar.foo1();
2166
- //^^^ type: i32
2166
+ //^^^ type: {unknown}
2167
2167
let _v2 = bar.foo2();
2168
- //^^^ type: bool
2168
+ //^^^ type: {unknown}
2169
2169
}
2170
2170
"# ,
2171
2171
) ;
Original file line number Diff line number Diff line change @@ -1500,9 +1500,7 @@ fn main() {
1500
1500
bar.$0
1501
1501
}
1502
1502
"# ,
1503
- expect ! [ [ r#"
1504
- me foo() fn(self: Bar)
1505
- "# ] ] ,
1503
+ expect ! [ [ r#""# ] ] ,
1506
1504
) ;
1507
1505
}
1508
1506
You can’t perform that action at this time.
0 commit comments