diff options
author | Paul Daniel Faria <[email protected]> | 2020-05-28 14:30:19 +0100 |
---|---|---|
committer | Paul Daniel Faria <[email protected]> | 2020-06-27 15:13:14 +0100 |
commit | f678e0d837e472dc2f1421f89f794d33f3ade55c (patch) | |
tree | 0b8501bce63bc5b340f67fe770dbbcb41ecee2e4 /crates/ra_hir/src | |
parent | 6c1682396c9894da07af74b43c2443e9bde89be4 (diff) |
Add HighlightTag::Operator, use it for unsafe deref. Move unsafe validation to its own file
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index 13e763e52..9e3b4a2d8 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -25,9 +25,11 @@ use hir_expand::{ | |||
25 | use hir_ty::{ | 25 | use hir_ty::{ |
26 | autoderef, | 26 | autoderef, |
27 | display::{HirDisplayError, HirFormatter}, | 27 | display::{HirDisplayError, HirFormatter}, |
28 | expr::{ExprValidator, UnsafeValidator}, | 28 | expr::ExprValidator, |
29 | method_resolution, ApplicationTy, Canonical, GenericPredicate, InEnvironment, Substs, | 29 | method_resolution, |
30 | TraitEnvironment, Ty, TyDefId, TypeCtor, | 30 | method_resolution, ApplicationTy, Canonical, InEnvironment, Substs, TraitEnvironment, Ty, |
31 | TyDefId, TypeCtor, | ||
32 | unsafe_validation::UnsafeValidator, | ||
31 | }; | 33 | }; |
32 | use ra_db::{CrateId, CrateName, Edition, FileId}; | 34 | use ra_db::{CrateId, CrateName, Edition, FileId}; |
33 | use ra_prof::profile; | 35 | use ra_prof::profile; |