Skip to content

All vec.rs by-reference functions are unsafe. #3178

@bblum

Description

@bblum

For example, fn push<T>(&v: ~[const T], +initval: T) -- has a huge unsafe block inside, and might mutate the caller's "v" pointer.

This is... maybe safe today, but not in theory, and will break with rw_arcs (#3145).

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions