Skip to content

Tracking Issue for Vec::from_fn #149698

Closed
Closed

Description

@EFanZh

Feature gate: #![feature(vec_from_fn)]

This is a tracking issue for the Vec::from_fn method.

Public API

impl<T> Vec<T> {
    pub fn from_fn<F>(length: usize, f: F) -> Self
    where
        F: FnMut(usize) -> T,
    {
        (0..length).map(f).collect()
    }
}

Steps / History

(Remember to update the S-tracking-* label when checking boxes.)

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩

Activity

  1. added
    T-libs-api[DEPRECATED; DO NOT USE]
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    on Dec 6, 2025
  2. added a commit that references this issue on Dec 6, 2025
  3. added a commit that references this issue on Dec 7, 2025
  4. EFanZh commented on Dec 7, 2025

    @EFanZh
    ContributorAuthor

    @rustbot label -S-tracking-unimplemented

  5. callmeclover commented on May 28, 2026

    @callmeclover

    @Amanieu this has been implemented for a good few months with no questions, could we start the FCP?

  6. Amanieu commented on May 29, 2026

    @Amanieu
    Member

    @rfcbot merge libs-api

  7. rust-rfcbot commented on May 29, 2026

    @rust-rfcbot
    Collaborator

    Team member @Amanieu has proposed to merge this. The next step is review by the rest of the tagged team members:

    No concerns currently listed.

    Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

    See this document for info about what commands tagged team members can give me.

  8. added
    proposed-final-comment-periodProposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.
    disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.
    final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.
    and removed
    proposed-final-comment-periodProposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.
    on May 29, 2026
  9. rust-rfcbot commented on Jun 2, 2026

    @rust-rfcbot
    Collaborator

    🔔 This is now entering its final comment period, as per the review above. 🔔

  10. added
    to-announceAnnounce this issue on triage meeting
    and removed
    final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.
    on Jun 12, 2026
  11. rust-rfcbot commented on Jun 12, 2026

    @rust-rfcbot
    Collaborator

    The final comment period, with a disposition to merge, as per the review above, is now complete.

    As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed.

  12. added
    T-libsRelevant to the library team, which will review and decide on the PR/issue.
    and removed
    T-libs-api[DEPRECATED; DO NOT USE]
    on Aug 12, 2026
  13. added a commit that references this issue on Sep 12, 2026
  14. added a commit that references this issue on Sep 12, 2026
  15. EFanZh commented on Sep 13, 2026

    @EFanZh
    ContributorAuthor

    Stabilized: #162685.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libsRelevant to the library team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions