Enable 2021 compatibility lints for all in-tree code
This just applies the suggested fixes from the compatibility warnings, leaving any that are in practice spurious in. This is primarily intended to provide a starting point to identify possible fixes to the migrations (e.g., by avoiding spurious warnings). A secondary commit cleans these up where they are false positives (as is true in many of the cases).
This commit is contained in:
parent
5e1a614b53
commit
45b989a033
12 changed files with 52 additions and 34 deletions
|
@ -1192,6 +1192,7 @@ fn compare_type_predicate_entailment<'tcx>(
|
|||
normalize_cause.clone(),
|
||||
);
|
||||
tcx.infer_ctxt().enter(|infcx| {
|
||||
let _ = &impl_ty_own_bounds;
|
||||
let inh = Inherited::new(infcx, impl_ty.def_id.expect_local());
|
||||
let infcx = &inh.infcx;
|
||||
|
||||
|
|
|
@ -441,6 +441,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
// this creates one big transaction so that all type variables etc
|
||||
// that we create during the probe process are removed later
|
||||
self.probe(|_| {
|
||||
let _ = &steps;
|
||||
let mut probe_cx = ProbeContext::new(
|
||||
self,
|
||||
span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue