Update to the rustfmt in rust 1.28, which is now stable.

Also, rustfmt's --write-mode=check is now named --check.
This commit is contained in:
Dan Gohman
2018-08-02 09:05:47 -07:00
parent 26d122306d
commit cd75176f10
40 changed files with 186 additions and 125 deletions

View File

@@ -122,7 +122,8 @@ impl<'simple_jit_backend> Backend for SimpleJITBackend {
code_size: u32,
) -> ModuleResult<Self::CompiledFunction> {
let size = code_size as usize;
let ptr = self.code_memory
let ptr = self
.code_memory
.allocate(size)
.expect("TODO: handle OOM etc.");
let mut reloc_sink = SimpleJITRelocSink::new();
@@ -155,10 +156,12 @@ impl<'simple_jit_backend> Backend for SimpleJITBackend {
let size = init.size();
let storage = match writable {
Writability::Readonly => self.writable_memory
Writability::Readonly => self
.writable_memory
.allocate(size)
.expect("TODO: handle OOM etc."),
Writability::Writable => self.writable_memory
Writability::Writable => self
.writable_memory
.allocate(size)
.expect("TODO: handle OOM etc."),
};