Skip to content

tests: Remove issue-106126-good-path-bug.rs (it does not work) - #165583

Closed
Enselic wants to merge 1 commit into
rust-lang:mainfrom
Enselic:rm-issue-106126-test
Closed

Enselic wants to merge 1 commit into
rust-lang:mainfrom
Enselic:rm-issue-106126-test

Conversation

@Enselic

@Enselic Enselic commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

The test passes with a nightly toolchain from before the corresponding fix was merged (see #106157 (comment) for instructions), so it is unlikely that the test will catch a regression. So we might as well remove it, it seems.

Unblocks fixing #112504 by fixing the CI failure in #165210 (comment).

CC @LeSeulArtichaut who authored the PR that introduced the test (which I pinged 5 days ago, see #106157 (comment)). (AFAIK the reviewer compiler-errors does not want to be pinged any longer, so I'm not pinging.)

@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. labels Nov 7, 2026
@rustbot

rustbot commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

r? @adwinwhite

rustbot has assigned @adwinwhite.
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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 79 candidates
  • Random selection from 23 candidates

@rust-log-analyzer

This comment has been minimized.

The test passes with a nightly toolchain from before the corresponding
fix was merged, so it is unlikely that the test will catch a regression.
So we might as well remove it, it seems.
@Enselic
Enselic force-pushed the rm-issue-106126-test branch from 39cc7be to db3f037 Compare November 7, 2026 09:59
@rustbot rustbot added A-tidy Area: The tidy tool T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Nov 7, 2026
@adwinwhite

adwinwhite commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

The test is missing a flag. You need to add -Zthir-unsafeck to trigger the ICE with the older nightly.

Edited: the flag is on by default now so the test doesn't need additional annotation.

@adwinwhite

Copy link
Copy Markdown
Contributor

So I guess it's useful?

@rustbot author

@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 10, 2026
@Enselic

Enselic commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

@adwinwhite Thanks for finding that 👍

I see now that it is mentioned in the issue that the original PR fixed. It looks like the test actually did not work (= catch regressions) the day it was merged (Jan 4, 2023), but it started working one day later, when -Zthir-unsafeck was enabled by default (Jan 5, 2024). I suspect this was known at the time, and it's not a problem in practice of course.

Anyway, now that I know how to reproduce, I'll make a proper fix in another PR, so I'll close this one. Thanks again.

@Enselic Enselic closed this Nov 10, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tidy Area: The tidy tool T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants