rust/src/test/compile-fail
Alex Crichton ab92ea526d std: Modernize the local_data api
This commit brings the local_data api up to modern rust standards with a few key
improvements:

* The `pop` and `set` methods have been combined into one method, `replace`

* The `get_mut` method has been removed. All interior mutability should be done
  through `RefCell`.

* All functionality is now exposed as a method on the keys themselves. Instead
  of importing std::local_data, you now use "key.replace()" and "key.get()".

* All closures have been removed in favor of RAII functionality. This means that
  get() and get_mut() no long require closures, but rather return
  Option<SmartPointer> where the smart pointer takes care of relinquishing the
  borrow and also implements the necessary Deref traits

* The modify() function was removed to cut the local_data interface down to its
  bare essentials (similarly to how RefCell removed set/get).

[breaking-change]
2014-05-07 23:43:39 -07:00
..
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-14 22:55:21 -08:00
2014-02-14 22:55:21 -08:00
2014-05-04 22:35:21 -07:00
2014-02-07 12:49:24 -06:00
2014-02-14 22:55:21 -08:00
2014-01-30 14:52:25 +11:00
2014-02-21 08:26:20 +01:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-15 12:11:41 -05:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-21 08:26:20 +01:00
2014-04-08 00:03:11 -07:00
2014-02-07 12:49:24 -06:00
2014-04-08 00:03:11 -07:00
2014-02-07 12:49:24 -06:00
2014-02-07 00:38:33 +02:00
2014-02-07 12:49:24 -06:00
2014-02-14 22:55:21 -08:00
2014-02-07 12:49:24 -06:00
2014-04-10 15:21:59 -07:00
2014-02-27 18:09:35 +01:00
2014-02-14 22:55:21 -08:00
2014-01-30 12:17:58 +01:00
2014-02-07 12:49:24 -06:00
2014-04-08 00:03:11 -07:00
2014-02-14 22:55:21 -08:00
2014-03-28 10:34:02 +01:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-14 22:55:21 -08:00
2014-04-08 00:03:11 -07:00
2014-04-08 00:03:11 -07:00
2014-03-28 10:34:02 +01:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-14 22:55:21 -08:00
2014-02-07 12:49:24 -06:00