-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Description
- https://crater-reports.s3.amazonaws.com/beta-1.82-1/beta-2024-09-05/reg/moar_options-0.1.1/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.82-1/beta-2024-09-05/gh/Embers-of-the-Fire.rust-std-ext/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.82-1/beta-2024-09-05/reg/rs-std-ext-0.2.0/log.txt
[INFO] [stdout] error[E0277]: can't compare `str` with `&str`
[INFO] [stdout] --> src/lib.rs:29:40
[INFO] [stdout] |
[INFO] [stdout] 29 | assert!(input.is_none_or(|x| x == &"test"));
[INFO] [stdout] | ^^ no implementation for `str == &str`
[INFO] [stdout] |
[INFO] [stdout] = help: the trait `PartialEq<&str>` is not implemented for `str`, which is required by `&str: PartialEq<&&str>`
[INFO] [stdout] = note: required for `&str` to implement `PartialEq<&&str>
I think this was caused by stabilizing is_none_or
?
note: if this breakage was accepted by the relevant team then this issue can be closed.
Metadata
Metadata
Assignees
Labels
T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.