Skip to content

Commit 2e25bed

Browse files
committed
remove some #[inline(never)]
1 parent 9240025 commit 2e25bed

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

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

-2
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,6 @@ impl<'tcx> RegionInferenceContext<'tcx> {
470470
self.inferred_values = Some(inferred_values);
471471
}
472472

473-
#[inline(never)] // ensure dfs is identifiable in profiles
474473
fn compute_region_values(&self, _mir: &Mir<'tcx>) -> RegionValues {
475474
debug!("compute_region_values()");
476475
debug!("compute_region_values: constraints={:#?}", {
@@ -521,7 +520,6 @@ impl<'tcx> RegionInferenceContext<'tcx> {
521520
/// indices of constraints that need to be re-evaluated when X changes.
522521
/// These are constraints like Y: X @ P -- so if X changed, we may
523522
/// need to grow Y.
524-
#[inline(never)] // ensure dfs is identifiable in profiles
525523
fn build_dependency_map(&mut self) -> IndexVec<RegionVid, Option<ConstraintIndex>> {
526524
let mut map = IndexVec::from_elem(None, &self.definitions);
527525

src/librustc_mir/borrow_check/nll/type_check/input_output.rs

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ use rustc_data_structures::indexed_vec::Idx;
3232
use super::{Locations, TypeChecker};
3333

3434
impl<'a, 'gcx, 'tcx> TypeChecker<'a, 'gcx, 'tcx> {
35-
#[inline(never)]
3635
pub(super) fn equate_inputs_and_outputs(
3736
&mut self,
3837
mir: &Mir<'tcx>,

src/librustc_mir/borrow_check/nll/type_check/liveness.rs

-2
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ impl<'gen, 'typeck, 'flow, 'gcx, 'tcx> TypeLivenessGenerator<'gen, 'typeck, 'flo
182182
/// the regions in its type must be live at `location`. The
183183
/// precise set will depend on the dropck constraints, and in
184184
/// particular this takes `#[may_dangle]` into account.
185-
#[inline(never)]
186185
fn add_drop_live_constraint(
187186
&mut self,
188187
dropped_local: Local,
@@ -212,7 +211,6 @@ impl<'gen, 'typeck, 'flow, 'gcx, 'tcx> TypeLivenessGenerator<'gen, 'typeck, 'flo
212211
}
213212
}
214213

215-
#[inline(never)]
216214
fn compute_drop_data(
217215
cx: &mut TypeChecker<'_, 'gcx, 'tcx>,
218216
dropped_ty: Ty<'tcx>,

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

-5
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,6 @@ impl<'a, 'gcx, 'tcx> TypeChecker<'a, 'gcx, 'tcx> {
774774
/// obligations. If the same `op` were to be performed at some
775775
/// other location, then the same set of region obligations would
776776
/// be generated there, so this can be useful for caching.
777-
#[inline(never)]
778777
fn fully_perform_op_and_get_region_constraint_data<R>(
779778
&mut self,
780779
describe_op: impl Fn() -> String,
@@ -811,7 +810,6 @@ impl<'a, 'gcx, 'tcx> TypeChecker<'a, 'gcx, 'tcx> {
811810
}
812811
}
813812

814-
#[inline(never)]
815813
fn sub_types(
816814
&mut self,
817815
sub: Ty<'tcx>,
@@ -834,7 +832,6 @@ impl<'a, 'gcx, 'tcx> TypeChecker<'a, 'gcx, 'tcx> {
834832
)
835833
}
836834

837-
#[inline(never)]
838835
fn eq_types(&mut self, a: Ty<'tcx>, b: Ty<'tcx>, locations: Locations) -> UnitResult<'tcx> {
839836
// Micro-optimization.
840837
if a == b {
@@ -1605,7 +1602,6 @@ impl<'a, 'gcx, 'tcx> TypeChecker<'a, 'gcx, 'tcx> {
16051602
);
16061603
}
16071604

1608-
#[inline(never)]
16091605
fn prove_predicates<T>(&mut self, predicates: T, location: Location)
16101606
where
16111607
T: IntoIterator<Item = ty::Predicate<'tcx>> + Clone,
@@ -1674,7 +1670,6 @@ impl<'a, 'gcx, 'tcx> TypeChecker<'a, 'gcx, 'tcx> {
16741670
}
16751671
}
16761672

1677-
#[inline(never)]
16781673
fn normalize<T>(&mut self, value: &T, location: impl ToLocations) -> T
16791674
where
16801675
T: fmt::Debug + TypeFoldable<'tcx>,

0 commit comments

Comments
 (0)