Skip to content

Commit 4ce7628

Browse files
committed
clean-up
1 parent 961ea1c commit 4ce7628

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clippy_utils/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2490,7 +2490,7 @@ pub enum DefinedTy<'tcx> {
24902490
/// in the context of its definition site. We also track the `def_id` of its
24912491
/// definition site.
24922492
///
2493-
/// WARNING: As the `ty` in in the scope of the definition, not of the function
2493+
/// WARNING: As the `ty` is in the scope of the definition, not of the function
24942494
/// using it, you must be very careful with how you use it. Using it in the wrong
24952495
/// scope easily results in ICEs.
24962496
Mir {
@@ -2719,7 +2719,6 @@ pub fn expr_use_ctxt<'tcx>(cx: &LateContext<'tcx>, e: &Expr<'tcx>) -> ExprUseCtx
27192719
moved_before_use,
27202720
same_ctxt,
27212721
},
2722-
Some(ControlFlow::Break(_)) => unreachable!("type of node is ControlFlow<!>"),
27232722
None => ExprUseCtxt {
27242723
node: Node::Crate(cx.tcx.hir_root_module()),
27252724
child_id: HirId::INVALID,

0 commit comments

Comments
 (0)