Skip to content

std::vec::IntoIter::as_mut_slice borrows &self, returns &mut of contents. #39465

Closed

Description

@christophebiocca

/u/dbaupp on reddit points out that this method can be called multiple times and result in getting multiple &mut [T] of the exact same data.

Activity

  1. added
    I-unsoundIssue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
    T-libs-api[DEPRECATED; DO NOT USE]
    on Feb 2, 2017
  2. brson commented on Feb 2, 2017

    @brson
    Contributor

    Awesome!

  3. brson commented on Feb 2, 2017

    @brson
    Contributor

    I suggest we change it to &mut and run it through crater to see the impact. We can change it or immediately deprecate it. We can make a point release or wait until 1.16.

  4. added a commit that references this issue on Feb 3, 2017
    7f294e4
  5. added a commit that references this issue on Feb 3, 2017
    2a935f5
  6. added 2 commits that reference this issue on Feb 4, 2017
    64cd41b
    018fb3e
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

    I-unsoundIssue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/SoundnessT-libs-api[DEPRECATED; DO NOT USE]

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions