]> git.lizzy.rs Git - rust.git/commit
Support unions in borrow checker
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Fri, 26 Aug 2016 13:54:58 +0000 (16:54 +0300)
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Sat, 3 Sep 2016 10:39:35 +0000 (13:39 +0300)
commit5f975e969b46278669940aa60e5aea50ba588531
treef6bd2c93d0dd00ae12441fe77c2dce73b5fdee15
parent59ccb7b6dbaf3a590cf3a234661aa7dcc2188aed
Support unions in borrow checker

Add some more tests
12 files changed:
src/librustc_borrowck/borrowck/fragments.rs
src/librustc_borrowck/borrowck/gather_loans/restrictions.rs
src/librustc_borrowck/borrowck/mod.rs
src/librustc_borrowck/borrowck/move_data.rs
src/test/compile-fail/union-borrow-nested.rs [new file with mode: 0644]
src/test/compile-fail/union-borrow.rs [new file with mode: 0644]
src/test/compile-fail/union-move-assign.rs [new file with mode: 0644]
src/test/compile-fail/union-move.rs [new file with mode: 0644]
src/test/compile-fail/union-uninitialized.rs [new file with mode: 0644]
src/test/run-pass/union-basic.rs
src/test/run-pass/union-drop-assign.rs [new file with mode: 0644]
src/test/run-pass/union-transmute.rs [new file with mode: 0644]