Upgrade to Rust 1.17.
- Remove some uses of 'static in const and static globals that are no longer needed. - Use the new struct initialization shorthand.
This commit is contained in:
@@ -27,10 +27,10 @@ pub fn verify_liveness(isa: &TargetIsa,
|
||||
liveness: &Liveness)
|
||||
-> Result {
|
||||
let verifier = LivenessVerifier {
|
||||
isa: isa,
|
||||
func: func,
|
||||
cfg: cfg,
|
||||
liveness: liveness,
|
||||
isa,
|
||||
func,
|
||||
cfg,
|
||||
liveness,
|
||||
};
|
||||
verifier.check_ebbs()?;
|
||||
verifier.check_insts()?;
|
||||
|
||||
@@ -139,10 +139,10 @@ impl<'a> Verifier<'a> {
|
||||
let cfg = ControlFlowGraph::with_function(func);
|
||||
let domtree = DominatorTree::with_function(func, &cfg);
|
||||
Verifier {
|
||||
func: func,
|
||||
cfg: cfg,
|
||||
domtree: domtree,
|
||||
isa: isa,
|
||||
func,
|
||||
cfg,
|
||||
domtree,
|
||||
isa,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user