Skip to content

proposal: spec: disallow T<->uintptr conversion for type T unsafe.Pointer #20171

Open
@griesemer

Description

@griesemer

Currently, implementations permit conversions to/from unsafe.Pointer and to/from types with underlying type unsafe.Pointer.

Consequently, unsafe conversions can be hidden because package unsafe doesn't even have to be imported.

This was arguably an "implementation mistake" which we should fix. See also #19306.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions