Fix some warnings in no_std builds.
The dbg! macro expands to nothing in no_std mode, so variables that are only used for debugging prompt unused variable warnings. Also, allow unstable_features in no_std builds, since they use feature(alloc), which is an unstable feature.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
//! parameter will belong to the same virtual register as the EBB parameter value itself.
|
||||
|
||||
use cursor::{Cursor, EncCursor};
|
||||
#[cfg(feature = "std")]
|
||||
use dbg::DisplayList;
|
||||
use dominator_tree::{DominatorTree, DominatorTreePreorder};
|
||||
use flowgraph::ControlFlowGraph;
|
||||
@@ -546,8 +547,8 @@ impl<'a> Context<'a> {
|
||||
return false;
|
||||
}
|
||||
|
||||
let vreg = self.virtregs.unify(self.values);
|
||||
dbg!("-> merged into {} = {}", vreg, DisplayList(self.values));
|
||||
let _vreg = self.virtregs.unify(self.values);
|
||||
dbg!("-> merged into {} = {}", _vreg, DisplayList(self.values));
|
||||
true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user