machinst x64: refactor imports to use rustfmt convention

This change is a pure refactoring--no change to functionality. It removes newlines between the `use ...` statements in the x64 backend so that rustfmt can format them according to its convention. I noticed some files had followed a manual convention but subsequent additions did not seem to fit; this change fixes that and lightly coalesces some of the occurrences of `use a::b; use a::c;` into `use::{b, c}`.
This commit is contained in:
Andrew Brown
2020-08-03 16:41:49 -07:00
parent 25e31739a6
commit 999e04a2c4
7 changed files with 45 additions and 67 deletions

View File

@@ -1,18 +1,13 @@
//! Instruction operand sub-components (aka "parts"): definitions and printing.
use std::fmt;
use std::string::{String, ToString};
use regalloc::{RealRegUniverse, Reg, RegClass, RegUsageCollector, RegUsageMapper};
use super::regs::{self, show_ireg_sized};
use super::EmitState;
use crate::ir::condcodes::{FloatCC, IntCC};
use crate::machinst::*;
use super::{
regs::{self, show_ireg_sized},
EmitState,
};
use core::fmt::Debug;
use regalloc::{RealRegUniverse, Reg, RegClass, RegUsageCollector, RegUsageMapper};
use std::fmt;
use std::string::{String, ToString};
/// A possible addressing mode (amode) that can be used in instructions.
/// These denote a 64-bit value only.