From a48725941ef6342c125854174c1df5f59e0bb570 Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Sun, 20 Nov 2022 22:02:37 +0100 Subject: [PATCH] lol no futures --- src/main.rs | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/main.rs b/src/main.rs index 25eeeba..79a6c32 100644 --- a/src/main.rs +++ b/src/main.rs @@ -77,7 +77,7 @@ mod fut { } } - impl Stream for &Map + impl Stream for Map where St: Stream, F: FnOnce1, @@ -133,23 +133,3 @@ fn main() { } }); } -/* -capture1 = CapturedPlace { - place: Place { - base_ty: std::result::Result, ()>, - base: Upvar(UpvarId(HirId { owner: OwnerId { def_id: DefId(0:100 ~ ice_104649[7838]::main) }, local_id: 40 };`b`;DefId(0:104 ~ ice_104649[7838]::main::{closure#1}::{closure#0}))), - projections: [Projection { ty: (), kind: Field(0, 1) }] - }, - info: CaptureInfo { capture_kind_expr_id: Some(HirId { owner: OwnerId { def_id: DefId(0:100 ~ ice_104649[7838]::main) }, local_id: 45 }), path_expr_id: Some(HirId { owner: OwnerId { def_id: DefId(0:100 ~ ice_104649[7838]::main) }, local_id: 45 }), capture_kind: ByRef(ImmBorrow) }, - mutability: Not, region: Some('_#8r) -} -capture2 = CapturedPlace { - place: Place { - base_ty: std::result::Result, ()>, - base: Upvar(UpvarId(HirId { owner: OwnerId { def_id: DefId(0:100 ~ ice_104649[7838]::main) },local_id: 40 };`b`;DefId(0:104 ~ ice_104649[7838]::main::{closure#1}::{closure#0}))), - projections: [Projection { ty: std::result::Result, kind: Field(0, 0) }, Projection { ty: std::string::String, kind: Field(0, 0) }] - }, - info: CaptureInfo { capture_kind_expr_id: Some(HirId { owner: OwnerId { def_id: DefId(0:100 ~ ice_104649[7838]::main) }, local_id: 45 }), path_expr_id: Some(HirId { owner: OwnerId { def_id: DefId(0:100 ~ ice_104649[7838]::main) }, local_id: 45 }), capture_kind: ByValue }, - mutability: Not, region: None -} -*/