diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-08-28 15:54:45 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-09-06 06:11:12 -0700 |
| commit | 5e36a997945ddc3964a1fe937bc5390cc5b526c8 (patch) | |
| tree | 0c37dfa0d20004d0098e0bbb620744a1ad4a81d8 /src/libcore/util.rs | |
| parent | adc1427282b4da8f963550e87cdbe512157958b4 (diff) | |
| download | rust-5e36a997945ddc3964a1fe937bc5390cc5b526c8.tar.gz rust-5e36a997945ddc3964a1fe937bc5390cc5b526c8.zip | |
Refactor trans to replace lvalue and friends with Datum.
Also: - report illegal move/ref combos whether or not ref comes first - commented out fix for #3387, too restrictive and causes an ICE
Diffstat (limited to 'src/libcore/util.rs')
| -rw-r--r-- | src/libcore/util.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcore/util.rs b/src/libcore/util.rs index 57590dbfc3e..a27b8fe86bc 100644 --- a/src/libcore/util.rs +++ b/src/libcore/util.rs @@ -65,7 +65,9 @@ mod tests { fn identity_crisis() { // Writing a test for the identity function. How did it come to this? let x = ~[(5, false)]; - assert x.eq(id(copy x)); + //FIXME #3387 assert x.eq(id(copy x)); + let y = copy x; + assert x.eq(id(y)); } #[test] fn test_swap() { |
