]> git.lizzy.rs Git - rust.git/commitdiff
Fix two false positive lints
authorDaniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
Thu, 9 Dec 2021 18:50:22 +0000 (19:50 +0100)
committerDaniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
Thu, 9 Dec 2021 20:05:34 +0000 (21:05 +0100)
library/core/src/future/join.rs

index afab1bab7421a1fdcfd673f612d0ce01ae4d46ca..20336bc9e4c69108c632cf918ac508087dd533a3 100644 (file)
@@ -1,4 +1,4 @@
-#![allow(unused_imports)] // items are used by the macro
+#![allow(unused_imports, unused_macros)] // items are used by the macro
 
 use crate::cell::UnsafeCell;
 use crate::future::{poll_fn, Future};
@@ -54,6 +54,8 @@
     }
 }
 
+// FIXME(danielhenrymantilla): a private macro should need no stability guarantee.
+#[unstable(feature = "future_join", issue = "91642")]
 /// To be able to *name* the i-th future in the tuple (say we want the .4-th),
 /// the following trick will be used: `let (_, _, _, _, it, ..) = tuple;`
 /// In order to do that, we need to generate a `i`-long repetition of `_`,