@@ -10,7 +10,6 @@ use crate::messages::{Message, Span};
1010pub use air:: ast:: { Binder , Binders } ;
1111use num_bigint:: BigInt ;
1212use serde:: { Deserialize , Serialize } ;
13- use std:: fmt:: Display ;
1413use std:: sync:: Arc ;
1514use vir_macros:: { to_node_impl, ToDebugSNode } ;
1615
@@ -585,12 +584,6 @@ pub struct SpannedTyped<X> {
585584 pub x : X ,
586585}
587586
588- impl < X : Display > Display for SpannedTyped < X > {
589- fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
590- write ! ( f, "{}" , self . x)
591- }
592- }
593-
594587/// Patterns for match expressions
595588pub type Pattern = Arc < SpannedTyped < PatternX > > ;
596589pub type Patterns = Arc < Vec < Pattern > > ;
@@ -1280,21 +1273,6 @@ pub enum ArchWordBits {
12801273 Exactly ( u32 ) ,
12811274}
12821275
1283- impl ArchWordBits {
1284- pub fn min_bits ( & self ) -> u32 {
1285- match self {
1286- ArchWordBits :: Either32Or64 => 32 ,
1287- ArchWordBits :: Exactly ( v) => * v,
1288- }
1289- }
1290- pub fn num_bits ( & self ) -> Option < u32 > {
1291- match self {
1292- ArchWordBits :: Either32Or64 => None ,
1293- ArchWordBits :: Exactly ( v) => Some ( * v) ,
1294- }
1295- }
1296- }
1297-
12981276#[ derive( Clone , Debug , Serialize , Deserialize ) ]
12991277pub struct Arch {
13001278 pub word_bits : ArchWordBits ,
@@ -1327,16 +1305,3 @@ pub struct KrateX {
13271305 /// Arch info
13281306 pub arch : Arch ,
13291307}
1330-
1331- impl FunctionKind {
1332- pub ( crate ) fn inline_okay ( & self ) -> bool {
1333- match self {
1334- FunctionKind :: Static | FunctionKind :: TraitMethodImpl { .. } => true ,
1335- // We don't want to do inlining for MethodDecls. If a MethodDecl has a body,
1336- // it's a *default* body, so we can't know for sure it hasn't been overridden.
1337- FunctionKind :: TraitMethodDecl { .. } | FunctionKind :: ForeignTraitMethodImpl { .. } => {
1338- false
1339- }
1340- }
1341- }
1342- }
0 commit comments