```rs pub fn some_fn(&self) -> u32 { unsafe { &raw (*self.as_ptr()) } } ``` when formatted becomes: ```rs 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.
Activity
ytmimi commentedon Mar 13, 2025
Is there a tracking issue you can link to? I'm not familiar with raw places.
Edit: I think this is the tracking issue, and it looks like this was stabilized recently.
ytmimi commentedon Mar 13, 2025
@antonio-hickey does this compile before formatting?
Maybe you meant to write
&raw const
or&raw mut
?antonio-hickey commentedon Mar 13, 2025
Yes,
&raw const
in which case works fine.Thanks