Skip to content

treat intrinsics entirely as an implementation detail of specialized modules #10008

Closed
@thestinger

Description

@thestinger

Exposing all of the intrinsics in one module is much more convenient than ad hoc extern blocks all over the standard library, but is very annoying for users of low-level Rust. It would be much nicer to treat intrinsics as part of the library API, and expose them in relevant modules. The fact that the API may be an intrinsic and not a library defined function is an implementation detail. Safe intrinsics should not be exposed as both an unsafe function and a safe wrapper.

Example: https://github.com/thestinger/rust-core/blob/master/core/f64.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.I-compiletimeIssue: Problems and improvements with respect to compile times.P-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions