@@ -58,18 +58,35 @@ 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 ( _, _) => {
63+ return String :: from ( "StatementKind::FakeRead:Unimplemented" ) ;
64+ }
65+ StatementKind :: SetDiscriminant { .. } => {
66+ return String :: from ( "StatementKind::SetDiscriminant:Unimplemented" ) ;
67+ }
68+ StatementKind :: Deinit ( _) => return String :: from ( "StatementKind::Deinit:Unimplemented" ) ,
69+ StatementKind :: StorageLive ( _) => {
70+ return String :: from ( "StatementKind::StorageLive:Unimplemented" ) ;
71+ }
72+ StatementKind :: StorageDead ( _) => {
73+ return String :: from ( "StatementKind::StorageDead:Unimplemented" ) ;
74+ }
75+ StatementKind :: Retag ( _, _) => return String :: from ( "StatementKind::Retag:Unimplemented" ) ,
76+ StatementKind :: PlaceMention ( _) => {
77+ return String :: from ( "StatementKind::PlaceMention:Unimplemented" ) ;
78+ }
79+ StatementKind :: AscribeUserType { .. } => {
80+ return String :: from ( "StatementKind::AscribeUserType:Unimplemented" ) ;
81+ }
82+ StatementKind :: Coverage ( _) => return String :: from ( "StatementKind::Coverage:Unimplemented" ) ,
83+ StatementKind :: Intrinsic ( _) => {
84+ return String :: from ( "StatementKind::Intrinsic:Unimplemented" ) ;
85+ }
86+ StatementKind :: ConstEvalCounter => {
87+ return String :: from ( "StatementKind::ConstEvalCounter:Unimplemented" ) ;
88+ }
89+ StatementKind :: Nop => return String :: from ( "StatementKind::Nop:Unimplemented" ) ,
7390 }
7491 pretty
7592}
@@ -355,7 +372,7 @@ pub fn pretty_rvalue(rval: &Rvalue) -> String {
355372 pretty. push_str ( " " ) ;
356373 pretty. push_str ( & pretty_ty ( cnst. ty ( ) . kind ( ) ) ) ;
357374 }
358- Rvalue :: ShallowInitBox ( _, _) => todo ! ( ) ,
375+ Rvalue :: ShallowInitBox ( _, _) => ( ) ,
359376 Rvalue :: ThreadLocalRef ( item) => {
360377 pretty. push_str ( "thread_local_ref" ) ;
361378 pretty. push_str ( format ! ( "{:#?}" , item) . as_str ( ) ) ;
0 commit comments