Hang with ADT const param, self-mention in where clause · Issue #103770 · rust-lang/rust (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@jruderman

Description

@jruderman

The compiler hangs on:

#![feature(generic_const_exprs)] #![feature(adt_const_params)] #![allow(incomplete_features)] #![allow(dead_code)]

#[derive(PartialEq, Eq)] struct U;

struct S() where S<{ U }>:;

fn main() {}

Hang sample

Version

rustc 1.66.0-nightly (0da281b60 2022-10-27)
binary: rustc
commit-hash: 0da281b6068a7d889ae89a9bd8991284cc9b7535
commit-date: 2022-10-27
host: x86_64-apple-darwin
release: 1.66.0-nightly
LLVM version: 15.0.2

Regression

searched nightlies: from nightly-2022-06-16 to nightly-2022-10-28
regressed nightly: nightly-2022-06-30
searched commit range: 8308806...ddcbba0
regressed commit: 116edb6 (#98542)

@rustbot label +A-const-generics +F-generic_const_exprs +I-hang +T-compiler