about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2020-01-21 13:36:34 -0800
committerDylan MacKenzie <ecstaticmorse@gmail.com>2020-02-09 10:33:06 -0800
commitfb14386de355c2bf437515f20975612cda04ef70 (patch)
tree0f53a356b59f95d959f37996d1c909742164e3a5
parent852afa2e88db4db01d6454c3150c975f9f897420 (diff)
downloadrust-fb14386de355c2bf437515f20975612cda04ef70.tar.gz
rust-fb14386de355c2bf437515f20975612cda04ef70.zip
Remove unnecessary allows
-rw-r--r--src/librustc_mir/dataflow/generic/graphviz.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/librustc_mir/dataflow/generic/graphviz.rs b/src/librustc_mir/dataflow/generic/graphviz.rs
index 2917807482c..8bf5852f003 100644
--- a/src/librustc_mir/dataflow/generic/graphviz.rs
+++ b/src/librustc_mir/dataflow/generic/graphviz.rs
@@ -387,7 +387,6 @@ pub struct SimpleDiff<T: Idx> {
 }
 
 impl<T: Idx> SimpleDiff<T> {
-    #![allow(unused)]
     pub fn new(bits_per_block: usize) -> Self {
         SimpleDiff { prev_state: BitSet::new_empty(bits_per_block), prev_loc: Location::START }
     }
@@ -434,7 +433,6 @@ pub struct TwoPhaseDiff<T: Idx> {
 }
 
 impl<T: Idx> TwoPhaseDiff<T> {
-    #![allow(unused)]
     pub fn new(bits_per_block: usize) -> Self {
         TwoPhaseDiff { prev_state: BitSet::new_empty(bits_per_block), prev_loc: Location::START }
     }
@@ -492,7 +490,6 @@ pub struct BlockTransferFunc<'a, 'tcx, T: Idx> {
 }
 
 impl<T: Idx> BlockTransferFunc<'mir, 'tcx, T> {
-    #![allow(unused)]
     pub fn new(
         body: &'mir mir::Body<'tcx>,
         trans_for_block: IndexVec<BasicBlock, GenKillSet<T>>,