@@ -224,11 +224,9 @@ macro_rules! eprintln {
224
224
/// the value of a given expression. An example:
225
225
///
226
226
/// ```rust
227
- /// #![feature(dbg_macro)]
228
- ///
229
227
/// let a = 2;
230
228
/// let b = dbg!(a * 2) + 1;
231
- /// // ^-- prints: [src/main.rs:4 ] a * 2 = 4
229
+ /// // ^-- prints: [src/main.rs:2 ] a * 2 = 4
232
230
/// assert_eq!(b, 5);
233
231
/// ```
234
232
///
@@ -262,8 +260,6 @@ macro_rules! eprintln {
262
260
/// With a method call:
263
261
///
264
262
/// ```rust
265
- /// #![feature(dbg_macro)]
266
- ///
267
263
/// fn foo(n: usize) {
268
264
/// if let Some(_) = dbg!(n.checked_sub(4)) {
269
265
/// // ...
@@ -282,8 +278,6 @@ macro_rules! eprintln {
282
278
/// Naive factorial implementation:
283
279
///
284
280
/// ```rust
285
- /// #![feature(dbg_macro)]
286
- ///
287
281
/// fn factorial(n: u32) -> u32 {
288
282
/// if dbg!(n <= 1) {
289
283
/// dbg!(1)
@@ -312,8 +306,6 @@ macro_rules! eprintln {
312
306
/// The `dbg!(..)` macro moves the input:
313
307
///
314
308
/// ```compile_fail
315
- /// #![feature(dbg_macro)]
316
- ///
317
309
/// /// A wrapper around `usize` which importantly is not Copyable.
318
310
/// #[derive(Debug)]
319
311
/// struct NoCopy(usize);
@@ -325,7 +317,7 @@ macro_rules! eprintln {
325
317
///
326
318
/// [stderr]: https://en.wikipedia.org/wiki/Standard_streams#Standard_error_(stderr)
327
319
#[ macro_export]
328
- #[ unstable ( feature = "dbg_macro" , issue = "54306 " ) ]
320
+ #[ stable ( feature = "dbg_macro" , since = "1.32.0 " ) ]
329
321
macro_rules! dbg {
330
322
( $val: expr) => {
331
323
// Use of `match` here is intentional because it affects the lifetimes
0 commit comments