Skip to content

Commit 01e9d09

Browse files
authoredMay 6, 2021
Rollup merge of #84987 - lcnr:nits, r=Mark-Simulacrum
small nits
2 parents 3c5da6e + b981141 commit 01e9d09

File tree

3 files changed

+0
-8
lines changed
  • compiler
    • rustc_infer/src/infer
    • rustc_trait_selection/src/traits/select

3 files changed

+0
-8
lines changed
 

‎compiler/rustc_infer/src/infer/error_reporting/mod.rs

-3
Original file line numberDiff line numberDiff line change
@@ -2398,9 +2398,6 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
23982398
self.tcx.associated_item(def_id).ident
23992399
),
24002400
infer::EarlyBoundRegion(_, name) => format!(" for lifetime parameter `{}`", name),
2401-
infer::BoundRegionInCoherence(name) => {
2402-
format!(" for lifetime parameter `{}` in coherence check", name)
2403-
}
24042401
infer::UpvarRegion(ref upvar_id, _) => {
24052402
let var_name = self.tcx.hir().name(upvar_id.var_path.hir_id);
24062403
format!(" for capture of `{}` by closure", var_name)

‎compiler/rustc_infer/src/infer/mod.rs

-3
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,6 @@ pub enum RegionVariableOrigin {
453453

454454
UpvarRegion(ty::UpvarId, Span),
455455

456-
BoundRegionInCoherence(Symbol),
457-
458456
/// This origin is used for the inference variables that we create
459457
/// during NLL region processing.
460458
Nll(NllRegionVariableOrigin),
@@ -1749,7 +1747,6 @@ impl RegionVariableOrigin {
17491747
| EarlyBoundRegion(a, ..)
17501748
| LateBoundRegion(a, ..)
17511749
| UpvarRegion(_, a) => a,
1752-
BoundRegionInCoherence(_) => rustc_span::DUMMY_SP,
17531750
Nll(..) => bug!("NLL variable used with `span`"),
17541751
}
17551752
}

‎compiler/rustc_trait_selection/src/traits/select/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1044,8 +1044,6 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
10441044
}
10451045

10461046
/// Returns `true` if the global caches can be used.
1047-
/// Do note that if the type itself is not in the
1048-
/// global tcx, the local caches will be used.
10491047
fn can_use_global_caches(&self, param_env: ty::ParamEnv<'tcx>) -> bool {
10501048
// If there are any inference variables in the `ParamEnv`, then we
10511049
// always use a cache local to this particular scope. Otherwise, we

0 commit comments

Comments
 (0)