-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Two HIR tweaks #57658
New issue
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No 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? No Sign in to your account
Two HIR tweaks #57658
Conversation
It's simpler and makes some benchmark run up to 1% faster. It also makes `hir::ExprKind` more like `ast::ExprKind` (which underwent the equivalent change in rust-lang#55777).
It's identical to `ast::Label`.
r? @oli-obk (rust_highfive has picked a reviewer for you, use r? to override) |
Thanks, @nnethercote! @bors r+ rollup |
📌 Commit dc45528 has been approved by |
Should these wait until 1.32 releases/branches, to avoid causing problems for tools like clippy? |
Yeah, better safe than sorry. @bors r- |
1.32 has been released. @bors r=michaelwoerister |
📌 Commit dc45528 has been approved by |
…woerister Two HIR tweaks Two HIR tweaks that make things slightly simpler and faster.
…woerister Two HIR tweaks Two HIR tweaks that make things slightly simpler and faster.
…woerister Two HIR tweaks Two HIR tweaks that make things slightly simpler and faster.
…woerister Two HIR tweaks Two HIR tweaks that make things slightly simpler and faster.
Rollup of 11 pull requests Successful merges: - #57107 (Add a regression test for mutating a non-mut #[thread_local]) - #57132 (Document that `-C opt-level=0` implies `-C debug-assertions`.) - #57212 (docs(rustc): Link to the book's source in rustc) - #57302 (Fix unused_assignments false positive) - #57350 (Better error note on unimplemented Index trait for string) - #57635 (use structured macro and path resolve suggestions) - #57650 (librustc_metadata: Pass a default value when unwrapping a span) - #57657 (Add regression test to close #53787) - #57658 (Two HIR tweaks) - #57720 (Fix suggestions given mulitple bad lifetimes) - #57725 (Use structured suggestion to surround struct literal with parenthesis) Failed merges: r? @ghost
Two HIR tweaks that make things slightly simpler and faster.