Merge pull request #472 from marcusklaas/rustup4000

Remove unsafe push and pop variants
This commit is contained in:
Marcus Klaas de Vries 2015-10-16 18:16:48 +02:00
commit 00aa232834

View File

@ -426,7 +426,6 @@ fn rewrite(&self, context: &RewriteContext, width: usize, offset: Indent) -> Opt
visitor.block_indent = context.block_indent + context.overflow_indent;
let prefix = match self.rules {
ast::BlockCheckMode::PushUnsafeBlock(..) |
ast::BlockCheckMode::UnsafeBlock(..) => {
let snippet = context.snippet(self.span);
let open_pos = try_opt!(snippet.find_uncommented("{"));
@ -463,7 +462,6 @@ fn rewrite(&self, context: &RewriteContext, width: usize, offset: Indent) -> Opt
prefix
}
ast::BlockCheckMode::PopUnsafeBlock(..) |
ast::BlockCheckMode::DefaultBlock => {
visitor.last_pos = self.span.lo;