diff options
| author | DrMeepster <19316085+DrMeepster@users.noreply.github.com> | 2023-03-11 16:01:25 -0800 |
|---|---|---|
| committer | DrMeepster <19316085+DrMeepster@users.noreply.github.com> | 2023-04-21 02:14:03 -0700 |
| commit | 61f23e0003af417f0103ffe01718a3198ef9451e (patch) | |
| tree | bf0908be0b9e66edaf653b5fb71b50d67c1cb818 /compiler/rustc_const_eval | |
| parent | 511e457c4ba88097ee46ef07b7ef80ce4dd4a3c5 (diff) | |
| download | rust-61f23e0003af417f0103ffe01718a3198ef9451e.tar.gz rust-61f23e0003af417f0103ffe01718a3198ef9451e.zip | |
intern offsetof fields
Diffstat (limited to 'compiler/rustc_const_eval')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/validate.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/validate.rs b/compiler/rustc_const_eval/src/transform/validate.rs index 119fe9801e4..9ab2b13d9d1 100644 --- a/compiler/rustc_const_eval/src/transform/validate.rs +++ b/compiler/rustc_const_eval/src/transform/validate.rs @@ -719,7 +719,7 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> { let mut current_ty = *container; - for &field in fields { + for field in fields.iter() { match current_ty.kind() { ty::Tuple(fields) => { let Some(&f_ty) = fields.get(field.as_usize()) else { |
