Skip to content

§16.11: raw-pointer-to-slice conversion slice(p, len) is missing #3049

Closed

Description

@ehartford

Found during the #2987 manual audit of docs/spec/016_ffi.md (§16.11, lines 1560 and 1586).

Gap

§16.11 specifies raw-pointer-to-slice conversion inside unsafe:

unsafe:
    let s = slice(q, 2)    // raw pointer to safe slice/view

Neither slice(ptr, len) nor an equivalent raw-pointer-to-slice constructor (*const T / *mut T + len → []T) exists yet as a compiler builtin or in std.mem.

Activity

  1. added
    spec-gap
    on Nov 5, 2026
  2. added a commit that references this issue on Nov 6, 2026
  3. ehartford commented on Nov 6, 2026

    @ehartford
    ContributorAuthor

    Fixed in #3054 (merged as 12489f1).

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

    spec-gap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions