-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Clean-up FnCtxt::is_destruct_assignment_desugaring
#142740
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
Clean-up FnCtxt::is_destruct_assignment_desugaring
#142740
Conversation
r? @fee1-dead rustbot has assigned @fee1-dead. Use |
Please squash the commits, see https://rustc-dev-guide.rust-lang.org/git.html#squash-your-commits |
@rustbot author |
Reminder, once the PR becomes ready for a review, use |
Just to make sure, this is not needed already when submitting the PR, right? I imagine having the individual commits helps with reviewing... |
rewrite using let-chains
fa87f63
to
fdb76e2
Compare
this is a tiny change that does not need splitting, see #137944 for an example that actually needed splitting |
@bors r+ rollup |
fwiw I did it so that it would've been easier to remove the second commit if requested, but fair enough.. |
Rollup of 10 pull requests Successful merges: - #142458 (Merge unboxed trait object error suggestion into regular dyn incompat error) - #142593 (Add a warning to LateContext::get_def_path) - #142594 (Add DesugaringKind::FormatLiteral) - #142740 (Clean-up `FnCtxt::is_destruct_assignment_desugaring`) - #142780 (Port `#[must_use]` to new attribute parsing infrastructure) - #142798 (Don't fail to parse a struct if a semicolon is used to separate fields) - #142856 (Add a few inline directives in rustc_serialize.) - #142868 (remove few allow(dead_code)) - #142874 (cranelift: fix target feature name typo: "fxsr") - #142877 (Document why tidy checks if `eslint` is installed via `npm`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #142740 - ada4a:is-destruct-assignment-desugaring, r=fee1-dead Clean-up `FnCtxt::is_destruct_assignment_desugaring` I noticed the docstring thing and fixed that; then I thought I'd rewrite the method using let-chains while I'm at it, since that seemed appropriate. But I don't feel too strongly about the second change, so let me know if I should remove it
I noticed the docstring thing and fixed that; then I thought I'd rewrite the method using let-chains while I'm at it, since that seemed appropriate. But I don't feel too strongly about the second change, so let me know if I should remove it