Skip to content

Non returning compilation on 1.48, 1.49, 1.50-beta and nightly-2021-01-13 #81004

Open
@krtab

Description

@krtab

Hi!

The crate located here:
https://github.com/krtab/diff/releases/tag/infiloop at commit c7d13ab3473147785a7f35f97461d828e9421fd2
Makes cargo/rustc go to an infinite loop. (I tried for 4 hours, it went up to 80GB of RAM).

git clone 'https://github.com/krtab/diff.git'
cd diff
git checkout c7d13ab3473147785a7f35f97461d828e9421fd2
cargo check

Given the amount of type-level black-magic, I'd wager there is some cycle/infinite recursion when trying to type-check.

Meta

rustc --version --verbose:

rustc 1.49.0 (e1884a8e3 2020-12-29)
binary: rustc
commit-hash: e1884a8e3c3e813aada8254edfa120e85bf5ffca
commit-date: 2020-12-29
host: x86_64-unknown-linux-gnu
release: 1.49.0

I have also tried 1.50-beta and today's nightly, and ask someone to test 1.48, to no avail.

Given that it doesn't finish, there is no backtrace.

Let me know how I can help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-hangIssue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions