File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ TEST_TARGET_CRATES = $(filter-out core rustc_unicode alloc_system \
26
26
alloc_jemalloc,$(TARGET_CRATES ) ) \
27
27
collectionstest coretest
28
28
TEST_DOC_CRATES = $(DOC_CRATES ) arena flate fmt_macros getopts graphviz \
29
- log rand rbml
29
+ log rand rbml serialize
30
30
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve \
31
31
rustc_trans rustc_lint,\
32
32
$(HOST_CRATES ) )
Original file line number Diff line number Diff line change 77
77
//! serialization API, using the derived serialization code.
78
78
//!
79
79
//! ```rust
80
- //! extern crate serialize;
81
- //! use serialize::json;
80
+ //! # #![feature(rustc_private)]
81
+ //! extern crate serialize as rustc_serialize; // for the deriving below
82
+ //! use rustc_serialize::json;
82
83
//!
83
84
//! // Automatically generate `Decodable` and `Encodable` trait implementations
84
85
//! #[derive(RustcDecodable, RustcEncodable)]
111
112
//! ### Simple example of `ToJson` usage
112
113
//!
113
114
//! ```rust
115
+ //! # #![feature(rustc_private)]
114
116
//! extern crate serialize;
115
117
//! use serialize::json::{self, ToJson, Json};
116
118
//!
150
152
//! ### Verbose example of `ToJson` usage
151
153
//!
152
154
//! ```rust
155
+ //! # #![feature(rustc_private)]
153
156
//! extern crate serialize;
154
157
//! use std::collections::BTreeMap;
155
158
//! use serialize::json::{self, Json, ToJson};
185
188
//! let json_str: String = json_obj.to_string();
186
189
//!
187
190
//! // Deserialize like before
188
- //! let decoded: TestStruct = json::decode(json_str) ).unwrap();
191
+ //! let decoded: TestStruct = json::decode(& json_str).unwrap();
189
192
//! }
190
193
//! ```
191
194
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ Core encoding and decoding interfaces.
26
26
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
27
27
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
28
28
html_root_url = "https://doc.rust-lang.org/nightly/" ,
29
- html_playground_url = "https://play.rust-lang.org/" ) ]
29
+ html_playground_url = "https://play.rust-lang.org/" ,
30
+ test( attr( allow( unused_variables) , deny( warnings) ) ) ) ]
30
31
31
32
#![ feature( box_syntax) ]
32
33
#![ feature( collections) ]
You can’t perform that action at this time.
0 commit comments