Skip to content

Manual does not define "data reached through a shared reference". #30424

@mahkoh

Description

@mahkoh

The manual uses the expression "data reached through a shared reference" but does not define it. In the following code, is x reached through a shared reference?

pub unsafe fn a() -> u8 { let mut x = 11; b(&x as *const u8 as *mut u8); x } unsafe fn b(x: *mut u8) { *x = 22; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-langRelevant to the language teamT-opsemRelevant to the opsem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions