@@ -58,18 +58,31 @@ pub fn pretty_statement(statement: &StatementKind) -> String {
5858 pretty. push_str ( format ! ( " _{} = " , place. local) . as_str ( ) ) ;
5959 pretty. push_str ( format ! ( "{}" , & pretty_rvalue( rval) ) . as_str ( ) ) ;
6060 }
61- StatementKind :: FakeRead ( _, _) => todo ! ( ) ,
62- StatementKind :: SetDiscriminant { .. } => todo ! ( ) ,
63- StatementKind :: Deinit ( _) => todo ! ( ) ,
64- StatementKind :: StorageLive ( _) => todo ! ( ) ,
65- StatementKind :: StorageDead ( _) => todo ! ( ) ,
66- StatementKind :: Retag ( _, _) => todo ! ( ) ,
67- StatementKind :: PlaceMention ( _) => todo ! ( ) ,
68- StatementKind :: AscribeUserType { .. } => todo ! ( ) ,
69- StatementKind :: Coverage ( _) => todo ! ( ) ,
70- StatementKind :: Intrinsic ( _) => todo ! ( ) ,
71- StatementKind :: ConstEvalCounter => ( ) ,
72- StatementKind :: Nop => ( ) ,
61+ // FIXME: Add rest of the statements
62+ StatementKind :: FakeRead ( _, _) => return format ! ( "StatementKind::FakeRead:Unimplemented" ) ,
63+ StatementKind :: SetDiscriminant { .. } => {
64+ return format ! ( "StatementKind::SetDiscriminant:Unimplemented" ) ;
65+ }
66+ StatementKind :: Deinit ( _) => return format ! ( "StatementKind::Deinit:Unimplemented" ) ,
67+ StatementKind :: StorageLive ( _) => {
68+ return format ! ( "StatementKind::StorageLive:Unimplemented" ) ;
69+ }
70+ StatementKind :: StorageDead ( _) => {
71+ return format ! ( "StatementKind::StorageDead:Unimplemented" ) ;
72+ }
73+ StatementKind :: Retag ( _, _) => return format ! ( "StatementKind::Retag:Unimplemented" ) ,
74+ StatementKind :: PlaceMention ( _) => {
75+ return format ! ( "StatementKind::PlaceMention:Unimplemented" ) ;
76+ }
77+ StatementKind :: AscribeUserType { .. } => {
78+ return format ! ( "StatementKind::AscribeUserType:Unimplemented" ) ;
79+ }
80+ StatementKind :: Coverage ( _) => return format ! ( "StatementKind::Coverage:Unimplemented" ) ,
81+ StatementKind :: Intrinsic ( _) => return format ! ( "StatementKind::Intrinsic:Unimplemented" ) ,
82+ StatementKind :: ConstEvalCounter => {
83+ return format ! ( "StatementKind::ConstEvalCounter:Unimplemented" ) ;
84+ }
85+ StatementKind :: Nop => return format ! ( "StatementKind::Nop:Unimplemented" ) ,
7386 }
7487 pretty
7588}
@@ -355,7 +368,7 @@ pub fn pretty_rvalue(rval: &Rvalue) -> String {
355368 pretty. push_str ( " " ) ;
356369 pretty. push_str ( & pretty_ty ( cnst. ty ( ) . kind ( ) ) ) ;
357370 }
358- Rvalue :: ShallowInitBox ( _, _) => todo ! ( ) ,
371+ Rvalue :: ShallowInitBox ( _, _) => ( ) ,
359372 Rvalue :: ThreadLocalRef ( item) => {
360373 pretty. push_str ( "thread_local_ref" ) ;
361374 pretty. push_str ( format ! ( "{:#?}" , item) . as_str ( ) ) ;
0 commit comments