Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b9dc4a3

Browse files
committedSep 27, 2024
Auto merge of #130919 - workingjubilee:rollup-4diycoy, r=workingjubilee
Rollup of 8 pull requests Successful merges: - #130313 ([`cfg_match`] Generalize inputs) - #130706 ([rustdoc] Remove unneeded jinja comments) - #130846 (Revert Break into the debugger on panic (129019)) - #130875 (update `compiler-builtins` to 0.1.126) - #130889 (Weekly `cargo update`: only `rustbook`) - #130892 (Partially update `library/Cargo.lock`) - #130911 (diagnostics: wrap fn cast suggestions in parens when needed) - #130912 (On implicit `Sized` bound on fn argument, point at type instead of pattern) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 58420a0 + b463bd1 commit b9dc4a3

File tree

61 files changed

+626
-603
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+626
-603
lines changed
 

‎compiler/rustc_hir_typeck/src/check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub(super) fn check_fn<'a, 'tcx>(
9999
if !params_can_be_unsized {
100100
fcx.require_type_is_sized(
101101
param_ty,
102-
param.pat.span,
102+
param.ty_span,
103103
// ty.span == binding_span iff this is a closure parameter with no type ascription,
104104
// or if it's an implicit `self` parameter
105105
ObligationCauseCode::SizedArgumentType(

‎compiler/rustc_hir_typeck/src/gather_locals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl<'a, 'tcx> Visitor<'tcx> for GatherLocalsVisitor<'a, 'tcx> {
144144
if !self.fcx.tcx.features().unsized_fn_params {
145145
self.fcx.require_type_is_sized(
146146
var_ty,
147-
p.span,
147+
ty_span,
148148
// ty_span == ident.span iff this is a closure parameter with no type
149149
// ascription, or if it's an implicit `self` parameter
150150
ObligationCauseCode::SizedArgumentType(

0 commit comments

Comments
 (0)
Please sign in to comment.