diff options
| author | Folkert <folkert@folkertdev.nl> | 2024-07-18 12:08:23 +0200 |
|---|---|---|
| committer | Folkert <folkert@folkertdev.nl> | 2024-07-18 12:42:43 +0200 |
| commit | 6b6b8422bafe310b911832119cbcf4d93f46871e (patch) | |
| tree | 4c31edf258c70a89f9d35bdda687509fc0420a54 /compiler/rustc_hir_analysis/src | |
| parent | 7b6373496107807327094ec990d317b98e34fd63 (diff) | |
| download | rust-6b6b8422bafe310b911832119cbcf4d93f46871e.tar.gz rust-6b6b8422bafe310b911832119cbcf4d93f46871e.zip | |
remove cmse validation from rustc_codegen_ssa
it was moved to hir_analysis in the previous commit
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check/check.rs | 7 | ||||
| -rw-r--r-- | compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs | 6 |
2 files changed, 4 insertions, 9 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/check.rs b/compiler/rustc_hir_analysis/src/check/check.rs index aa302e4c25f..bf8ef18c04f 100644 --- a/compiler/rustc_hir_analysis/src/check/check.rs +++ b/compiler/rustc_hir_analysis/src/check/check.rs @@ -1287,10 +1287,9 @@ pub(super) fn check_transparent<'tcx>(tcx: TyCtxt<'tcx>, adt: ty::AdtDef<'tcx>) (span, trivial, check_non_exhaustive(tcx, ty).break_value()) }); - let non_trivial_fields = - field_infos.clone().filter_map( - |(span, trivial, _non_exhaustive)| if !trivial { Some(span) } else { None }, - ); + let non_trivial_fields = field_infos + .clone() + .filter_map(|(span, trivial, _non_exhaustive)| if !trivial { Some(span) } else { None }); let non_trivial_count = non_trivial_fields.clone().count(); if non_trivial_count >= 2 { bad_non_zero_sized_fields( diff --git a/compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs b/compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs index 5a98e4d79bb..c118181780a 100644 --- a/compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs +++ b/compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs @@ -1749,11 +1749,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ { generic_segments.iter().map(|GenericPathSegment(_, index)| index).collect(); let _ = self.prohibit_generic_args( path.segments.iter().enumerate().filter_map(|(index, seg)| { - if !indices.contains(&index) { - Some(seg) - } else { - None - } + if !indices.contains(&index) { Some(seg) } else { None } }), GenericsArgsErrExtend::DefVariant, ); |
