diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2017-10-10 19:41:29 -0300 |
|---|---|---|
| committer | Paul Daniel Faria <pfaria@localhost.localdomain> | 2017-10-13 08:43:27 -0400 |
| commit | 88b02ef857317313cebd3833e0b6e847789f67c0 (patch) | |
| tree | 07a13092f6bee88325a8bbc6e891db12283e6304 /src/librustc_mir/transform | |
| parent | 50ac63b9b179dca946c5fcbd50541359ccfc68c9 (diff) | |
| download | rust-88b02ef857317313cebd3833e0b6e847789f67c0.tar.gz rust-88b02ef857317313cebd3833e0b6e847789f67c0.zip | |
Add allow_dead code directive to unused methods
Diffstat (limited to 'src/librustc_mir/transform')
| -rw-r--r-- | src/librustc_mir/transform/nll/infer.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustc_mir/transform/nll/infer.rs b/src/librustc_mir/transform/nll/infer.rs index 61e320d9702..f3f4228b421 100644 --- a/src/librustc_mir/transform/nll/infer.rs +++ b/src/librustc_mir/transform/nll/infer.rs @@ -52,10 +52,12 @@ impl InferenceContext { } } + #[allow(dead_code)] pub fn cap_var(&mut self, v: RegionIndex) { self.definitions[v].capped = true; } + #[allow(dead_code)] pub fn add_live_point(&mut self, v: RegionIndex, point: Location) { debug!("add_live_point({:?}, {:?})", v, point); let definition = &mut self.definitions[v]; @@ -69,11 +71,13 @@ impl InferenceContext { } } + #[allow(dead_code)] pub fn add_outlives(&mut self, sup: RegionIndex, sub: RegionIndex, point: Location) { debug!("add_outlives({:?}: {:?} @ {:?}", sup, sub, point); self.constraints.push(Constraint { sup, sub, point }); } + #[allow(dead_code)] pub fn region(&self, v: RegionIndex) -> &Region { &self.definitions[v].value } @@ -130,6 +134,7 @@ impl InferenceContext { } struct Dfs<'a, 'gcx: 'tcx + 'a, 'tcx: 'a> { + #[allow(dead_code)] infcx: &'a InferCtxt<'a, 'gcx, 'tcx>, mir: &'a Mir<'tcx>, } |
