-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
P-highHigh priorityHigh priorityT-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
The following code compiles on stable but gives an error on beta/nightly:
use std::ascii::AsciiExt;
fn main() {
let x = "a".to_string();
x.eq_ignore_ascii_case("A");
}
<anon>:5:32: 5:35 error: mismatched types:
expected `&collections::string::String`,
found `&'static str`
(expected struct `collections::string::String`,
found str) [E0308]
<anon>:5 x.eq_ignore_ascii_case("A");
This was caused by the new impl of AsciiExt on String
: 700ac0e
Metadata
Metadata
Assignees
Labels
P-highHigh priorityHigh priorityT-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.