diff options
| author | bors <bors@rust-lang.org> | 2013-10-22 09:24:48 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-10-22 09:24:48 -0700 |
| commit | fd2c0128a7dd3cb19eda253acd01cd7905d1c7dc (patch) | |
| tree | 5e61220d514b0e59df849455008695490b2e4f42 /src/libstd/local_data.rs | |
| parent | cd8c7cf61239d4f23868b8765207026f602a79db (diff) | |
| parent | 3ed18bdd42e10f57890befe015f6861d52429e12 (diff) | |
| download | rust-fd2c0128a7dd3cb19eda253acd01cd7905d1c7dc.tar.gz rust-fd2c0128a7dd3cb19eda253acd01cd7905d1c7dc.zip | |
auto merge of #10006 : alexcrichton/rust/another-massive-rename, r=brson
Drop the `2` suffix on all of them, updating all code in the process of doing so. This is a completely automated change, and it's dependent on the snapshots going through.
Diffstat (limited to 'src/libstd/local_data.rs')
| -rw-r--r-- | src/libstd/local_data.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libstd/local_data.rs b/src/libstd/local_data.rs index 64f02539d0f..30175d6609b 100644 --- a/src/libstd/local_data.rs +++ b/src/libstd/local_data.rs @@ -144,7 +144,7 @@ pub fn pop<T: 'static>(key: Key<T>) -> Option<T> { match *entry { Some((k, _, loan)) if k == key_value => { if loan != NoLoan { - fail2!("TLS value cannot be removed because it is currently \ + fail!("TLS value cannot be removed because it is currently \ borrowed as {}", loan.describe()); } // Move the data out of the `entry` slot via util::replace. @@ -241,7 +241,7 @@ fn get_with<T: 'static, U>(key: Key<T>, } (ImmLoan, ImmLoan) => {} (want, cur) => { - fail2!("TLS slot cannot be borrowed as {} because \ + fail!("TLS slot cannot be borrowed as {} because \ it is already borrowed as {}", want.describe(), cur.describe()); } @@ -305,7 +305,7 @@ pub fn set<T: 'static>(key: Key<T>, data: T) { match *entry { Some((ekey, _, loan)) if key == ekey => { if loan != NoLoan { - fail2!("TLS value cannot be overwritten because it is + fail!("TLS value cannot be overwritten because it is already borrowed as {}", loan.describe()) } true @@ -389,15 +389,15 @@ mod tests { static my_key: Key<@~str> = &Key; modify(my_key, |data| { match data { - Some(@ref val) => fail2!("unwelcome value: {}", *val), + Some(@ref val) => fail!("unwelcome value: {}", *val), None => Some(@~"first data") } }); modify(my_key, |data| { match data { Some(@~"first data") => Some(@~"next data"), - Some(@ref val) => fail2!("wrong value: {}", *val), - None => fail2!("missing value") + Some(@ref val) => fail!("wrong value: {}", *val), + None => fail!("missing value") } }); assert!(*(pop(my_key).unwrap()) == ~"next data"); @@ -457,11 +457,11 @@ mod tests { set(str_key, @~"string data"); set(box_key, @@()); set(int_key, @42); - fail2!(); + fail!(); } // Not quite nondeterministic. set(int_key, @31337); - fail2!(); + fail!(); } #[test] |
