-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Huge compilation time for small snippet using async and explicit lifetimes #72051
Labels
A-lifetimes
Area: Lifetimes / regions
C-bug
Category: This is a bug.
I-hang
Issue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.
P-high
High priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
somewhat minimized: pub async fn query<'a>(_: &(), _: &(), params: (&(dyn std::any::Any + 'a),) ) {}
fn main() {} To replicate this I needed:
|
@lcnr's repro is a regression in 1.43. It compiles immediately with 1.39 through 1.42. |
I am currently bisecting this using //- main.rs
pub async fn query<'a>(_: &(), _: &(), params: (&(dyn std::any::Any + 'a),) ) {}
fn main() {} #- test.sh
timeout 1 rustc main.rs --edition 2018 $ cargo bisect-rustc --script ./test.sh --access github |
FYI @nikomatsakis, @Centril, @matthewjasper who had context on #65232. |
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this issue
May 13, 2020
…matsakis Fix hang in lexical_region_resolve Regionck was stuck in a loop where a region value was changing between two equal regions. Closes rust-lang#72051
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-lifetimes
Area: Lifetimes / regions
C-bug
Category: This is a bug.
I-hang
Issue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.
P-high
High priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
(Playground)
Errors:
Backtrace:
@rustbot modify labels: +I-hang +T-compiler +C-bug +A-lifetimes
The text was updated successfully, but these errors were encountered: