Skip to content

Commit 75ac071

Browse files
committed
document return value of add_live_point
1 parent f6723a9 commit 75ac071

File tree

1 file changed

+3
-0
lines changed
  • src/librustc_mir/borrow_check/nll/region_infer

1 file changed

+3
-0
lines changed

src/librustc_mir/borrow_check/nll/region_infer/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ impl<'tcx> RegionInferenceContext<'tcx> {
208208
}
209209

210210
/// Indicates that the region variable `v` is live at the point `point`.
211+
///
212+
/// Returns `true` if this constraint is new and `false` is the
213+
/// constraint was already present.
211214
pub(super) fn add_live_point(&mut self, v: RegionVid, point: Location) -> bool {
212215
debug!("add_live_point({:?}, {:?})", v, point);
213216
assert!(self.inferred_values.is_none(), "values already inferred");

0 commit comments

Comments
 (0)