diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-01-31 19:55:34 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-02-09 20:07:38 +0100 |
| commit | 6c2ee885e635a411946329e974d6be3d94d3b715 (patch) | |
| tree | 89d664a13c30f9340e1ee9bccfced13a75b0d61d /compiler/rustc_mir_build/src | |
| parent | bf242bb1199e25ca2274df5c4114e0c9436b74e9 (diff) | |
| download | rust-6c2ee885e635a411946329e974d6be3d94d3b715.tar.gz rust-6c2ee885e635a411946329e974d6be3d94d3b715.zip | |
Ensure that queries only return Copy types.
Diffstat (limited to 'compiler/rustc_mir_build/src')
| -rw-r--r-- | compiler/rustc_mir_build/src/build/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_build/src/build/mod.rs b/compiler/rustc_mir_build/src/build/mod.rs index e2a42de71b9..88d994e32fe 100644 --- a/compiler/rustc_mir_build/src/build/mod.rs +++ b/compiler/rustc_mir_build/src/build/mod.rs @@ -935,7 +935,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> { }; self.var_debug_info.push(VarDebugInfo { - name: sym, + name: *sym, source_info: SourceInfo::outermost(tcx_hir.span(var_id)), value: VarDebugInfoContents::Place(Place { local: ty::CAPTURE_STRUCT_LOCAL, |
