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:
The rustc-josh-sync Cronjob Bot 2025-12-25 04:19:28 +00:00
commit 958d68ccd2

View File

@ -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 }
}
}