Skip to content

Conversation

Kivooeo
Copy link
Member

@Kivooeo Kivooeo commented Oct 1, 2025

Due to limit knowledges about conditional compilation I'm not sure if this is fine change and will not cause any greater problems in future, but seems (according to new test) that is addresses #147241

So, even though it's a small change, it needs a thorough review by someone more tech-savvy

r? libs

@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-libs Relevant to the library team, which will review and decide on the PR/issue. labels Oct 1, 2025
@rust-log-analyzer

This comment has been minimized.

@tgross35
Copy link
Contributor

tgross35 commented Oct 2, 2025

I don't think we want this change, so I closed #147241. A type implementing PartialEq only in debug mode is rare, and it's an advantage that we have type checking regardless of whether or not debug assertions are enabled. In the rare cases this is a problem, the user can use #[cfg] themselves.

There is also no syntax validation as-written if debug_assertions is disabled (e.g. debug_assert!(anything you like); is accepted)

@rust-log-analyzer
Copy link
Collaborator

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

Click to see the possible cause of the failure (guessed by this bot)

@Kivooeo
Copy link
Member Author

Kivooeo commented Oct 2, 2025

Thanks , that sounds reasonable enough for me, I guess I can close this one as well, at least for now, so if we will ever decide to use attributes instead we already will have this 😅

@Kivooeo Kivooeo closed this Oct 2, 2025
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants