diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-09 06:02:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-09 06:02:41 +0100 |
| commit | bbf6363edf4fb0e40f0ec35b7e9ffa1932489bb9 (patch) | |
| tree | 0e98d1e14b212d4512eafe01751e93fcc6ba2e5a /compiler/rustc_middle | |
| parent | dd0f586b0a12aa388eacda3ebcb429a7aa9a9f24 (diff) | |
| parent | c64f859521d9f86c96144f487201055b2146e19f (diff) | |
| download | rust-bbf6363edf4fb0e40f0ec35b7e9ffa1932489bb9.tar.gz rust-bbf6363edf4fb0e40f0ec35b7e9ffa1932489bb9.zip | |
Rollup merge of #134875 - compiler-errors:const-destruct-old-solver, r=lcnr
Implement `const Destruct` in old solver Self-explanatory. Not totally settled that this is the best structure for built-in trait impls for effect goals in the new solver, but it's almost certainly the simplest. r? lcnr or re-roll
Diffstat (limited to 'compiler/rustc_middle')
| -rw-r--r-- | compiler/rustc_middle/src/ty/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs index 5e929fbec0b..2d69386176b 100644 --- a/compiler/rustc_middle/src/ty/mod.rs +++ b/compiler/rustc_middle/src/ty/mod.rs @@ -1417,8 +1417,8 @@ impl Hash for FieldDef { impl<'tcx> FieldDef { /// Returns the type of this field. The resulting type is not normalized. The `arg` is /// typically obtained via the second field of [`TyKind::Adt`]. - pub fn ty(&self, tcx: TyCtxt<'tcx>, arg: GenericArgsRef<'tcx>) -> Ty<'tcx> { - tcx.type_of(self.did).instantiate(tcx, arg) + pub fn ty(&self, tcx: TyCtxt<'tcx>, args: GenericArgsRef<'tcx>) -> Ty<'tcx> { + tcx.type_of(self.did).instantiate(tcx, args) } /// Computes the `Ident` of this variant by looking up the `Span` |
