intellij-rust/intellij-rust
Highlight unsafe operations inside `unsafe` blocks
Offen
#3.013 geöffnet am 05.11.2018
E-mediumfeaturehelp wanted
Repository-Metriken
- Stars
- (4.526 Sterne)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
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