Skip to content

Unconstrained parameter fix#148788

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
TomtheCoder2:unconstrained-parameter-fix
May 16, 2026
Merged

Unconstrained parameter fix#148788
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
TomtheCoder2:unconstrained-parameter-fix

Conversation

@TomtheCoder2
Copy link
Copy Markdown
Contributor

@TomtheCoder2 TomtheCoder2 commented Nov 10, 2025

View all comments

This PR is an attempt to solve the issue described in the issue #107295

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Nov 10, 2025

This PR modifies tests/ui/issues/. If this PR is adding new tests to tests/ui/issues/,
please refrain from doing so, and instead add it to more descriptive subdirectories.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Nov 10, 2025
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Nov 10, 2025

r? @davidtwco

rustbot has assigned @davidtwco.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

Comment thread compiler/rustc_hir_analysis/src/impl_wf_check.rs Outdated
Comment thread compiler/rustc_hir_analysis/src/impl_wf_check.rs Outdated
Comment thread tests/ui/associated-inherent-types/hr-do-not-blame-outlives-static-ice.stderr Outdated
Comment thread compiler/rustc_hir_analysis/src/impl_wf_check.rs Outdated
@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 11, 2025
@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot rustbot added the has-merge-commits PR has merge commits, merge with caution. label Nov 11, 2025
@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented Jan 13, 2026

☔ The latest upstream changes (presumably #150844) made this pull request unmergeable. Please resolve the merge conflicts.

@TomtheCoder2 TomtheCoder2 force-pushed the unconstrained-parameter-fix branch from de845c2 to 1f5e308 Compare March 5, 2026 01:42
@rustbot

This comment has been minimized.

@rustbot rustbot removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. has-merge-commits PR has merge commits, merge with caution. labels Mar 5, 2026
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@TomtheCoder2 TomtheCoder2 requested a review from davidtwco March 8, 2026 04:20
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 8, 2026
@rust-log-analyzer

This comment has been minimized.

@rust-bors

This comment has been minimized.

@TomtheCoder2 TomtheCoder2 force-pushed the unconstrained-parameter-fix branch from bbce6e5 to 06e17b4 Compare March 9, 2026 00:09
@rustbot

This comment has been minimized.

@rust-bors

This comment has been minimized.

When an unconstrained type or lifetime parameter is detected in an
`impl`, provide more specific help based on its usage:
- If the parameter is entirely unused, suggest removing it.
- If it is used in the `impl` body but not the `Self` type, suggest
  including it in the `Self` type and the struct definition.

This also adds a comprehensive UI test for these cases.
@TomtheCoder2 TomtheCoder2 force-pushed the unconstrained-parameter-fix branch from d38acdb to d02b4c8 Compare May 9, 2026 05:51
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 9, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@davidtwco
Copy link
Copy Markdown
Member

@bors r+

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 15, 2026

📌 Commit d02b4c8 has been approved by davidtwco

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 15, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request May 15, 2026
…avidtwco

Unconstrained parameter fix



This PR is an attempt to solve the issue described in the issue #107295
Zalathar added a commit to Zalathar/rust that referenced this pull request May 15, 2026
…er-fix, r=davidtwco

Unconstrained parameter fix

This PR is an attempt to solve the issue described in the issue rust-lang#107295
@Zalathar
Copy link
Copy Markdown
Member

@bors yield (enclosing rollup)

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 15, 2026

Auto build was cancelled. Cancelled workflows:

The next pull request likely to be tested is #156610.

rust-bors Bot pushed a commit that referenced this pull request May 15, 2026
Rollup of 11 pull requests

Successful merges:

 - #148788 (Unconstrained parameter fix)
 - #153238 (debuginfo: slices are DW_TAG_array_type's)
 - #155521 (Add lint againts invalid runtime symbol definitions)
 - #156319 (Require EIIs to be defined when we compile a rust dylib)
 - #156452 (Implement pinned drop sugar)
 - #156600 (Make const param default test reproduce original ICE)
 - #156493 (actually run the temp_dir doctest)
 - #156556 (Require UTF-8 in `Utf8Pattern::StringPattern`)
 - #156565 (delegation: emit error when self type is not specified and accessed)
 - #156586 (Use DropCtxt::new_block and new_block_with_statements systematically.)
 - #156587 (Correctly handle associated items in rustdoc macro expansion)
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request May 15, 2026
…avidtwco

Unconstrained parameter fix



This PR is an attempt to solve the issue described in the issue #107295
@rust-log-analyzer
Copy link
Copy Markdown
Collaborator

The job x86_64-gnu-llvm-21-1 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
test expr_store::tests::body::async_fn_weird_param_patterns ... ok
test expr_store::scope::tests::test_shadow_variable ... ok
test expr_store::scope::tests::while_let_adds_binding ... ok
test expr_store::tests::body::array_element_cfg ... ok
error: test failed, to rerun pass `-p hir-def --lib`

Caused by:
  process didn't exit successfully: `/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/hir_def-f381e8bd2208ec8b '--skip=tests::smoke_test_real_sysroot_cargo' --skip=check_code_formatting -Z unstable-options --format json` (signal: 11, SIGSEGV: invalid memory reference)
Bootstrap failed while executing `--stage 2 test --skip tests --skip coverage-map --skip coverage-run --skip library --skip tidyselftest`
Build completed unsuccessfully in 1:04:45
  local time: Fri May 15 16:30:50 UTC 2026
  network time: Fri, 15 May 2026 16:30:50 GMT
##[error]Process completed with exit code 1.

@rust-bors rust-bors Bot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels May 15, 2026
@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 15, 2026

💔 Test for 7e9c9ef failed: CI. Failed job:

@JonathanBrouwer
Copy link
Copy Markdown
Contributor

@bors retry

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 15, 2026
rust-bors Bot pushed a commit that referenced this pull request May 15, 2026
…uwer

Rollup of 12 pull requests

Successful merges:

 - #148788 (Unconstrained parameter fix)
 - #156319 (Require EIIs to be defined when we compile a rust dylib)
 - #156452 (Implement pinned drop sugar)
 - #156554 (Allow user-provided `llvm_args` to override target spec arguments)
 - #156571 (Disable `main_needs_argc_argv` for Wasm)
 - #156600 (Make const param default test reproduce original ICE)
 - #156493 (actually run the temp_dir doctest)
 - #156556 (Require UTF-8 in `Utf8Pattern::StringPattern`)
 - #156565 (delegation: emit error when self type is not specified and accessed)
 - #156586 (Use DropCtxt::new_block and new_block_with_statements systematically.)
 - #156587 (Correctly handle associated items in rustdoc macro expansion)
 - #156604 (coverage: Reduce and clarify the context-mismatch test case)
@rust-bors rust-bors Bot merged commit 62c2da0 into rust-lang:main May 16, 2026
11 of 12 checks passed
@rustbot rustbot added this to the 1.97.0 milestone May 16, 2026
rust-timer added a commit that referenced this pull request May 16, 2026
Rollup merge of #148788 - TomtheCoder2:unconstrained-parameter-fix, r=davidtwco

Unconstrained parameter fix

This PR is an attempt to solve the issue described in the issue #107295
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants