diff options
| author | Michael Goulet <michael@errs.io> | 2022-05-27 20:03:57 -0700 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-05-28 12:16:05 -0700 |
| commit | 46389159403ca0973bf88a4c153a2707cdb257d2 (patch) | |
| tree | e840b90c6d65e0b5f6d513eb376b46dd3c320cd4 /compiler/rustc_mir_transform/src/coverage | |
| parent | f05a92d15896604faf30d33e73c7d40b98b2ec9c (diff) | |
| download | rust-46389159403ca0973bf88a4c153a2707cdb257d2.tar.gz rust-46389159403ca0973bf88a4c153a2707cdb257d2.zip | |
Make TyCtxt implement Interner, make HashStable generic and move to rustc_type_ir
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage')
| -rw-r--r-- | compiler/rustc_mir_transform/src/coverage/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_transform/src/coverage/tests.rs b/compiler/rustc_mir_transform/src/coverage/tests.rs index 41f004b0c00..213bb6608e1 100644 --- a/compiler/rustc_mir_transform/src/coverage/tests.rs +++ b/compiler/rustc_mir_transform/src/coverage/tests.rs @@ -37,7 +37,7 @@ use rustc_data_structures::graph::WithSuccessors; use rustc_index::vec::{Idx, IndexVec}; use rustc_middle::mir::coverage::CoverageKind; use rustc_middle::mir::*; -use rustc_middle::ty::{self, Ty}; +use rustc_middle::ty::{self, Ty, TyCtxt}; use rustc_span::{self, BytePos, Pos, Span, DUMMY_SP}; // All `TEMP_BLOCK` targets should be replaced before calling `to_body() -> mir::Body`. @@ -56,7 +56,7 @@ impl<'tcx> MockBlocks<'tcx> { blocks: IndexVec::new(), dummy_place: Place { local: RETURN_PLACE, projection: ty::List::empty() }, next_local: 0, - bool_ty: ty::leak_bool_ty_for_unit_testing(), + bool_ty: TyCtxt::BOOL_TY_FOR_UNIT_TESTING, } } |
