1 //! A subset of a mir body used for const evaluatability checking.
5 /// An index into an `AbstractConst`.
6 pub type NodeId = usize;
8 /// A node of an `AbstractConst`.
9 #[derive(Debug, Clone, Copy, PartialEq, Eq, HashStable)]
11 Leaf(&'tcx ty::Const<'tcx>),
12 Binop(mir::BinOp, NodeId, NodeId),
13 UnaryOp(mir::UnOp, NodeId),
14 FunctionCall(NodeId, &'tcx [NodeId]),