about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-19 22:55:15 +0000
committerbors <bors@rust-lang.org>2023-11-19 22:55:15 +0000
commit4f3da903a43f22ea33d2ca4435a24b42fc1f842a (patch)
treee417fea4f9a13eff86073e778c2d7f5144d7aa8b /compiler/rustc_mir_transform/src
parent9a66e4471f71283fd54d80ef8147630d34756332 (diff)
parent4506681e2f53e17df0d74cd230948dc40f7d0e8d (diff)
downloadrust-4f3da903a43f22ea33d2ca4435a24b42fc1f842a.tar.gz
rust-4f3da903a43f22ea33d2ca4435a24b42fc1f842a.zip
Auto merge of #116828 - compiler-errors:nightlyify-rustc_type_ir, r=jackh726
Begin to abstract `rustc_type_ir` for rust-analyzer

This adds the "nightly" feature which is used by the compiler, and falls back to more simple implementations when that is not active.

r? `@lcnr` or `@jackh726`
Diffstat (limited to 'compiler/rustc_mir_transform/src')
-rw-r--r--compiler/rustc_mir_transform/src/gvn.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/gvn.rs b/compiler/rustc_mir_transform/src/gvn.rs
index 98a03618286..735960f31b3 100644
--- a/compiler/rustc_mir_transform/src/gvn.rs
+++ b/compiler/rustc_mir_transform/src/gvn.rs
@@ -88,8 +88,8 @@ use rustc_data_structures::fx::{FxHashMap, FxIndexSet};
 use rustc_data_structures::graph::dominators::Dominators;
 use rustc_hir::def::DefKind;
 use rustc_index::bit_set::BitSet;
+use rustc_index::newtype_index;
 use rustc_index::IndexVec;
-use rustc_macros::newtype_index;
 use rustc_middle::mir::interpret::GlobalAlloc;
 use rustc_middle::mir::visit::*;
 use rustc_middle::mir::*;