Compiler is still slow in rejecting "Invalid left-hand side of assignment" · Issue #103411 · 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

rustc takes 75ms to reject each line of 1 = ();.

Testcase (100 repetitions)

fn main() { 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); 1 = (); }

Meta

rustc --version --verbose:

rustc 1.66.0-nightly (dcb376115 2022-10-20)
binary: rustc
commit-hash: dcb376115066d111dbf5f13d5ac2a2dbe8c12add
commit-date: 2022-10-20
host: x86_64-apple-darwin
release: 1.66.0-nightly
LLVM version: 15.0.2

Observations

@rustbot label +I-compiletime