Skip to content

Commit 88b02ef

Browse files
spastorinoPaul Daniel Faria
authored and
Paul Daniel Faria
committed
Add allow_dead code directive to unused methods
1 parent 50ac63b commit 88b02ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/librustc_mir/transform/nll/infer.rs

+5
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ impl InferenceContext {
5252
}
5353
}
5454

55+
#[allow(dead_code)]
5556
pub fn cap_var(&mut self, v: RegionIndex) {
5657
self.definitions[v].capped = true;
5758
}
5859

60+
#[allow(dead_code)]
5961
pub fn add_live_point(&mut self, v: RegionIndex, point: Location) {
6062
debug!("add_live_point({:?}, {:?})", v, point);
6163
let definition = &mut self.definitions[v];
@@ -69,11 +71,13 @@ impl InferenceContext {
6971
}
7072
}
7173

74+
#[allow(dead_code)]
7275
pub fn add_outlives(&mut self, sup: RegionIndex, sub: RegionIndex, point: Location) {
7376
debug!("add_outlives({:?}: {:?} @ {:?}", sup, sub, point);
7477
self.constraints.push(Constraint { sup, sub, point });
7578
}
7679

80+
#[allow(dead_code)]
7781
pub fn region(&self, v: RegionIndex) -> &Region {
7882
&self.definitions[v].value
7983
}
@@ -130,6 +134,7 @@ impl InferenceContext {
130134
}
131135

132136
struct Dfs<'a, 'gcx: 'tcx + 'a, 'tcx: 'a> {
137+
#[allow(dead_code)]
133138
infcx: &'a InferCtxt<'a, 'gcx, 'tcx>,
134139
mir: &'a Mir<'tcx>,
135140
}

0 commit comments

Comments
 (0)