Skip to content

Undesired formatting with &raw (place) #6503

@antonio-hickey

Description

@antonio-hickey
pub fn some_fn(&self) -> u32 {
    unsafe { &raw (*self.as_ptr()) }
}

when formatted becomes:

pub fn some_fn(&self) -> u32 {
    unsafe { &raw(*self.as_ptr()) }
}

this makes it look like raw is a function, which doesn't exist and won't compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions