Skip to content

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

Closed

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`.

Activity

  1. jonas-schievink commented on Dec 31, 2019

    @jonas-schievink
    Contributor

    Presumably due to #65244. cc @seanmonstar

  2. added
    C-bugCategory: This is a bug.
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Dec 31, 2019
  3. pnkfelix commented on Jan 2, 2020

    @pnkfelix
    Contributor

    triage: P-high. We may well revert PR #65244; see ongoing discussion in issue #67706

  4. tmandry commented on Jan 7, 2020

    @tmandry
    Member

    Fixed by #67768.

  5. added
    AsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.
    on Jan 7, 2020
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

    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