Skip to content

Commit 307dcb8

Browse files
committed
Route mk_graph stable_mir imports through compat module
1 parent e10af81 commit 307dcb8

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/mk_graph/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use std::collections::HashMap;
44

5-
extern crate stable_mir;
5+
use crate::compat::stable_mir;
66
use stable_mir::mir::{
77
BorrowKind, ConstOperand, Mutability, NonDivergingIntrinsic, Operand, Rvalue, Statement,
88
StatementKind, Terminator, TerminatorKind,

src/mk_graph/index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use std::collections::HashMap;
44

5-
extern crate stable_mir;
5+
use crate::compat::stable_mir;
66
use stable_mir::abi::{FieldsShape, LayoutShape};
77
use stable_mir::mir::alloc::GlobalAlloc;
88
use stable_mir::ty::{IndexedVal, Ty};

src/mk_graph/output/d2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! D2 diagram format output for MIR graphs.
22
3-
extern crate stable_mir;
3+
use crate::compat::stable_mir;
44
use stable_mir::mir::TerminatorKind;
55

66
use crate::printer::SmirJson;

src/mk_graph/output/dot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::collections::HashSet;
44

55
use dot_writer::{Attributes, Color, DotWriter, Scope, Shape, Style};
66

7-
extern crate stable_mir;
7+
use crate::compat::stable_mir;
88
use stable_mir::mir::{BasicBlock, ConstOperand, Operand, TerminatorKind, UnwindAction};
99

1010
use crate::printer::SmirJson;

src/mk_graph/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use std::hash::{DefaultHasher, Hash, Hasher};
44

5-
extern crate stable_mir;
5+
use crate::compat::stable_mir;
66
use stable_mir::mir::{
77
AggregateKind, BorrowKind, ConstOperand, Mutability, NonDivergingIntrinsic, NullOp, Operand,
88
Place, ProjectionElem, Rvalue, Terminator, TerminatorKind, UnwindAction,

0 commit comments

Comments
 (0)