Skip to content

Commit 8192288

Browse files
committed
Replace weird handling of edge case with panic
1 parent 4d67f5b commit 8192288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,8 +1704,8 @@ fn clean_ty<'tcx>(this: Ty<'tcx>, cx: &mut DocContext<'tcx>, def_id: Option<DefI
17041704
ImplTrait(bounds)
17051705
}
17061706

1707-
ty::Closure(..) | ty::Generator(..) => Tuple(vec![]), // FIXME(pcwalton)
1708-
1707+
ty::Closure(..) => panic!("Closure"),
1708+
ty::Generator(..) => panic!("Generator"),
17091709
ty::Bound(..) => panic!("Bound"),
17101710
ty::Placeholder(..) => panic!("Placeholder"),
17111711
ty::GeneratorWitness(..) => panic!("GeneratorWitness"),

0 commit comments

Comments
 (0)