-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Modify MIR building to drop repeat expressions with length zero #95935
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
Conversation
r? @oli-obk (rust-highfive has picked a reviewer for you, use r? to override) |
(wow, highfive really likes assigning you to my PRs) Its important to note that fn main() {
let _: &'static [String; 0] = &[String::new(); 0];
} compiles under this PR, which was not the case before, meaning we could not undo this after it hits stable |
Hmm, is that check overly restrictive or is there something I'm not understanding here? |
Ah.. promotion allows |
The job Click to see the possible cause of the failure (guessed by this bot)
|
Closes #74836 .
This version of things was sort of discussed in the issue, but decided against for a reason I don't quite understand. I'm putting this PR up to demonstrate the intended fix, and I've asked on Zulip for clarification over why this is considered problematic.