File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ $(eval $(call RUST_CRATE,collectionstest))
25
25
TEST_TARGET_CRATES = $(filter-out core rustc_unicode alloc_system \
26
26
alloc_jemalloc,$(TARGET_CRATES ) ) \
27
27
collectionstest coretest
28
- TEST_DOC_CRATES = $(DOC_CRATES ) arena flate fmt_macros getopts graphviz
28
+ TEST_DOC_CRATES = $(DOC_CRATES ) arena flate fmt_macros getopts graphviz \
29
+ log
29
30
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve \
30
31
rustc_trans rustc_lint,\
31
32
$(HOST_CRATES ) )
Original file line number Diff line number Diff line change 13
13
//! # Examples
14
14
//!
15
15
//! ```
16
+ //! # #![feature(rustc_private)]
16
17
//! #[macro_use] extern crate log;
17
18
//!
18
19
//! fn main() {
167
168
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
168
169
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
169
170
html_root_url = "https://doc.rust-lang.org/nightly/" ,
170
- html_playground_url = "https://play.rust-lang.org/" ) ]
171
+ html_playground_url = "https://play.rust-lang.org/" ,
172
+ test( attr( deny( warnings) ) ) ) ]
171
173
#![ deny( missing_docs) ]
172
174
173
175
#![ feature( box_syntax) ]
Original file line number Diff line number Diff line change 19
19
/// # Examples
20
20
///
21
21
/// ```
22
+ /// # #![feature(rustc_private)]
22
23
/// #[macro_use] extern crate log;
23
24
///
24
25
/// fn main() {
@@ -67,6 +68,7 @@ macro_rules! log {
67
68
/// # Examples
68
69
///
69
70
/// ```
71
+ /// # #![feature(rustc_private)]
70
72
/// #[macro_use] extern crate log;
71
73
///
72
74
/// fn main() {
@@ -92,6 +94,7 @@ macro_rules! error {
92
94
/// # Examples
93
95
///
94
96
/// ```
97
+ /// # #![feature(rustc_private)]
95
98
/// #[macro_use] extern crate log;
96
99
///
97
100
/// fn main() {
@@ -116,6 +119,7 @@ macro_rules! warn {
116
119
/// # Examples
117
120
///
118
121
/// ```
122
+ /// # #![feature(rustc_private)]
119
123
/// #[macro_use] extern crate log;
120
124
///
121
125
/// fn main() {
@@ -142,6 +146,7 @@ macro_rules! info {
142
146
/// # Examples
143
147
///
144
148
/// ```
149
+ /// # #![feature(rustc_private)]
145
150
/// #[macro_use] extern crate log;
146
151
///
147
152
/// fn main() {
@@ -165,9 +170,10 @@ macro_rules! debug {
165
170
/// # Examples
166
171
///
167
172
/// ```
173
+ /// # #![feature(rustc_private)]
168
174
/// #[macro_use] extern crate log;
169
175
///
170
- /// struct Point { x: int , y: int }
176
+ /// struct Point { x: i32 , y: i32 }
171
177
/// fn some_expensive_computation() -> Point { Point { x: 1, y: 2 } }
172
178
///
173
179
/// fn main() {
You can’t perform that action at this time.
0 commit comments