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

Propagate native dynamic libraries/frameworks (plus a few assorted fixes) #10777

Closed
wants to merge 3 commits into from

Conversation

alexcrichton
Copy link
Member

Commit messages have the fun details, the focus of this is closing #10743 though

//
// The use case for this is a little subtle. In theory the native
// dependencies of a crate a purely an implementation detail of the crate
// itself, but the problem arises with generis and inlined functions. If a
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: generic

* Don't flag any address_insignificant statics as reachable because the whole
  point of the address_insignificant optimization is that the static is not
  reachable. Additionally, there's no need for it to be reachable because LLVM
  optimizes it away.

* Be sure to not leak external node ids into our reachable set, this can
  spuriously cause local items to be considered reachable if the node ids just
  happen to line up
Use the correct set of dependencies as well as CFG_PYTHON instead of assuming
'python' is the right one.
The reasons for this are outlined in issue rust-lang#10743 as well as the comment I have
now placed in the code.

Closes rust-lang#10743
bors added a commit that referenced this pull request Dec 3, 2013
Commit messages have the fun details, the focus of this is closing #10743 though
@bors bors closed this Dec 3, 2013
@alexcrichton alexcrichton deleted the issue-10743 branch December 4, 2013 01:43
flip1995 pushed a commit to flip1995/rust that referenced this pull request May 20, 2023
Enhance `needless_collect`: lint in method/function arguments that take an `IntoIterator`

Updates `needless_collect` to also lint `collect` calls in method/function arguments that take an `IntoIterator` (for example `Extend::extend`). Every `Iterator` trivially implements `IntoIterator` and collecting it only causes an unnecessary allocation.

---

changelog: Enhancement: [`needless_collect`]: Now also detects function arguments, taking a generic `IntoIterator`
[rust-lang#10777](rust-lang/rust-clippy#10777)
<!-- changelog_checked -->

fixes rust-lang#10762
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants