-
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
xfailed three tests #4140
Comments
I took a stab at this issue. Submitted #4181 to fix the example in the docs, and can't reproduce either of the other two test failures. Not sure how to just run specific tests, so I just compiled each into executables and ran them:
Feel free to correct if necessary :) |
Thanks! For reference, you can run a specific test with:
(for example). There's lots more info at https://github.com/mozilla/rust/wiki/Note-testsuite |
Indeed, Thanks for the pull request, @andrew-d ! |
Rework use_self impl based on ty::Ty comparison rust-lang#3410 | Take 2 This builds on top of rust-lang#5531 I already reviewed and approved the commits by `@montrivo.` So only the review of my commits should be necessary. I would also appreciate your review `@montrivo,` since you are familiar with the challenges here. Fixes rust-lang#3410 and Fixes rust-lang#4143 (same problem) Fixes rust-lang#2843 Fixes rust-lang#3859 Fixes rust-lang#4734 and fixes rust-lang#6221 Fixes rust-lang#4305 Fixes rust-lang#5078 (even at expression level now 🎉) Fixes rust-lang#3881 and Fixes rust-lang#4887 (same problem) Fixes rust-lang#3909 Not yet: rust-lang#4140 (test added) All the credit for the fixes goes to `@montrivo.` I only refactored and copy and pasted his code. changelog: rewrite [`use_self`] lint and fix multiple (8) FPs. One to go.
Fix use_self FPs on type params changelog: Fix [`use_self`] false positives on type parameters Fixes rust-lang#4140 Fixes rust-lang#7139
Previously the following wrong suggestion was given ```rust impl Error for std::fmt::Error { fn custom<T: std::fmt::Display>(_msg: T) -> Self { - std::fmt::Error // Should lint + Self::Error // Should lint } } ``` Also remove known problem line related to rust-lang#4140 since it's been closed, and refactor the lint
[`use_self`] fix suggestion when full path to struct was given Previously the following wrong suggestion was given ```rust impl Error for std::fmt::Error { fn custom<T: std::fmt::Display>(_msg: T) -> Self { - std::fmt::Error // Should lint + Self::Error // Should lint } } ``` Also remove known problem line related to rust-lang#4140 since it's been closed, and refactor the lint changelog: [`use_self`] fix suggestion when full path to struct was given
Test in
rust.md
beginning withimpl: ~str: Printable
,src/test/run-pass/stat.rs
, andsrc/test/bench/shootout/n-body.rs
It's too late at night to figure out what's wrong :-)
The text was updated successfully, but these errors were encountered: