Skip to content

Commit 6c272b7

Browse files
committed
Fix lint findings in librustc
1 parent 8af35fe commit 6c272b7

File tree

19 files changed

+56
-56
lines changed

19 files changed

+56
-56
lines changed

src/librustc/infer/error_reporting/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
690690
name: String,
691691
sub: ty::subst::SubstsRef<'tcx>,
692692
pos: usize,
693-
other_ty: &Ty<'tcx>,
693+
other_ty: Ty<'tcx>,
694694
) {
695695
// `value` and `other_value` hold two incomplete type representation for display.
696696
// `name` is the path of both types being compared. `sub`
@@ -768,10 +768,10 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
768768
path: String,
769769
sub: ty::subst::SubstsRef<'tcx>,
770770
other_path: String,
771-
other_ty: &Ty<'tcx>,
771+
other_ty: Ty<'tcx>,
772772
) -> Option<()> {
773773
for (i, ta) in sub.types().enumerate() {
774-
if &ta == other_ty {
774+
if ta == other_ty {
775775
self.highlight_outer(&mut t1_out, &mut t2_out, path, sub, i, &other_ty);
776776
return Some(());
777777
}
@@ -839,7 +839,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
839839
/// Compares two given types, eliding parts that are the same between them and highlighting
840840
/// relevant differences, and return two representation of those types for highlighted printing.
841841
fn cmp(&self, t1: Ty<'tcx>, t2: Ty<'tcx>) -> (DiagnosticStyledString, DiagnosticStyledString) {
842-
fn equals<'tcx>(a: &Ty<'tcx>, b: &Ty<'tcx>) -> bool {
842+
fn equals<'tcx>(a: Ty<'tcx>, b: Ty<'tcx>) -> bool {
843843
match (&a.sty, &b.sty) {
844844
(a, b) if *a == *b => true,
845845
(&ty::Int(_), &ty::Infer(ty::InferTy::IntVar(_)))
@@ -1099,7 +1099,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
10991099
}
11001100
};
11011101

1102-
let span = cause.span(&self.tcx);
1102+
let span = cause.span(self.tcx);
11031103

11041104
diag.span_label(span, terr.to_string());
11051105
if let Some((sp, msg)) = secondary_span {
@@ -1233,7 +1233,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
12331233
trace, terr
12341234
);
12351235

1236-
let span = trace.cause.span(&self.tcx);
1236+
let span = trace.cause.span(self.tcx);
12371237
let failure_code = trace.cause.as_failure_code(terr);
12381238
let mut diag = match failure_code {
12391239
FailureCode::Error0317(failure_str) => {

src/librustc/infer/error_reporting/need_type_info.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use errors::DiagnosticBuilder;
1111

1212
struct FindLocalByTypeVisitor<'a, 'gcx: 'a + 'tcx, 'tcx: 'a> {
1313
infcx: &'a InferCtxt<'a, 'gcx, 'tcx>,
14-
target_ty: &'a Ty<'tcx>,
14+
target_ty: Ty<'tcx>,
1515
hir_map: &'a hir::map::Map<'gcx>,
1616
found_local_pattern: Option<&'gcx Pat>,
1717
found_arg_pattern: Option<&'gcx Pat>,
@@ -26,7 +26,7 @@ impl<'a, 'gcx, 'tcx> FindLocalByTypeVisitor<'a, 'gcx, 'tcx> {
2626
Some(ty) => {
2727
let ty = self.infcx.resolve_type_vars_if_possible(&ty);
2828
ty.walk().any(|inner_ty| {
29-
inner_ty == *self.target_ty || match (&inner_ty.sty, &self.target_ty.sty) {
29+
inner_ty == self.target_ty || match (&inner_ty.sty, &self.target_ty.sty) {
3030
(&Infer(TyVar(a_vid)), &Infer(TyVar(b_vid))) => {
3131
self.infcx
3232
.type_variables
@@ -68,10 +68,10 @@ impl<'a, 'gcx, 'tcx> Visitor<'gcx> for FindLocalByTypeVisitor<'a, 'gcx, 'tcx> {
6868
impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
6969
pub fn extract_type_name(
7070
&self,
71-
ty: &'a Ty<'tcx>,
71+
ty: Ty<'tcx>,
7272
highlight: Option<ty::print::RegionHighlightMode>,
7373
) -> String {
74-
if let ty::Infer(ty::TyVar(ty_vid)) = (*ty).sty {
74+
if let ty::Infer(ty::TyVar(ty_vid)) = ty.sty {
7575
let ty_vars = self.type_variables.borrow();
7676
if let TypeVariableOrigin::TypeParameterDefinition(_, name) =
7777
*ty_vars.var_origin(ty_vid) {
@@ -102,7 +102,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
102102

103103
let mut local_visitor = FindLocalByTypeVisitor {
104104
infcx: &self,
105-
target_ty: &ty,
105+
target_ty: ty,
106106
hir_map: &self.tcx.hir(),
107107
found_local_pattern: None,
108108
found_arg_pattern: None,

src/librustc/infer/error_reporting/nice_region_error/placeholder_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ impl NiceRegionError<'me, 'gcx, 'tcx> {
193193
);
194194

195195
let mut err = self.tcx().sess.struct_span_err(
196-
cause.span(&self.tcx()),
196+
cause.span(self.tcx()),
197197
&format!(
198198
"implementation of `{}` is not general enough",
199199
self.tcx().def_path_str(trait_def_id),

src/librustc/infer/nll_relate/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ where
267267
fn relate_projection_ty(
268268
&mut self,
269269
projection_ty: ty::ProjectionTy<'tcx>,
270-
value_ty: ty::Ty<'tcx>,
270+
value_ty: Ty<'tcx>,
271271
) -> Ty<'tcx> {
272272
use crate::infer::type_variable::TypeVariableOrigin;
273273
use crate::traits::WhereClause;

src/librustc/middle/exported_symbols.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use rustc_data_structures::stable_hasher::{StableHasher, HashStable,
44
StableHasherResult};
55
use std::cmp;
66
use std::mem;
7-
use crate::ty;
7+
use crate::ty::{self, TyCtxt};
88
use crate::ty::subst::SubstsRef;
99

1010
/// The SymbolExportLevel of a symbols specifies from which kinds of crates
@@ -39,7 +39,7 @@ pub enum ExportedSymbol<'tcx> {
3939

4040
impl<'tcx> ExportedSymbol<'tcx> {
4141
pub fn symbol_name(&self,
42-
tcx: ty::TyCtxt<'_, 'tcx, '_>)
42+
tcx: TyCtxt<'_, 'tcx, '_>)
4343
-> ty::SymbolName {
4444
match *self {
4545
ExportedSymbol::NonGeneric(def_id) => {
@@ -55,7 +55,7 @@ impl<'tcx> ExportedSymbol<'tcx> {
5555
}
5656

5757
pub fn compare_stable(&self,
58-
tcx: ty::TyCtxt<'_, 'tcx, '_>,
58+
tcx: TyCtxt<'_, 'tcx, '_>,
5959
other: &ExportedSymbol<'tcx>)
6060
-> cmp::Ordering {
6161
match *self {
@@ -92,7 +92,7 @@ impl<'tcx> ExportedSymbol<'tcx> {
9292
}
9393
}
9494

95-
pub fn metadata_symbol_name(tcx: ty::TyCtxt<'_, '_, '_>) -> String {
95+
pub fn metadata_symbol_name(tcx: TyCtxt<'_, '_, '_>) -> String {
9696
format!("rust_metadata_{}_{}",
9797
tcx.original_crate_name(LOCAL_CRATE),
9898
tcx.crate_disambiguator(LOCAL_CRATE).to_fingerprint().to_hex())

src/librustc/mir/mono.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub enum MonoItem<'tcx> {
1818
}
1919

2020
impl<'tcx> MonoItem<'tcx> {
21-
pub fn size_estimate<'a>(&self, tcx: &TyCtxt<'a, 'tcx, 'tcx>) -> usize {
21+
pub fn size_estimate<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>) -> usize {
2222
match *self {
2323
MonoItem::Fn(instance) => {
2424
// Estimate the size of a function based on how many statements
@@ -144,7 +144,7 @@ impl<'tcx> CodegenUnit<'tcx> {
144144
base_n::encode(hash, base_n::CASE_INSENSITIVE)
145145
}
146146

147-
pub fn estimate_size<'a>(&mut self, tcx: &TyCtxt<'a, 'tcx, 'tcx>) {
147+
pub fn estimate_size<'a>(&mut self, tcx: TyCtxt<'a, 'tcx, 'tcx>) {
148148
// Estimate the size of a codegen unit as (approximately) the number of MIR
149149
// statements it corresponds to.
150150
self.size_estimate = Some(self.items.keys().map(|mi| mi.size_estimate(tcx)).sum());

src/librustc/mir/visit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ macro_rules! make_mir_visitor {
198198
}
199199

200200
fn visit_ty(&mut self,
201-
ty: & $($mutability)? Ty<'tcx>,
201+
ty: $(& $mutability)? Ty<'tcx>,
202202
_: TyContext) {
203203
self.super_ty(ty);
204204
}
@@ -864,7 +864,7 @@ macro_rules! make_mir_visitor {
864864
self.visit_ty(& $($mutability)? ty.inferred_ty, TyContext::UserTy(ty.span));
865865
}
866866

867-
fn super_ty(&mut self, _ty: & $($mutability)? Ty<'tcx>) {
867+
fn super_ty(&mut self, _ty: $(& $mutability)? Ty<'tcx>) {
868868
}
869869

870870
fn super_region(&mut self, _region: & $($mutability)? ty::Region<'tcx>) {

src/librustc/traits/auto_trait.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ pub struct AutoTraitInfo<'cx> {
4949
}
5050

5151
pub struct AutoTraitFinder<'a, 'tcx: 'a> {
52-
tcx: &'a TyCtxt<'a, 'tcx, 'tcx>,
52+
tcx: TyCtxt<'a, 'tcx, 'tcx>,
5353
}
5454

5555
impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx> {
56-
pub fn new(tcx: &'a TyCtxt<'a, 'tcx, 'tcx>) -> Self {
56+
pub fn new(tcx: TyCtxt<'a, 'tcx, 'tcx>) -> Self {
5757
AutoTraitFinder { tcx }
5858
}
5959

@@ -291,7 +291,7 @@ impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx> {
291291
infcx: &InferCtxt<'b, 'tcx, 'c>,
292292
ty_did: DefId,
293293
trait_did: DefId,
294-
ty: ty::Ty<'c>,
294+
ty: Ty<'c>,
295295
param_env: ty::ParamEnv<'c>,
296296
user_env: ty::ParamEnv<'c>,
297297
fresh_preds: &mut FxHashSet<ty::Predicate<'c>>,
@@ -661,7 +661,7 @@ impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx> {
661661
T: Iterator<Item = Obligation<'cx, ty::Predicate<'cx>>>,
662662
>(
663663
&self,
664-
ty: ty::Ty<'_>,
664+
ty: Ty<'_>,
665665
nested: T,
666666
computed_preds: &'b mut FxHashSet<ty::Predicate<'cx>>,
667667
fresh_preds: &'b mut FxHashSet<ty::Predicate<'cx>>,

src/librustc/traits/error_reporting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
12421242
found: ty::PolyTraitRef<'tcx>)
12431243
-> DiagnosticBuilder<'tcx>
12441244
{
1245-
fn build_fn_sig_string<'a, 'gcx, 'tcx>(tcx: ty::TyCtxt<'a, 'gcx, 'tcx>,
1245+
fn build_fn_sig_string<'a, 'gcx, 'tcx>(tcx: TyCtxt<'a, 'gcx, 'tcx>,
12461246
trait_ref: &ty::TraitRef<'tcx>) -> String {
12471247
let inputs = trait_ref.substs.type_at(1);
12481248
let sig = if let ty::Tuple(inputs) = inputs.sty {

src/librustc/traits/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ pub struct ObligationCause<'tcx> {
138138
}
139139

140140
impl<'tcx> ObligationCause<'tcx> {
141-
pub fn span<'a, 'gcx>(&self, tcx: &TyCtxt<'a, 'gcx, 'tcx>) -> Span {
141+
pub fn span<'a, 'gcx>(&self, tcx: TyCtxt<'a, 'gcx, 'tcx>) -> Span {
142142
match self.code {
143143
ObligationCauseCode::CompareImplMethodObligation { .. } |
144144
ObligationCauseCode::MainFunctionType |

src/librustc/traits/structural_impls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use smallvec::SmallVec;
33
use crate::traits;
44
use crate::traits::project::Normalized;
55
use crate::ty::fold::{TypeFoldable, TypeFolder, TypeVisitor};
6-
use crate::ty::{self, Lift, TyCtxt};
6+
use crate::ty::{self, Lift, Ty, TyCtxt};
77
use syntax::symbol::InternedString;
88

99
use std::fmt;
@@ -311,7 +311,7 @@ impl<'tcx> TypeVisitor<'tcx> for BoundNamesCollector {
311311
result
312312
}
313313

314-
fn visit_ty(&mut self, t: ty::Ty<'tcx>) -> bool {
314+
fn visit_ty(&mut self, t: Ty<'tcx>) -> bool {
315315
use syntax::symbol::Symbol;
316316

317317
match t.sty {

src/librustc/ty/fold.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ struct BoundVarReplacer<'a, 'gcx: 'a + 'tcx, 'tcx: 'a> {
421421
current_index: ty::DebruijnIndex,
422422

423423
fld_r: &'a mut (dyn FnMut(ty::BoundRegion) -> ty::Region<'tcx> + 'a),
424-
fld_t: &'a mut (dyn FnMut(ty::BoundTy) -> ty::Ty<'tcx> + 'a),
424+
fld_t: &'a mut (dyn FnMut(ty::BoundTy) -> Ty<'tcx> + 'a),
425425
}
426426

427427
impl<'a, 'gcx, 'tcx> BoundVarReplacer<'a, 'gcx, 'tcx> {
@@ -431,7 +431,7 @@ impl<'a, 'gcx, 'tcx> BoundVarReplacer<'a, 'gcx, 'tcx> {
431431
fld_t: &'a mut G
432432
) -> Self
433433
where F: FnMut(ty::BoundRegion) -> ty::Region<'tcx>,
434-
G: FnMut(ty::BoundTy) -> ty::Ty<'tcx>
434+
G: FnMut(ty::BoundTy) -> Ty<'tcx>
435435
{
436436
BoundVarReplacer {
437437
tcx,
@@ -533,7 +533,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
533533
mut fld_t: G
534534
) -> (T, BTreeMap<ty::BoundRegion, ty::Region<'tcx>>)
535535
where F: FnMut(ty::BoundRegion) -> ty::Region<'tcx>,
536-
G: FnMut(ty::BoundTy) -> ty::Ty<'tcx>,
536+
G: FnMut(ty::BoundTy) -> Ty<'tcx>,
537537
T: TypeFoldable<'tcx>
538538
{
539539
use rustc_data_structures::fx::FxHashMap;
@@ -568,7 +568,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
568568
fld_t: G
569569
) -> (T, BTreeMap<ty::BoundRegion, ty::Region<'tcx>>)
570570
where F: FnMut(ty::BoundRegion) -> ty::Region<'tcx>,
571-
G: FnMut(ty::BoundTy) -> ty::Ty<'tcx>,
571+
G: FnMut(ty::BoundTy) -> Ty<'tcx>,
572572
T: TypeFoldable<'tcx>
573573
{
574574
self.replace_escaping_bound_vars(value.skip_binder(), fld_r, fld_t)
@@ -710,7 +710,7 @@ impl TypeFolder<'gcx, 'tcx> for Shifter<'a, 'gcx, 'tcx> {
710710
}
711711
}
712712

713-
fn fold_ty(&mut self, ty: ty::Ty<'tcx>) -> ty::Ty<'tcx> {
713+
fn fold_ty(&mut self, ty: Ty<'tcx>) -> Ty<'tcx> {
714714
match ty.sty {
715715
ty::Bound(debruijn, bound_ty) => {
716716
if self.amount == 0 || debruijn < self.current_index {

src/librustc/ty/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl AssociatedItem {
212212
}
213213
}
214214

215-
pub fn signature<'a, 'tcx>(&self, tcx: &TyCtxt<'a, 'tcx, 'tcx>) -> String {
215+
pub fn signature<'a, 'tcx>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>) -> String {
216216
match self.kind {
217217
ty::AssociatedKind::Method => {
218218
// We skip the binder here because the binder would deanonymize all

src/librustc/ty/query/on_disk_cache.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::rustc_serialize::{Decodable, Decoder, Encodable, Encoder, opaque,
99
SpecializedDecoder, SpecializedEncoder,
1010
UseSpecializedDecodable, UseSpecializedEncodable};
1111
use crate::session::{CrateDisambiguator, Session};
12-
use crate::ty;
12+
use crate::ty::{self, Ty};
1313
use crate::ty::codec::{self as ty_codec, TyDecoder, TyEncoder};
1414
use crate::ty::context::TyCtxt;
1515
use crate::util::common::{time, time_ext};
@@ -545,8 +545,8 @@ impl<'a, 'tcx: 'a, 'x> ty_codec::TyDecoder<'a, 'tcx> for CacheDecoder<'a, 'tcx,
545545
fn cached_ty_for_shorthand<F>(&mut self,
546546
shorthand: usize,
547547
or_insert_with: F)
548-
-> Result<ty::Ty<'tcx>, Self::Error>
549-
where F: FnOnce(&mut Self) -> Result<ty::Ty<'tcx>, Self::Error>
548+
-> Result<Ty<'tcx>, Self::Error>
549+
where F: FnOnce(&mut Self) -> Result<Ty<'tcx>, Self::Error>
550550
{
551551
let tcx = self.tcx();
552552

@@ -751,7 +751,7 @@ struct CacheEncoder<'enc, 'a, 'tcx, E>
751751
{
752752
tcx: TyCtxt<'a, 'tcx, 'tcx>,
753753
encoder: &'enc mut E,
754-
type_shorthands: FxHashMap<ty::Ty<'tcx>, usize>,
754+
type_shorthands: FxHashMap<Ty<'tcx>, usize>,
755755
predicate_shorthands: FxHashMap<ty::Predicate<'tcx>, usize>,
756756
expn_info_shorthands: FxHashMap<Mark, AbsoluteBytePos>,
757757
interpret_allocs: FxHashMap<interpret::AllocId, usize>,
@@ -881,11 +881,11 @@ impl<'enc, 'a, 'tcx, E> SpecializedEncoder<CrateNum> for CacheEncoder<'enc, 'a,
881881
}
882882
}
883883

884-
impl<'enc, 'a, 'tcx, E> SpecializedEncoder<ty::Ty<'tcx>> for CacheEncoder<'enc, 'a, 'tcx, E>
884+
impl<'enc, 'a, 'tcx, E> SpecializedEncoder<Ty<'tcx>> for CacheEncoder<'enc, 'a, 'tcx, E>
885885
where E: 'enc + ty_codec::TyEncoder
886886
{
887887
#[inline]
888-
fn specialized_encode(&mut self, ty: &ty::Ty<'tcx>) -> Result<(), Self::Error> {
888+
fn specialized_encode(&mut self, ty: &Ty<'tcx>) -> Result<(), Self::Error> {
889889
ty_codec::encode_with_shorthand(self, ty,
890890
|encoder| &mut encoder.type_shorthands)
891891
}

src/librustc_mir/borrow_check/nll/constraint_generation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl<'cg, 'cx, 'gcx, 'tcx> Visitor<'tcx> for ConstraintGeneration<'cg, 'cx, 'gcx
6464

6565
/// We sometimes have `ty` within an rvalue, or within a
6666
/// call. Make them live at the location where they appear.
67-
fn visit_ty(&mut self, ty: &ty::Ty<'tcx>, ty_context: TyContext) {
67+
fn visit_ty(&mut self, ty: ty::Ty<'tcx>, ty_context: TyContext) {
6868
match ty_context {
6969
TyContext::ReturnTy(SourceInfo { span, .. })
7070
| TyContext::YieldTy(SourceInfo { span, .. })
@@ -77,7 +77,7 @@ impl<'cg, 'cx, 'gcx, 'tcx> Visitor<'tcx> for ConstraintGeneration<'cg, 'cx, 'gcx
7777
);
7878
}
7979
TyContext::Location(location) => {
80-
self.add_regular_live_constraint(*ty, location);
80+
self.add_regular_live_constraint(ty, location);
8181
}
8282
}
8383

src/librustc_mir/monomorphize/partitioning.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ pub fn partition<'a, 'tcx, I>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
228228
// functions and statics defined in the local crate.
229229
let mut initial_partitioning = place_root_mono_items(tcx, mono_items);
230230

231-
initial_partitioning.codegen_units.iter_mut().for_each(|cgu| cgu.estimate_size(&tcx));
231+
initial_partitioning.codegen_units.iter_mut().for_each(|cgu| cgu.estimate_size(tcx));
232232

233233
debug_dump(tcx, "INITIAL PARTITIONING:", initial_partitioning.codegen_units.iter());
234234

@@ -247,7 +247,7 @@ pub fn partition<'a, 'tcx, I>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
247247
let mut post_inlining = place_inlined_mono_items(initial_partitioning,
248248
inlining_map);
249249

250-
post_inlining.codegen_units.iter_mut().for_each(|cgu| cgu.estimate_size(&tcx));
250+
post_inlining.codegen_units.iter_mut().for_each(|cgu| cgu.estimate_size(tcx));
251251

252252
debug_dump(tcx, "POST INLINING:", post_inlining.codegen_units.iter());
253253

0 commit comments

Comments
 (0)