Skip to content

Regression in asynchronous-0.4.5, Rust 1.17 #40953

Description

@brson

https://github.com/bcndanos/asynchronous

101 ec2-user@ip-10-145-56-122:~/triage/asynchronous$ git log -1
commit 5423c7e714e46117a75f8b89086b12f8e31da170
Author: bcndanos <rinnegatobcn@gmail.com>
Date:   Fri May 22 19:38:07 2015 +0200

    Update Readme

ec2-user@ip-10-145-56-122:~/triage/aligner$ rustc +beta -Vv
rustc 1.17.0-beta.2 (b7c276653 2017-03-20)
binary: rustc
commit-hash: b7c27665307704a9b158fe242e88e83914029415
commit-date: 2017-03-20
host: x86_64-unknown-linux-gnu
release: 1.17.0-beta.2
LLVM version: 3.9
        error[E0282]: type annotations needed
 --> <anon>:3:1
  |
3 | asynchronous::Deferred::new(|| {
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for `T`

error: aborting due to previous error(s)

thread 'rustc' panicked at 'Box<Any>', /checkout/src/librustc/session/mod.rs:203

---- src/lib.rs - Deferred<T, E>::then (line 175) stdout ----
        error[E0282]: type annotations needed
 --> <anon>:8:4
  |
8 |    Ok(34)
  |    ^^ cannot infer type for `E`

error: aborting due to previous error(s)

thread 'rustc' panicked at 'Box<Any>', /checkout/src/librustc/session/mod.rs:203

---- src/lib.rs - Promise<T, E>::chain (line 628) stdout ----
        error[E0282]: type annotations needed
  --> <anon>:12:4
   |
12 |    Ok(34)
   |    ^^ cannot infer type for `E`

error: aborting due to previous error(s)

thread 'rustc' panicked at 'Box<Any>', /checkout/src/librustc/session/mod.rs:203

---- src/lib.rs - Promise<T, E>::fail (line 685) stdout ----
        error[E0282]: type annotations needed
 --> <anon>:3:1
  |
3 | asynchronous::Promise::new(|| {
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for `T`

error: aborting due to previous error(s)

thread 'rustc' panicked at 'Box<Any>', /checkout/src/librustc/session/mod.rs:203

---- src/lib.rs - Promise<T, E>::then (line 598) stdout ----
        error[E0282]: type annotations needed
 --> <anon>:8:4
  |
8 |    Ok(34)
  |    ^^ cannot infer type for `E`

error: aborting due to previous error(s)

thread 'rustc' panicked at 'Box<Any>', /checkout/src/librustc/session/mod.rs:203


failures:
    src/lib.rs - Deferred<T, E>::chain (line 214)
    src/lib.rs - Deferred<T, E>::fail (line 289)
    src/lib.rs - Deferred<T, E>::then (line 175)
    src/lib.rs - Promise<T, E>::chain (line 628)
    src/lib.rs - Promise<T, E>::fail (line 685)
    src/lib.rs - Promise<T, E>::then (line 598)

test result: FAILED. 22 passed; 6 failed; 0 ignored; 0 measured

error: test failed

Not on nightly.

cc @bcndanos

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions