about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-10-01 07:56:52 +0000
committerbors <bors@rust-lang.org>2019-10-01 07:56:52 +0000
commit702b45e409495a41afcccbe87a251a692b0cefab (patch)
tree6dbfa88da0422f72926f0352a968d79bf84e8464 /src/libstd
parent42ec6831b019114a4b6f6b58bfb5bc2927d70388 (diff)
parent46bf6ad416cf922c410fed11e9f73c03c0015bcd (diff)
downloadrust-702b45e409495a41afcccbe87a251a692b0cefab.tar.gz
rust-702b45e409495a41afcccbe87a251a692b0cefab.zip
Auto merge of #64946 - Centril:rollup-66mj5o0, r=Centril
Rollup of 10 pull requests

Successful merges:

 - #63674 (syntax: Support modern attribute syntax in the `meta` matcher)
 - #63931 (Stabilize macros in some more positions)
 - #64887 (syntax: recover trailing `|` in or-patterns)
 - #64895 (async/await: improve not-send errors)
 - #64896 (Remove legacy grammar)
 - #64907 (A small amount of tidying-up factored out from PR #64648)
 - #64928 (Add tests for some issues)
 - #64930 (Silence unreachable code lint from await desugaring)
 - #64935 (Improve code clarity)
 - #64937 (Deduplicate closure type errors)

Failed merges:

r? @ghost
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/future.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/future.rs b/src/libstd/future.rs
index 0406549ff07..c65f71fb1a4 100644
--- a/src/libstd/future.rs
+++ b/src/libstd/future.rs
@@ -26,6 +26,7 @@ pub fn from_generator<T: Generator<Yield = ()>>(x: T) -> impl Future<Output = T:
 #[doc(hidden)]
 #[unstable(feature = "gen_future", issue = "50547")]
 #[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
+#[cfg_attr(not(test), rustc_diagnostic_item = "gen_future")]
 struct GenFuture<T: Generator<Yield = ()>>(T);
 
 // We rely on the fact that async/await futures are immovable in order to create