-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add regression test for resolving --extern libc=test.rlib
#114166
Conversation
r? @eholk (rustbot has picked a reviewer for you, use r? to override) |
This doesn't seem to actually test the issue. You probably want to make a run-make test instead. |
Oops, looks like you're right, thank you for pointing it out. Sorry for a bad PR, I read the original issue too sloppily :( @rustbot author |
e5d0f63
to
cb66d8c
Compare
Sorry for the bad initial PR :( Retake: Issue #26043 is about that rustc invalidly will consider its own libc as a candidate for That was accidentally fixed in
It is clear that
We can see both that the For maintainability reasons, I think we should avoid writing a test that interprets I have pushed such a test now. Thank you for taking a look before. Would you mind taking another look please? Thanks! r? Nilstrieb @rustbot ready |
extern crate libc
--extern libc=test.rlib
I could not find a test for this particular use case. The closest I got was `tests/ui/imports/issue-37887.rs`, but that is a regression test for a different use case.
cb66d8c
to
7dd5e3c
Compare
That's a fun PR to accidentally fix it, but I can see how it happens. An invalid path like |
Add regression test for resolving `--extern libc=test.rlib` Closes rust-lang#26043 I could not find a test for this particular use case. The closest I got was [`tests/ui/imports/issue-37887.rs`](https://github.com/rust-lang/rust/blob/master/tests/ui/imports/issue-37887.rs), but that is a regression test for a different use case (see rust-lang#37887).
Rollup of 5 pull requests Successful merges: - rust-lang#114079 (Use `upvar_tys` in more places, make it return a list) - rust-lang#114166 (Add regression test for resolving `--extern libc=test.rlib`) - rust-lang#114321 (get auto traits for parallel rustc) - rust-lang#114335 (fix and extend ptr_comparison test) - rust-lang#114347 (x.py print more detailed format files and untracked files count) r? `@ghost` `@rustbot` modify labels: rollup
Closes #26043
I could not find a test for this particular use case. The closest I got was
tests/ui/imports/issue-37887.rs
, but that is a regression test for a different use case (see #37887).