diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-01-27 10:33:06 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-01-27 10:33:06 +0100 |
| commit | e564a0ad319c8fabddc3e62616be0dbfd761ecec (patch) | |
| tree | d8900039a16934d925028a037ced1462c08200f8 | |
| parent | aa23f862dc020a568278dc4ad92c455a0a3ced46 (diff) | |
| download | rust-e564a0ad319c8fabddc3e62616be0dbfd761ecec.tar.gz rust-e564a0ad319c8fabddc3e62616be0dbfd761ecec.zip | |
Rustfmt
| -rw-r--r-- | src/abi/returning.rs | 2 | ||||
| -rw-r--r-- | src/analyze.rs | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/abi/returning.rs b/src/abi/returning.rs index 8376f845734..3acfae3e1e5 100644 --- a/src/abi/returning.rs +++ b/src/abi/returning.rs @@ -4,7 +4,7 @@ use crate::prelude::*; use rustc_middle::ty::layout::FnAbiExt; use rustc_target::abi::call::{ArgAbi, FnAbi, PassMode}; -use smallvec::{SmallVec, smallvec}; +use smallvec::{smallvec, SmallVec}; /// Can the given type be returned into an ssa var or does it need to be returned on the stack. pub(crate) fn can_return_to_ssa_var<'tcx>( diff --git a/src/analyze.rs b/src/analyze.rs index dc5e8a7e304..62fbcfe3f7a 100644 --- a/src/analyze.rs +++ b/src/analyze.rs @@ -40,7 +40,12 @@ pub(crate) fn analyze(fx: &FunctionCx<'_, '_, impl Module>) -> IndexVec<Local, S } match &bb.terminator().kind { - TerminatorKind::Call { destination, func, args, .. } => { + TerminatorKind::Call { + destination, + func, + args, + .. + } => { if let Some((dest_place, _dest_bb)) = destination { if !crate::abi::can_return_to_ssa_var(fx, func, args) { not_ssa(&mut flag_map, dest_place.local) |
