Skip to content

Commit a5a05d3

Browse files
jebrosenibabushkin
authored andcommitted
Fixed build with nightly.
1 parent 1738b59 commit a5a05d3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/semcheck/mapping.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ impl NameMapping {
321321
AssociatedExistential(_) |
322322
PrimTy(_) |
323323
TyParam(_) |
324-
SelfTy(_, _) => Some(&mut self.type_map),
324+
SelfTy(_, _) |
325+
ToolMod => Some(&mut self.type_map),
325326
Fn(_) |
326327
Const(_) |
327328
Static(_, _) |
@@ -333,9 +334,7 @@ impl NameMapping {
333334
Upvar(_, _, _) |
334335
Label(_) => Some(&mut self.value_map),
335336
Macro(_, _) => Some(&mut self.macro_map),
336-
ToolMod |
337-
NonMacroAttr /*(_)*/ |
338-
GlobalAsm(_) |
337+
NonMacroAttr(_) |
339338
Err => None,
340339
};
341340

src/semcheck/traverse.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ fn diff_structure<'a, 'tcx>(changes: &mut ChangeSet,
174174
(Local(_), Local(_)) |
175175
(Upvar(_, _, _), Upvar(_, _, _)) |
176176
(Label(_), Label(_)) |
177-
(GlobalAsm(_), GlobalAsm(_)) |
178177
(Macro(_, _), Macro(_, _)) |
179178
(Variant(_), Variant(_)) |
180179
(Const(_), Const(_)) |

0 commit comments

Comments
 (0)