rust/src/test/auxiliary
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
..
ambig_impl_2_lib.rs
anon_trait_static_method_lib.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
anon-extern-mod-cross-crate-1.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
cci_borrow_lib.rs
cci_capture_clause.rs
cci_class_2.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
cci_class_3.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
cci_class_4.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
cci_class_5.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
cci_class_6.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
cci_class_cast.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
cci_class_trait.rs
cci_class.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
cci_const.rs
cci_impl_lib.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
cci_intrinsic.rs
cci_iter_lib.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
cci_nested_lib.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
cci_no_inline_lib.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
cfg_inner_static.rs
changing-crates-a1.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
changing-crates-a2.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
changing-crates-b.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
coherence_inherent_cc_lib.rs
crate-method-reexport-grrrrrrr2.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
crateresolve1-1.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
crateresolve1-2.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
crateresolve1-3.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
crateresolve2-1.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
crateresolve2-2.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
crateresolve2-3.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
crateresolve3-1.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
crateresolve3-2.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
crateresolve4a-1.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
crateresolve4a-2.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
crateresolve4b-1.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
crateresolve4b-2.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
crateresolve5-1.rs Replace all ~"" with "".to_owned() 2014-04-18 17:25:34 -07:00
crateresolve5-2.rs Replace all ~"" with "".to_owned() 2014-04-18 17:25:34 -07:00
crateresolve7x.rs Remove check-fast. Closes #4193, #8844, #6330, #7416 2014-04-06 15:55:43 -07:00
crateresolve8-1.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
crateresolve_calories-1.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
crateresolve_calories-2.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
default_type_params_xc.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
explicit_self_xcrate.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
extern_calling_convention.rs
extern_mod_ordering_lib.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
extern-crosscrate-source.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
foreign_lib.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
impl_privacy_xc_1.rs Test fixes from rollup 2014-04-04 15:57:45 -07:00
impl_privacy_xc_2.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
inherit_struct_lib.rs Allow inheritance between structs. 2014-04-20 13:41:18 +12:00
inline_dtor.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
inner_static.rs
iss.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue2170lib.rs
issue2378a.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue2378b.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue13213aux.rs Replace all ~"" with "".to_owned() 2014-04-18 17:25:34 -07:00
issue13507.rs librustc: Remove ~EXPR, ~TYPE, and ~PAT from the language, except 2014-05-06 23:12:54 -07:00
issue_2242_a.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue_2242_c.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue_2316_a.rs
issue_2316_b.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue_2472_b.rs Switch some tuple structs to pub fields 2014-03-31 19:50:51 -07:00
issue_2723_a.rs Removed deprecated functions map and flat_map for vectors and slices. 2014-03-30 03:47:04 +02:00
issue_3136_a.rc Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue_3136_a.rs
issue_3907_1.rs
issue_3907.rs
issue_3979_traits.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue_5844_aux.rs Fix fallout from std::libc separation 2014-04-04 09:31:44 -07:00
issue_8401.rs
issue_9123.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue_9155.rs
issue_9188.rs
issue_10031_aux.rs Switch some tuple structs to pub fields 2014-03-31 19:50:51 -07:00
issue-2380.rs librustc: Remove ~EXPR, ~TYPE, and ~PAT from the language, except 2014-05-06 23:12:54 -07:00
issue-2414-a.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue-2414-b.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue-2526.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue-2631-a.rs Replace all ~"" with "".to_owned() 2014-04-18 17:25:34 -07:00
issue-3012-1.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue-4208-cc.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue-4545.rs
issue-5518.rs test: Add tests for closed issues 2014-04-27 20:35:51 -07:00
issue-5521.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue-7178.rs
issue-7899.rs Switch some tuple structs to pub fields 2014-03-31 19:50:51 -07:00
issue-8044.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue-8259.rs
issue-9906.rs Remove check-fast. Closes #4193, #8844, #6330, #7416 2014-04-06 15:55:43 -07:00
issue-9968.rs
issue-10028.rs
issue-11224.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue-11225-1.rs
issue-11225-2.rs
issue-11508.rs Switch some tuple structs to pub fields 2014-03-31 19:50:51 -07:00
issue-11529.rs Switch some tuple structs to pub fields 2014-03-31 19:50:51 -07:00
issue-11908-1.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue-11908-2.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue-12133-dylib2.rs rustc: Add some suppot for mixing rlibs and dylibs 2014-05-02 11:39:18 -07:00
issue-12133-dylib.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue-12133-rlib.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
issue-12612-1.rs rustc: Disallow importing through use statements 2014-04-10 15:22:00 -07:00
issue-12612-2.rs rustc: Disallow importing through use statements 2014-04-10 15:22:00 -07:00
issue-13560-1.rs rustc: Don't allocate a cnum to syntax crates 2014-04-16 11:42:22 -07:00
issue-13560-2.rs rustc: Don't allocate a cnum to syntax crates 2014-04-16 11:42:22 -07:00
issue-13560-3.rs rustc: Don't allocate a cnum to syntax crates 2014-04-16 11:42:22 -07:00
issue-13620-1.rs rustc: Crawl static initializers for reachability 2014-05-02 15:40:07 -07:00
issue-13620-2.rs rustc: Crawl static initializers for reachability 2014-05-02 15:40:07 -07:00
issue-13872-1.rs rustc: Fix def ids of xcrate-reexported items 2014-04-30 19:24:21 -07:00
issue-13872-2.rs rustc: Fix def ids of xcrate-reexported items 2014-04-30 19:24:21 -07:00
issue-13872-3.rs rustc: Fix def ids of xcrate-reexported items 2014-04-30 19:24:21 -07:00
kinds_in_metadata.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
lang-item-public.rs Fix some windows rpass tests 2014-04-07 09:29:42 -07:00
linkage1.rs
linkage-visibility.rs
lint_stability.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
logging_right_crate.rs Fix inner attribute syntax from #[foo]; to #![foo] 2014-04-04 13:22:57 -07:00
macro_crate_def_only.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
macro_crate_outlive_expansion_phase.rs std: Modernize the local_data api 2014-05-07 23:43:39 -07:00
macro_crate_test.rs librustc: Remove ~EXPR, ~TYPE, and ~PAT from the language, except 2014-05-06 23:12:54 -07:00
macro_export_inner_module.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
moves_based_on_type_lib.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
nested_item.rs
newtype_struct_xc.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
no_std_crate.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
noexporttypelib.rs
overloaded_autoderef_xc.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
packed.rs
priv-impl-prim-ty.rs
privacy_reexport.rs
privacy-struct-variant.rs name struct in "field ... is private" error 2014-04-06 02:37:25 +02:00
privacy-tuple-struct.rs rustc: Switch tuple structs to have private fields 2014-03-31 18:59:46 -07:00
private_trait_xc.rs
pub_use_mods_xcrate.rs
pub_use_xcrate1.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
pub_use_xcrate2.rs
reexport-should-still-link.rs
reexported_static_methods.rs Replace all ~"" with "".to_owned() 2014-04-18 17:25:34 -07:00
static_fn_inline_xc_aux.rs
static_fn_trait_xc_aux.rs
static_mut_xc.rs
static_priv_by_default.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
static-function-pointer-aux.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
static-methods-crate.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
struct_destructuring_cross_crate.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
struct_variant_xc_aux.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
struct-field-privacy.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
syntax-extension-with-dll-deps-1.rs rustc: Add search paths to dylib load paths 2014-04-29 18:58:39 -07:00
syntax-extension-with-dll-deps-2.rs librustc: Remove ~EXPR, ~TYPE, and ~PAT from the language, except 2014-05-06 23:12:54 -07:00
trait_default_method_xc_aux_2.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
trait_default_method_xc_aux.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
trait_impl_conflict.rs
trait_inheritance_auto_xc_2_aux.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
trait_inheritance_auto_xc_aux.rs
trait_inheritance_cross_trait_call_xc_aux.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
trait_inheritance_overloading_xc.rs rpass/cfail: Update field privacy where necessary 2014-03-31 15:47:36 -07:00
trait_superkinds_in_metadata.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
trait_typedef_cc.rs
typeid-intrinsic2.rs
typeid-intrinsic.rs
unreachable-variant.rs rustc: Remove private enum variants 2014-04-16 08:12:43 -07:00
use_from_trait_xc.rs
xc_private_method_lib.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
xcrate_address_insignificant.rs
xcrate_static_addresses.rs
xcrate_unit_struct.rs Use new attribute syntax in python files in src/etc too (#13478) 2014-04-14 21:00:31 +05:30
xcrate-trait-lifetime-param.rs