Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CheckLoopVisitor: also visit closure arguments
This turns an ICE on this code: fn main() { |_: [u8; break]| (); } from 'assertion failed: self.tcx.sess.err_count() > 0', librustc_typeck/check/mod.rs to librustc_mir/hair/cx/expr.rs:543: invalid loop id for break: not inside loop scope which is at a later stage during compilation and most importantly fixes of bug rust-lang#50576 will fix this as well.
- Loading branch information