rust/src/librustdoc
bors b9ff86e27f auto merge of #13835 : alexcrichton/rust/localdata, r=brson
This commit brings the local_data api up to modern rust standards with a few key
improvements:

* All functionality is now exposed as a method on the keys themselves. Instead
  of importing std::local_data, you now use "key.set()" 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-08 01:26:39 -07:00
..
2014-05-07 23:43:39 -07:00
2014-04-04 09:31:44 -07:00
2014-05-07 23:43:39 -07:00
2014-04-18 17:25:34 -07:00
2014-05-07 23:43:39 -07:00
2014-05-07 23:43:39 -07:00