File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ use rustc::hir;
14
14
use rustc:: session:: Session ;
15
15
use rustc:: ty:: TyCtxt ;
16
16
use rustc:: ty:: query:: Providers ;
17
+ use syntax:: ast:: Mutability ;
17
18
use syntax:: span_err;
18
19
use syntax_pos:: Span ;
19
20
@@ -35,8 +36,8 @@ impl ConstKind {
35
36
let owner = hir_map. body_owner ( body. id ( ) ) ;
36
37
let const_kind = match hir_map. body_owner_kind ( owner) {
37
38
hir:: BodyOwnerKind :: Const => Self :: Const ,
38
- hir:: BodyOwnerKind :: Static ( hir :: Mutability :: MutMutable ) => Self :: StaticMut ,
39
- hir:: BodyOwnerKind :: Static ( hir :: Mutability :: MutImmutable ) => Self :: Static ,
39
+ hir:: BodyOwnerKind :: Static ( Mutability :: Mutable ) => Self :: StaticMut ,
40
+ hir:: BodyOwnerKind :: Static ( Mutability :: Immutable ) => Self :: Static ,
40
41
41
42
hir:: BodyOwnerKind :: Fn if is_const_fn ( owner) => Self :: ConstFn ,
42
43
hir:: BodyOwnerKind :: Fn | hir:: BodyOwnerKind :: Closure => return None ,
You can’t perform that action at this time.
0 commit comments