Remove implicit Continue type

This commit is contained in:
LeSeulArtichaut
2020-10-25 11:50:56 +01:00
parent 24e1a7e656
commit 9433eb83fe
30 changed files with 129 additions and 135 deletions

View File

@@ -571,15 +571,15 @@ pub fn walk_abstract_const<'tcx, F>(
tcx: TyCtxt<'tcx>,
ct: AbstractConst<'tcx>,
mut f: F,
) -> ControlFlow<(), ()>
) -> ControlFlow<()>
where
F: FnMut(Node<'tcx>) -> ControlFlow<(), ()>,
F: FnMut(Node<'tcx>) -> ControlFlow<()>,
{
fn recurse<'tcx>(
tcx: TyCtxt<'tcx>,
ct: AbstractConst<'tcx>,
f: &mut dyn FnMut(Node<'tcx>) -> ControlFlow<(), ()>,
) -> ControlFlow<(), ()> {
f: &mut dyn FnMut(Node<'tcx>) -> ControlFlow<()>,
) -> ControlFlow<()> {
let root = ct.root();
f(root)?;
match root {