intellij-rust/intellij-rust
Highlight unsafe operations inside `unsafe` blocks
Aberta
#3.013 aberto em 5 de nov. de 2018
E-mediumfeaturehelp wanted
Métricas do repositório
- Stars
- (4.526 estrelas)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
Only some operations are actually unsafe inside an unsafe block (calls to unsafe fn's, raw pointer dereference). It would be cool to highlight such operations!
See https://github.com/rust-analyzer/rust-analyzer/issues/190 for details.
I personally think this would be a rather important thing to add for folks who work with unsafe code a lot.
Unsafe operations:
- Dereference a raw pointer #3080
- Call an unsafe function or method #3080
- Access or modify a mutable static variable #3080
- Implement an unsafe trait
- Access fields of unions