-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Don't try to determine sysroot. rustc_driver will use default value. #3257
Conversation
Windows is now failing with error[E0463]: can't find crate for |
Looks like it was necessary in windows. |
It might not be necessary when installed via rustup. I'm not sure how to properly test that. Maybe we should copy the binary to |
So how do we make progress on this? It'd be nice to get this in. |
@o01eg can you try this? |
@oli-obk Is it somewhere in the code? |
Oh sorry. I completely misunderstood the issue. I assumed this was dogfood failing, but it's just our normal test suite. You need to re-add the sysroot detection code that you removed, but only into our test suite, so it won't be in the final binary. I think it should suffice to have a check for windows and then run the sysroot detection right here and then append it to the |
You also don't need all the previous code, just the call to rustc: https://github.com/rust-lang-nursery/rust-clippy/pull/3257/files#diff-80f8b83dd8e9ced9366c4eabaf0bba64L42 |
Something odd broke again. |
we seem to have lost appveyor, too XD |
Rebased after #3444 merged |
Looks like it still failed. Should I add sysroot detection to dogfood tests as well? |
Yea, that seems necessary sadly. |
I suppose it better to merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once we get appveyor back, r=me
I've launched AppVeyor by hand, it works: https://ci.appveyor.com/project/o01eg/rust-clippy/builds/20814346 |
@o01eg do you have a version of the patch that applies to 1.31.0? |
I have it only for |
This reverts commit 041c49c, reversing changes made to 1df5766. This broke clippy working when installed from the git repo via cargo install. Fixes rust-lang#3523 Reopens rust-lang#2874
Update README local run command to remove syspath Since #3257 was reverted, including the sysroot in RUSTFLAGS gives the error `Option 'sysroot' given more than once`
Fixes clippy tool state Changes: ```` FIXME > TODO rustup rust-lang/rust#56992 Document map_clone known problems rust-lang#498 Remove header link test: panic at map_unit_fn.rs:202 for map() without args rm unused file map_unit_fn.stderr panic at map_unit_fn.rs:202 for map() without args Change contrib.md hierarchy, link to it from readme Workaround rust-lang/rust#43081 Teach `suspicious_else_formatting` about `if .. {..} {..}` Link to `rustc_driver` crate in plugin mutex_atomic: Correct location of AtomicBool and friends Update README local run command to specify syspath Do not mark as_ref as useless if it's followed by a method call Changes lint sugg to bitwise and operator `&` Run update_lints after renaming Rename lint to MODULE_NAME_REPETITIONS Add renaming tests Move renaming to the right place Implements lint for order comparisons against bool fix(module_name_repeat): Try to register renamed lint, not valid yet Fix an endless loop in the tests. Fix `implicit_return` false positives. chore(moduel_name_repeat): Rename stutter lint to module_name_repeat to avoid ableist language Make integration tests fail on 'E0463' base tests: make sure cargo-clippy binary can be called directly Revert "Merge pull request rust-lang#3257 from o01eg/remove-sysroot" ````
Fix #2874