Skip to content

Nightly 2019-12-29 causes reached the type-length limit error in previously working code #67757

Closed
@sdroege

Description

@sdroege

cargo bisect-rustc considers 3a087ad the culprit.

Can be reproduced on https://github.com/sdroege/async-tungstenite by running cargo test:

error: reached the type-length limit while instantiating `std::thread::LocalKey::<std::cel...ure::Future, ()}]>, ()}]>]], ()>`
    |
    = note: consider adding a `#![type_length_limit="1364215"]` attribute to your crate

error: aborting due to previous error

error: could not compile `async-tungstenite`.
warning: build failed, waiting for other jobs to finish...
error: reached the type-length limit while instantiating `async_task::utils::abort_on_pani..., async_std::task::task::Task>]>`
  --> /home/slomo/.cargo/registry/src/github.com-1ecc6299db9ec823/async-task-1.1.1/src/utils.rs:8:1
   |
8  | / pub(crate) fn abort_on_panic<T>(f: impl FnOnce() -> T) -> T {
9  | |     struct Bomb;
10 | |
11 | |     impl Drop for Bomb {
...  |
20 | |     t
21 | | }
   | |_^
   |
   = note: consider adding a `#![type_length_limit="1363798"]` attribute to your crate

error: aborting due to previous error

error: could not compile `async-tungstenite`.
warning: build failed, waiting for other jobs to finish...
error: reached the type-length limit while instantiating `std::thread::LocalKey::<std::cel...::Message>>, ()}]>, ()}]>]], ()>`
    |
    = note: consider adding a `#![type_length_limit="1367031"]` attribute to your crate

error: aborting due to previous error

error: could not compile `async-tungstenite`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-async-awaitArea: Async & AwaitAsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.C-bugCategory: This is a bug.P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions