19
19
/// # Example
20
20
///
21
21
/// ```
22
- /// #![feature(phase)]
23
- /// #[phase(plugin, link)] extern crate log;
22
+ /// #[macro_use] extern crate log;
24
23
///
25
24
/// fn main() {
26
25
/// log!(log::WARN, "this is a warning {}", "message");
@@ -68,8 +67,7 @@ macro_rules! log {
68
67
/// # Example
69
68
///
70
69
/// ```
71
- /// #![feature(phase)]
72
- /// #[phase(plugin, link)] extern crate log;
70
+ /// #[macro_use] extern crate log;
73
71
///
74
72
/// fn main() {
75
73
/// let error = 3u;
@@ -94,8 +92,7 @@ macro_rules! error {
94
92
/// # Example
95
93
///
96
94
/// ```
97
- /// #![feature(phase)]
98
- /// #[phase(plugin, link)] extern crate log;
95
+ /// #[macro_use] extern crate log;
99
96
///
100
97
/// fn main() {
101
98
/// let code = 3u;
@@ -119,8 +116,7 @@ macro_rules! warn {
119
116
/// # Example
120
117
///
121
118
/// ```
122
- /// #![feature(phase)]
123
- /// #[phase(plugin, link)] extern crate log;
119
+ /// #[macro_use] extern crate log;
124
120
///
125
121
/// fn main() {
126
122
/// let ret = 3i;
@@ -146,8 +142,7 @@ macro_rules! info {
146
142
/// # Example
147
143
///
148
144
/// ```
149
- /// #![feature(phase)]
150
- /// #[phase(plugin, link)] extern crate log;
145
+ /// #[macro_use] extern crate log;
151
146
///
152
147
/// fn main() {
153
148
/// debug!("x = {x}, y = {y}", x=10i, y=20i);
@@ -170,8 +165,7 @@ macro_rules! debug {
170
165
/// # Example
171
166
///
172
167
/// ```
173
- /// #![feature(phase)]
174
- /// #[phase(plugin, link)] extern crate log;
168
+ /// #[macro_use] extern crate log;
175
169
///
176
170
/// struct Point { x: int, y: int }
177
171
/// fn some_expensive_computation() -> Point { Point { x: 1, y: 2 } }
0 commit comments