Skip to content

Commit

Permalink
Publish rustc_mir::dataflow and remove #[allow(unused)]
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed Sep 18, 2019
1 parent 19bf0f4 commit 08aff1a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/librustc_mir/dataflow/generic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(unused)]

use std::cmp::Ordering;
use std::ops;

Expand Down Expand Up @@ -209,7 +207,6 @@ where
}

/// Updates the cursor to hold the dataflow state immediately before `target`.
#[allow(unused)]
pub fn seek_before(&mut self, target: Location) {
assert!(target <= self.body.terminator_loc(target.block));

Expand All @@ -228,7 +225,6 @@ where
/// If `target` is a `Call` terminator, `apply_call_return_effect` will not be called. See
/// `seek_after_assume_call_returns` if you wish to observe the dataflow state upon a
/// successful return.
#[allow(unused)]
pub fn seek_after(&mut self, target: Location) {
assert!(target <= self.body.terminator_loc(target.block));

Expand All @@ -243,7 +239,6 @@ where

/// Equivalent to `seek_after`, but also calls `apply_call_return_effect` if `target` is a
/// `Call` terminator whose callee is convergent.
#[allow(unused)]
pub fn seek_after_assume_call_returns(&mut self, target: Location) {
assert!(target <= self.body.terminator_loc(target.block));

Expand Down
2 changes: 1 addition & 1 deletion src/librustc_mir/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub mod error_codes;

mod borrow_check;
mod build;
mod dataflow;
pub mod dataflow;
mod hair;
mod lints;
mod shim;
Expand Down

0 comments on commit 08aff1a

Please sign in to comment.