]> git.lizzy.rs Git - rust.git/commitdiff
remove some `#[inline(never)]`
authorNiko Matsakis <niko@alum.mit.edu>
Sat, 9 Jun 2018 21:20:15 +0000 (17:20 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Sat, 9 Jun 2018 21:20:15 +0000 (17:20 -0400)
src/librustc_mir/borrow_check/nll/region_infer/mod.rs
src/librustc_mir/borrow_check/nll/type_check/input_output.rs
src/librustc_mir/borrow_check/nll/type_check/liveness.rs
src/librustc_mir/borrow_check/nll/type_check/mod.rs

index f123d4217001c596d31232af10a0d685899d907e..0eeacda467e03336ceac4d643d01beeae507ba7d 100644 (file)
@@ -470,7 +470,6 @@ fn propagate_constraints(&mut self, mir: &Mir<'tcx>) {
         self.inferred_values = Some(inferred_values);
     }
 
-    #[inline(never)] // ensure dfs is identifiable in profiles
     fn compute_region_values(&self, _mir: &Mir<'tcx>) -> RegionValues {
         debug!("compute_region_values()");
         debug!("compute_region_values: constraints={:#?}", {
@@ -521,7 +520,6 @@ fn compute_region_values(&self, _mir: &Mir<'tcx>) -> RegionValues {
     /// indices of constraints that need to be re-evaluated when X changes.
     /// These are constraints like Y: X @ P -- so if X changed, we may
     /// need to grow Y.
-    #[inline(never)] // ensure dfs is identifiable in profiles
     fn build_dependency_map(&mut self) -> IndexVec<RegionVid, Option<ConstraintIndex>> {
         let mut map = IndexVec::from_elem(None, &self.definitions);
 
index 6441bdcf26287a126b69dc9e2789fbfef05a533e..d44eed65201cd91112c3ed96ffd607a9a6b8875f 100644 (file)
@@ -32,7 +32,6 @@
 use super::{Locations, TypeChecker};
 
 impl<'a, 'gcx, 'tcx> TypeChecker<'a, 'gcx, 'tcx> {
-    #[inline(never)]
     pub(super) fn equate_inputs_and_outputs(
         &mut self,
         mir: &Mir<'tcx>,
index 61a2373997752cbeb8a3c4e195aa1eeb05be3e64..80f5fe4184f9db508757dd51fd05f566fce0d1f1 100644 (file)
@@ -182,7 +182,6 @@ fn push_type_live_constraint<T>(
     /// the regions in its type must be live at `location`. The
     /// precise set will depend on the dropck constraints, and in
     /// particular this takes `#[may_dangle]` into account.
-    #[inline(never)]
     fn add_drop_live_constraint(
         &mut self,
         dropped_local: Local,
@@ -212,7 +211,6 @@ fn add_drop_live_constraint(
         }
     }
 
-    #[inline(never)]
     fn compute_drop_data(
         cx: &mut TypeChecker<'_, 'gcx, 'tcx>,
         dropped_ty: Ty<'tcx>,
index 76da74b18105067215c1d9da8c90484c4ecc1435..d25cec7979140cdee49791fcfd523fe1c72bdfb6 100644 (file)
@@ -774,7 +774,6 @@ fn push_region_constraints(
     /// obligations. If the same `op` were to be performed at some
     /// other location, then the same set of region obligations would
     /// be generated there, so this can be useful for caching.
-    #[inline(never)]
     fn fully_perform_op_and_get_region_constraint_data<R>(
         &mut self,
         describe_op: impl Fn() -> String,
@@ -811,7 +810,6 @@ fn fully_perform_op_and_get_region_constraint_data<R>(
         }
     }
 
-    #[inline(never)]
     fn sub_types(
         &mut self,
         sub: Ty<'tcx>,
@@ -834,7 +832,6 @@ fn sub_types(
         )
     }
 
-    #[inline(never)]
     fn eq_types(&mut self, a: Ty<'tcx>, b: Ty<'tcx>, locations: Locations) -> UnitResult<'tcx> {
         // Micro-optimization.
         if a == b {
@@ -1605,7 +1602,6 @@ fn prove_trait_ref(&mut self, trait_ref: ty::TraitRef<'tcx>, location: Location)
         );
     }
 
-    #[inline(never)]
     fn prove_predicates<T>(&mut self, predicates: T, location: Location)
     where
         T: IntoIterator<Item = ty::Predicate<'tcx>> + Clone,
@@ -1674,7 +1670,6 @@ fn typeck_mir(&mut self, mir: &Mir<'tcx>) {
         }
     }
 
-    #[inline(never)]
     fn normalize<T>(&mut self, value: &T, location: impl ToLocations) -> T
     where
         T: fmt::Debug + TypeFoldable<'tcx>,