diff options
| author | Ben Striegel <ben.striegel@gmail.com> | 2012-11-13 21:38:18 -0500 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-11-14 16:15:34 -0800 |
| commit | 4589597785c4e485db82bc06c2c44ac2ebcced6a (patch) | |
| tree | 35053801b2b14b52e1ab6f05e0f06f2c3863ad68 /src/libstd/sort.rs | |
| parent | 4b0e1336b26b5bc29e14370e55d4811f15b1dce8 (diff) | |
| download | rust-4589597785c4e485db82bc06c2c44ac2ebcced6a.tar.gz rust-4589597785c4e485db82bc06c2c44ac2ebcced6a.zip | |
Convert libstd to use the Drop trait
Diffstat (limited to 'src/libstd/sort.rs')
| -rw-r--r-- | src/libstd/sort.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/sort.rs b/src/libstd/sort.rs index 40c81951b5e..4f06cc40c22 100644 --- a/src/libstd/sort.rs +++ b/src/libstd/sort.rs @@ -1133,7 +1133,10 @@ mod big_tests { val: uint, key: fn(@uint), - drop { + } + + impl LVal : Drop { + fn finalize() { let x = unsafe { task::local_data::local_data_get(self.key) }; match x { Some(@y) => { |
