Skip to content

Commit db4720b

Browse files
committed
repr: update for removal of const
1 parent ec7cd77 commit db4720b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libstd/repr.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ impl<'self> ReprVisitor<'self> {
189189
} else if mtbl == 1 {
190190
// skip, this is ast::m_imm
191191
} else {
192-
assert_eq!(mtbl, 2);
193-
self.writer.write("const ".as_bytes());
192+
fail!("invalid mutability value");
194193
}
195194
}
196195

0 commit comments

Comments
 (0)