mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-01-17 17:12:14 +00:00
Merge ref 'e7d44143a12a' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.
Upstream ref: e7d44143a12a526488e4f0c0d7ea8e62a4fe9354
Filtered ref: fe2cf3fa56a4ce08f56aee660fbe289c7d13dede
Upstream diff: f41f40408d...e7d44143a1
This merge was created using https://github.com/rust-lang/josh-sync.
This commit is contained in:
commit
958d68ccd2
@ -2624,7 +2624,7 @@ impl SelfParam {
|
||||
let callable_sig =
|
||||
db.callable_item_signature(self.func.into()).instantiate_identity().skip_binder();
|
||||
let environment = param_env_from_has_crate(db, self.func);
|
||||
let ty = callable_sig.inputs().as_slice()[0];
|
||||
let ty = rustc_type_ir::inherent::SliceLike::as_slice(&callable_sig.inputs())[0];
|
||||
Type { env: environment, ty }
|
||||
}
|
||||
|
||||
@ -2639,7 +2639,7 @@ impl SelfParam {
|
||||
let callable_sig =
|
||||
db.callable_item_signature(self.func.into()).instantiate(interner, args).skip_binder();
|
||||
let environment = param_env_from_has_crate(db, self.func);
|
||||
let ty = callable_sig.inputs().as_slice()[0];
|
||||
let ty = rustc_type_ir::inherent::SliceLike::as_slice(&callable_sig.inputs())[0];
|
||||
Type { env: environment, ty }
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user