diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-08-16 17:31:00 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-08-17 17:02:04 +0000 |
| commit | 933b618360ae4b0e952ac2c8cc89bc0db9edec59 (patch) | |
| tree | 3eeefa71c5667c9e2e03aeb4a64309c83fb2a7c1 /compiler/rustc_const_eval/src/transform | |
| parent | bd138e2ae11050ea9ca7a187345a1b606697a8db (diff) | |
| download | rust-933b618360ae4b0e952ac2c8cc89bc0db9edec59.tar.gz rust-933b618360ae4b0e952ac2c8cc89bc0db9edec59.zip | |
Revert "Implement references VarDebugInfo."
This reverts commit 2ec007191348ef7cc13eb55e44e007b02cf75cf3.
Diffstat (limited to 'compiler/rustc_const_eval/src/transform')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/validate.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_const_eval/src/transform/validate.rs b/compiler/rustc_const_eval/src/transform/validate.rs index 83004492c8b..33e73ad6653 100644 --- a/compiler/rustc_const_eval/src/transform/validate.rs +++ b/compiler/rustc_const_eval/src/transform/validate.rs @@ -701,12 +701,6 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> { VarDebugInfoContents::Const(_) => {} VarDebugInfoContents::Place(place) => { check_place(self, place); - if debuginfo.references != 0 && place.projection.last() == Some(&PlaceElem::Deref) { - self.fail( - START_BLOCK.start_location(), - format!("debuginfo {debuginfo:?}, has both ref and deref"), - ); - } } VarDebugInfoContents::Composite { ty, ref fragments } => { for f in fragments { |
