Warn against redundant use<...>
This commit is contained in:
parent
f3fb727b08
commit
1529c661e4
10 changed files with 276 additions and 118 deletions
|
@ -486,7 +486,7 @@ fn sanity_check_found_hidden_type<'tcx>(
|
|||
fn check_opaque_precise_captures<'tcx>(tcx: TyCtxt<'tcx>, opaque_def_id: LocalDefId) {
|
||||
let hir::OpaqueTy { precise_capturing_args, .. } =
|
||||
*tcx.hir_node_by_def_id(opaque_def_id).expect_item().expect_opaque_ty();
|
||||
let Some(precise_capturing_args) = precise_capturing_args else {
|
||||
let Some((precise_capturing_args, _)) = precise_capturing_args else {
|
||||
// No precise capturing args; nothing to validate
|
||||
return;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue