diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-08 03:39:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-08 03:39:43 +0100 |
| commit | 56f830e292f3af241b65fc2bc08279a0b6d9856a (patch) | |
| tree | 883bd1ca3e3d53bca2f2694749b553b36208959b /src/librustc_codegen_ssa | |
| parent | de17464b14e503edca6625daa9cd4c338ffafee2 (diff) | |
| parent | 34a45a5309dad66025df506a388fbdf1da9afa40 (diff) | |
| download | rust-56f830e292f3af241b65fc2bc08279a0b6d9856a.tar.gz rust-56f830e292f3af241b65fc2bc08279a0b6d9856a.zip | |
Rollup merge of #66325 - BartMassey:master, r=joshtriplett
Change unused_labels from allow to warn Fixes #66324, making the unused_labels lint warn instead of allow by default. I'm told @rust-lang/lang will need to review this, and perhaps will want to do a crater run.
Diffstat (limited to 'src/librustc_codegen_ssa')
| -rw-r--r-- | src/librustc_codegen_ssa/mir/block.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_ssa/mir/block.rs b/src/librustc_codegen_ssa/mir/block.rs index e68349660ba..8f954a5629c 100644 --- a/src/librustc_codegen_ssa/mir/block.rs +++ b/src/librustc_codegen_ssa/mir/block.rs @@ -718,7 +718,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { 'descend_newtypes: while !op.layout.ty.is_unsafe_ptr() && !op.layout.ty.is_region_ptr() { - 'iter_fields: for i in 0..op.layout.fields.count() { + for i in 0..op.layout.fields.count() { let field = op.extract_field(&mut bx, i); if !field.layout.is_zst() { // we found the one non-zero-sized field that is allowed |
