Skip to content

Commit 846cb9c

Browse files
Fix two false positive lints
1 parent e936071 commit 846cb9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/core/src/future/join.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![allow(unused_imports)] // items are used by the macro
1+
#![allow(unused_imports, unused_macros)] // items are used by the macro
22

33
use crate::cell::UnsafeCell;
44
use crate::future::{poll_fn, Future};
@@ -54,6 +54,8 @@ pub macro join( $($fut:expr),+ $(,)? ) {
5454
}
5555
}
5656

57+
// FIXME(danielhenrymantilla): a private macro should need no stability guarantee.
58+
#[unstable(feature = "future_join", issue = "91642")]
5759
/// To be able to *name* the i-th future in the tuple (say we want the .4-th),
5860
/// the following trick will be used: `let (_, _, _, _, it, ..) = tuple;`
5961
/// In order to do that, we need to generate a `i`-long repetition of `_`,

0 commit comments

Comments
 (0)