-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Borrowing strings seems broken #11869
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Comments
(This is a stripped exerpt from gl-rs) |
Hmm, the issue is almost certainly the |
#[crate_type="lib"];
struct A {
a: ~str
}
fn borrow<'a>(binding: &'a A) -> &'a str {
match binding.a.as_slice() {
"in" => "in_",
"ref" => "ref_",
ident => ident
}
} still doesn't compile (same error). |
Seems like it's fixed but may need a test. |
sfackler
added
the
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
label
Sep 21, 2014
ghost
mentioned this issue
Oct 2, 2014
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Dec 28, 2023
…lexendoo New Lint: `result_filter_map` / Mirror of `option_filter_map` Added the `Result` mirror of `option_filter_map`. changelog: New Lint: [`result_filter_map`] I had to move around some code because the function def was too long 🙃. I have also added some pattern checks on `option_filter_map`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
This used to work.
cc @nikomatsakis
The text was updated successfully, but these errors were encountered: