Run rustfmt 1.41 (#877)
This commit is contained in:
@@ -5589,8 +5589,7 @@ impl<'this, M: ModuleContext> Context<'this, M> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if pending.len() == start_len {
|
if pending.len() == start_len {
|
||||||
let src =
|
let src = match pending
|
||||||
match pending
|
|
||||||
.iter()
|
.iter()
|
||||||
.filter_map(|(src, _)| {
|
.filter_map(|(src, _)| {
|
||||||
if let ValueLocation::Reg(reg) = src {
|
if let ValueLocation::Reg(reg) = src {
|
||||||
@@ -5601,11 +5600,13 @@ impl<'this, M: ModuleContext> Context<'this, M> {
|
|||||||
})
|
})
|
||||||
.next()
|
.next()
|
||||||
{
|
{
|
||||||
None => return Err(Error::Microwasm(
|
None => {
|
||||||
|
return Err(Error::Microwasm(
|
||||||
"Programmer error: We shouldn't need to push \
|
"Programmer error: We shouldn't need to push \
|
||||||
intermediate args if we don't have any argument sources in registers"
|
intermediate args if we don't have any argument sources in registers"
|
||||||
.to_string(),
|
.to_string(),
|
||||||
)),
|
))
|
||||||
|
}
|
||||||
Some(val) => *val,
|
Some(val) => *val,
|
||||||
};
|
};
|
||||||
let new_src = self.push_physical(ValueLocation::Reg(src))?;
|
let new_src = self.push_physical(ValueLocation::Reg(src))?;
|
||||||
|
|||||||
@@ -23,8 +23,7 @@ use wasmtime_jit::native;
|
|||||||
use wasmtime_obj::emit_module;
|
use wasmtime_obj::emit_module;
|
||||||
|
|
||||||
/// The after help text for the `wasm2obj` command.
|
/// The after help text for the `wasm2obj` command.
|
||||||
pub const WASM2OBJ_AFTER_HELP: &str =
|
pub const WASM2OBJ_AFTER_HELP: &str = "The translation is dependent on the environment chosen.\n\
|
||||||
"The translation is dependent on the environment chosen.\n\
|
|
||||||
The default is a dummy environment that produces placeholder values.";
|
The default is a dummy environment that produces placeholder values.";
|
||||||
|
|
||||||
fn parse_target(s: &str) -> Result<Triple> {
|
fn parse_target(s: &str) -> Result<Triple> {
|
||||||
|
|||||||
Reference in New Issue
Block a user