@@ -311,53 +311,39 @@ pub fn main() {
311311}
312312fn main_0 ( ) -> i32 {
313313 {
314- let s: Value < S > = Rc :: new ( RefCell :: new ( S { } ) ) ;
314+ let s: Value < S > = Rc :: new ( RefCell :: new ( < S > :: default ( ) ) ) ;
315315 let _dtor_s = ScopedDestructor :: new ( & s, |__p| __p. destructor ( ) ) ;
316316 }
317317 assert ! ( ( global_0. with( |rc| * rc. borrow( ) ) == 1 ) ) ;
318318 {
319- let s: Value < S > = Rc :: new ( RefCell :: new ( S { } ) ) ;
319+ let s: Value < S > = Rc :: new ( RefCell :: new ( < S > :: default ( ) ) ) ;
320320 let _dtor_s = ScopedDestructor :: new ( & s, |__p| __p. destructor ( ) ) ;
321321 }
322322 assert ! ( ( global_0. with( |rc| * rc. borrow( ) ) == 2 ) ) ;
323323 {
324- let d: Value < Defaulted > = Rc :: new ( RefCell :: new ( Defaulted {
325- s : Rc :: new ( RefCell :: new ( S { } ) ) ,
326- } ) ) ;
324+ let d: Value < Defaulted > = Rc :: new ( RefCell :: new ( <Defaulted >:: default ( ) ) ) ;
327325 let _dtor_d = ScopedDestructor :: new ( & d, |__p| __p. destructor ( ) ) ;
328326 }
329327 assert ! ( ( global_0. with( |rc| * rc. borrow( ) ) == 3 ) ) ;
330328 {
331- let o: Value < Outer > = Rc :: new ( RefCell :: new ( Outer {
332- m : Rc :: new ( RefCell :: new ( Middle {
333- s : Rc :: new ( RefCell :: new ( S { } ) ) ,
334- } ) ) ,
335- } ) ) ;
329+ let o: Value < Outer > = Rc :: new ( RefCell :: new ( <Outer >:: default ( ) ) ) ;
336330 let _dtor_o = ScopedDestructor :: new ( & o, |__p| __p. destructor ( ) ) ;
337331 }
338332 assert ! ( ( global_0. with( |rc| * rc. borrow( ) ) == 4 ) ) ;
339333 {
340- let am: Value < ArrayMember > = Rc :: new ( RefCell :: new ( ArrayMember {
341- items : Rc :: new ( RefCell :: new ( Box :: new ( [ S { } , S { } , S { } ] ) ) ) ,
342- } ) ) ;
334+ let am: Value < ArrayMember > = Rc :: new ( RefCell :: new ( <ArrayMember >:: default ( ) ) ) ;
343335 let _dtor_am = ScopedDestructor :: new ( & am, |__p| __p. destructor ( ) ) ;
344336 }
345337 assert ! ( ( global_0. with( |rc| * rc. borrow( ) ) == 7 ) ) ;
346338 {
347- let e: Value < EmptyBody > = Rc :: new ( RefCell :: new ( EmptyBody {
348- s : Rc :: new ( RefCell :: new ( S { } ) ) ,
349- } ) ) ;
339+ let e: Value < EmptyBody > = Rc :: new ( RefCell :: new ( <EmptyBody >:: default ( ) ) ) ;
350340 let _dtor_e = ScopedDestructor :: new ( & e, |__p| __p. destructor ( ) ) ;
351341 }
352342 assert ! ( ( global_0. with( |rc| * rc. borrow( ) ) == 8 ) ) ;
353343 {
354- let tc: Value < Templated_char_ > = Rc :: new ( RefCell :: new ( Templated_char_ {
355- v : Rc :: new ( RefCell :: new ( 0_u8 ) ) ,
356- } ) ) ;
344+ let tc: Value < Templated_char_ > = Rc :: new ( RefCell :: new ( <Templated_char_ >:: default ( ) ) ) ;
357345 let _dtor_tc = ScopedDestructor :: new ( & tc, |__p| __p. destructor ( ) ) ;
358- let ti: Value < Templated_int_ > = Rc :: new ( RefCell :: new ( Templated_int_ {
359- v : Rc :: new ( RefCell :: new ( 0_i32 ) ) ,
360- } ) ) ;
346+ let ti: Value < Templated_int_ > = Rc :: new ( RefCell :: new ( <Templated_int_ >:: default ( ) ) ) ;
361347 let _dtor_ti = ScopedDestructor :: new ( & ti, |__p| __p. destructor ( ) ) ;
362348 }
363349 assert ! ( ( global_0. with( |rc| * rc. borrow( ) ) == 13 ) ) ;
0 commit comments