Skip to content
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

Automated nightly rustfmt (2024-03-10) #2552

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Mar 8, 2024

Automated nightly rustfmt changes by create-pull-request GitHub action

@tcharding
Copy link
Member

tcharding commented Mar 8, 2024

ACK 0499c37

In future you'll just one-ack merge these won't you @apoelstra?

sanket1729
sanket1729 previously approved these changes Mar 8, 2024
@apoelstra
Copy link
Member

@tcharding yeah, in future I'll one-ACK merge. The issue right now is that CI doesn't get run (but after #2548 it should). So it's hard to this at all. I guess, when I test locally I'm using the latest rustc nightly (including now the docstests, and including clippy) so that's some good evidence that the latest nightly is ok.

But anyway, I'm going to leave this open and see if, in 10 hours when the script runs again, it does so with the alternate token that allows CI to run.

@apoelstra
Copy link
Member

Locally I'm getting

error: item has both inner and outer attributes
    --> units/src/amount.rs:1587:1
     |
1587 | / #[cfg(feature = "serde")]
1588 | | pub mod serde {
1589 | |     // methods are implementation of a standardized serde-specific signature
1590 | |     #![allow(missing_docs)]
...    |
1605 | |     //! }
1606 | |     //! ```
     | |___________^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style
     = note: `-D clippy::mixed-attributes-style` implied by `-D warnings`
     = help: to override `-D warnings` add `#[allow(clippy::mixed_attributes_style)]`

error: item has both inner and outer attributes
    --> units/src/amount.rs:1795:5
     |
1795 | /     #[cfg(feature = "alloc")]
1796 | |     pub mod as_btc {
1797 | |         //! Serialize and deserialize [`Amount`](crate::Amount) as JSON numbers denominated in BTC.
1798 | |         //! Use with `#[serde(with = "amount::serde::as_btc")]`.
     | |________________________________________________________________^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style

which is an error I've never seen before and I believe was introduced with today's nightly.

So neither of you should have acked this :).

@apoelstra
Copy link
Member

We can't even disable this lint rust-lang/rust-clippy#12436

@Kixunil
Copy link
Collaborator

Kixunil commented Mar 8, 2024

We can't even disable this lint rust-lang/rust-clippy#12436

Good that we've just pinned it then. :)

@tcharding
Copy link
Member

So neither of you should have acked this :).

ACK means good by me to merge assuming CI passes, right? I did not, and was not planning on starting to, do local testing before acking PRs - I only locally test my own PRs.

@github-actions github-actions bot changed the title Automated daily update to rustc (to nightly-2024-03-07) Automated nightly rustfmt (2024-03-10) Mar 10, 2024
@tcharding
Copy link
Member

Bots don't rebase.

@tcharding tcharding closed this Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants