Skip to content

Commit bd90302

Browse files
committed
document reason for #[inline(never)] annotation
1 parent 499d784 commit bd90302

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_mir/borrow_check/nll/region_infer

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
556556
/// indices of constraints that need to be re-evaluated when X changes.
557557
/// These are constraints like Y: X @ P -- so if X changed, we may
558558
/// need to grow Y.
559-
#[inline(never)]
559+
#[inline(never)] // ensure dfs is identifiable in profiles
560560
fn build_dependency_map(&mut self) -> IndexVec<RegionVid, Option<ConstraintIndex>> {
561561
let mut map = IndexVec::from_elem(None, &self.definitions);
562562

0 commit comments

Comments
 (0)