-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Adjust UI tests for unit_bindings
lint
#112549
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
e5e79b0
to
beff1c2
Compare
91d7c03
to
8f0d6b1
Compare
This comment has been minimized.
This comment has been minimized.
- Either explicitly annotate `let x: () = expr;` where `x` has unit type, or remove the unit binding to leave only `expr;` instead. - Fix disjoint-capture-in-same-closure test
8f0d6b1
to
edafbaf
Compare
r? Nilstrieb |
☀️ Test successful - checks-actions |
Finished benchmarking commit (2ca8d35): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 647.719s -> 647.795s (0.01%) |
let x: () = expr;
wherex
has unit type, or remove the unit binding to leave onlyexpr;
instead.let () = init;
orlet pat = ();
where appropriate.tests/ui/closures/2229_closure_analysis/run_pass/disjoint-capture-in-same-closure.rs
.Note that unfortunately there's a lot of UI tests, there are a couple of places where I may have left something like
let (): ()
(this is not needed but is left over from an ealier version of the lint) which is bad style.This PR is to help with the
unit_bindings
lint at #112380.