Skip to content
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

Consider again propagating dynamic native dependencies #10743

Closed
alexcrichton opened this issue Dec 1, 2013 · 2 comments
Closed

Consider again propagating dynamic native dependencies #10743

alexcrichton opened this issue Dec 1, 2013 · 2 comments
Labels
A-linkage Area: linking into static, shared libraries and binaries

Comments

@alexcrichton
Copy link
Member

In 2b9c774, we stopped propagating link arguments across crates. The main reason for this is that it was impossible to have a static library build dependency because the link arguments would always be propagated (and the library is only available during the build process).

Now that we have a proper linkage system set up (after #10528), we may want to consider re-propagating these dependencies. I have seen many failed compilations due to this not occurring (one is in issue #10543), and it seems reasonable to do this.

Because we would only do this for native dynamic dependencies, the dependency must already be in place to use the upstream crate, so why not just link it to the downstream crate?

I'm personally in favor of this (due to having a distinction between dynamic/static native libraries now), and I believe that this should be done.

Nominating for discussion.

@alexcrichton
Copy link
Member Author

It appears that @luqmana has run into this when building rustdoc as well: https://gist.github.com/luqmana/a418261dc179db131770

@alexcrichton
Copy link
Member Author

And again @luqmana found this building rustc: https://gist.github.com/luqmana/3eb91d9181cacf11cfbe

bors added a commit that referenced this issue Dec 3, 2013
Commit messages have the fun details, the focus of this is closing #10743 though
flip1995 pushed a commit to flip1995/rust that referenced this issue Jun 30, 2023
new lint: `explicit_into_iter_fn_arg`

Closes rust-lang#10743.
This adds a lint that looks for `.into_iter()` calls in a call expression to a function that already expects an `IntoIterator`. In those cases, explicitly calling `.into_iter()` is unnecessary.
There were a few instances of this in clippy itself so I fixed those as well in this PR.

changelog: new lint [`explicit_into_iter_fn_arg`]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linkage Area: linking into static, shared libraries and binaries
Projects
None yet
Development

No branches or pull requests

1 participant