@@ -5,7 +5,7 @@ mod system;
5
5
pub use mem:: MaybeUninit ;
6
6
use num:: { bigint:: ParseBigIntError , Integer , Num , One , Signed } ;
7
7
pub use once_cell:: unsync:: Lazy ;
8
- pub use std:: {
8
+ use std:: {
9
9
any:: Any ,
10
10
borrow:: Borrow ,
11
11
boxed:: Box ,
@@ -322,7 +322,7 @@ impl AsRef<BigInt> for DafnyInt {
322
322
#[ macro_export]
323
323
macro_rules! truncate {
324
324
( $x: expr, $t: ty) => {
325
- <$crate:: DafnyInt as $crate :: Into <$t>>:: into( $x)
325
+ <$crate:: DafnyInt as :: std :: convert :: Into <$t>>:: into( $x)
326
326
} ;
327
327
}
328
328
@@ -594,10 +594,10 @@ impl DafnyInt {
594
594
macro_rules! impl_dafnyint_from {
595
595
( ) => { } ;
596
596
( $type: ident) => {
597
- impl $crate :: From <$type> for $crate:: DafnyInt {
597
+ impl :: std :: convert :: From <$type> for $crate:: DafnyInt {
598
598
fn from( n: $type) -> Self {
599
599
$crate:: DafnyInt {
600
- data: $crate :: Rc :: new( n. into( ) ) ,
600
+ data: :: std :: rc :: Rc :: new( n. into( ) ) ,
601
601
}
602
602
}
603
603
}
@@ -1990,7 +1990,7 @@ impl<A: DafnyPrint> DafnyPrint for LazyFieldWrapper<A> {
1990
1990
// Convert the DafnyPrint above into a macro so that we can create it for functions of any input arity
1991
1991
macro_rules! dafny_print_function {
1992
1992
( $( $n: tt) * ) => {
1993
- impl <B , $( $n) ,* > $crate:: DafnyPrint for $crate :: Rc <dyn $crate :: Fn ( $( $n) ,* ) -> B > {
1993
+ impl <B , $( $n) ,* > $crate:: DafnyPrint for :: std :: rc :: Rc <dyn :: std :: ops :: Fn ( $( $n) ,* ) -> B > {
1994
1994
fn fmt_print( & self , f: & mut :: std:: fmt:: Formatter <' _>, _in_seq: bool ) -> :: std:: fmt:: Result {
1995
1995
write!( f, "<function>" )
1996
1996
}
@@ -2557,14 +2557,14 @@ macro_rules! ARRAY_GETTER_LENGTH {
2557
2557
#[ macro_export]
2558
2558
macro_rules! array {
2559
2559
( $( $x: expr) , * ) => {
2560
- $crate:: array:: from_native( $crate :: Box :: new( [ $( $x) , * ] ) )
2560
+ $crate:: array:: from_native( :: std :: boxed :: Box :: new( [ $( $x) , * ] ) )
2561
2561
}
2562
2562
}
2563
2563
2564
2564
macro_rules! ARRAY_INIT {
2565
2565
{ $length: ident, $inner: expr} => {
2566
2566
$crate:: array:: initialize_box_usize( $length, {
2567
- $crate :: Rc :: new( move |_| { $inner } )
2567
+ :: std :: rc :: Rc :: new( move |_| { $inner } )
2568
2568
} )
2569
2569
}
2570
2570
}
@@ -2579,10 +2579,10 @@ macro_rules! ARRAY_INIT_INNER {
2579
2579
// Box<[Box<[Box<[T]>]>]>
2580
2580
macro_rules! ARRAY_DATA_TYPE {
2581
2581
( $length: ident) => {
2582
- $crate :: Box <[ T ] >
2582
+ :: std :: boxed :: Box <[ T ] >
2583
2583
} ;
2584
2584
( $length: ident, $( $rest_length: ident) ,+) => {
2585
- $crate :: Box <[ ARRAY_DATA_TYPE !( $( $rest_length) ,+) ] >
2585
+ :: std :: boxed :: Box <[ ARRAY_DATA_TYPE !( $( $rest_length) ,+) ] >
2586
2586
} ;
2587
2587
}
2588
2588
@@ -2606,8 +2606,8 @@ macro_rules! ARRAY_METHODS {
2606
2606
pub fn placebos_box_usize(
2607
2607
$length0: usize ,
2608
2608
$( $length: usize ) ,+
2609
- ) -> $crate :: Box <$ArrayType<$crate:: MaybeUninit <T >>> {
2610
- $crate :: Box :: new( $ArrayType {
2609
+ ) -> :: std :: boxed :: Box <$ArrayType<$crate:: MaybeUninit <T >>> {
2610
+ :: std :: boxed :: Box :: new( $ArrayType {
2611
2611
$( $length: $length) ,+,
2612
2612
data: INIT_ARRAY_DATA !( $ArrayType, $length0, $( $length) ,+) ,
2613
2613
} )
@@ -2676,15 +2676,15 @@ macro_rules! ARRAY_TO_VEC_LOOP {
2676
2676
} ;
2677
2677
( @inner $self: ident, $outerTmp: ident, $data: expr $( , $rest_length_usize: ident) * ) => {
2678
2678
{
2679
- let mut tmp = $crate :: Vec :: new( ) ;
2679
+ let mut tmp = :: std :: vec :: Vec :: new( ) ;
2680
2680
ARRAY_TO_VEC_LOOP !( @for $self, tmp, $data $( , $rest_length_usize) * ) ;
2681
2681
$outerTmp. push( tmp) ;
2682
2682
}
2683
2683
} ;
2684
2684
2685
2685
( $self: ident, $data: expr $( , $rest_length_usize: ident) * ) => {
2686
2686
{
2687
- let mut tmp = $crate :: Vec :: new( ) ;
2687
+ let mut tmp = :: std :: vec :: Vec :: new( ) ;
2688
2688
ARRAY_TO_VEC_LOOP !( @for $self, tmp, $data $( , $rest_length_usize) * ) ;
2689
2689
tmp
2690
2690
}
@@ -2693,10 +2693,10 @@ macro_rules! ARRAY_TO_VEC_LOOP {
2693
2693
2694
2694
macro_rules! ARRAY_TO_VEC_TYPE {
2695
2695
( $length0: ident) => {
2696
- $crate :: Vec <T >
2696
+ :: std :: vec :: Vec <T >
2697
2697
} ;
2698
2698
( $length0: ident $( , $res_length: ident) * ) => {
2699
- $crate :: Vec <ARRAY_TO_VEC_TYPE !( $( $res_length) , * ) >
2699
+ :: std :: vec :: Vec <ARRAY_TO_VEC_TYPE !( $( $res_length) , * ) >
2700
2700
}
2701
2701
}
2702
2702
@@ -2751,7 +2751,7 @@ macro_rules! ARRAY_DEF {
2751
2751
$( ( $length, $length_usize) ) , +
2752
2752
}
2753
2753
}
2754
- impl <T : $crate :: Clone > $ArrayType<T > {
2754
+ impl <T : :: std :: clone :: Clone > $ArrayType<T > {
2755
2755
ARRAY_TO_VEC_WRAPPER !{
2756
2756
$( ( $length, $length_usize) ) , +
2757
2757
}
@@ -3111,15 +3111,15 @@ macro_rules! is_object {
3111
3111
#[ macro_export]
3112
3112
macro_rules! cast_any {
3113
3113
( $raw: expr) => {
3114
- $crate:: Upcast :: <dyn $crate :: Any >:: upcast( $crate:: read!( $raw) )
3114
+ $crate:: Upcast :: <dyn :: std :: any :: Any >:: upcast( $crate:: read!( $raw) )
3115
3115
} ;
3116
3116
}
3117
3117
// cast_any_object is meant to be used on references only, to convert any references (classes or traits)*
3118
3118
// to an Any reference trait
3119
3119
#[ macro_export]
3120
3120
macro_rules! cast_any_object {
3121
3121
( $obj: expr) => {
3122
- $crate:: UpcastObject :: <dyn $crate :: Any >:: upcast( $crate:: md!( $obj) )
3122
+ $crate:: UpcastObject :: <dyn :: std :: any :: Any >:: upcast( $crate:: md!( $obj) )
3123
3123
} ;
3124
3124
}
3125
3125
@@ -3555,7 +3555,7 @@ macro_rules! rd {
3555
3555
#[ macro_export]
3556
3556
macro_rules! refcount {
3557
3557
( $x: expr) => {
3558
- $crate :: Rc :: strong_count( unsafe { $crate:: rcmut:: as_rc( $x. 0 . as_ref( ) . unwrap( ) ) } )
3558
+ :: std :: rc :: Rc :: strong_count( unsafe { $crate:: rcmut:: as_rc( $x. 0 . as_ref( ) . unwrap( ) ) } )
3559
3559
} ;
3560
3560
}
3561
3561
0 commit comments