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

rubyfmt 0.10.0 failed to build against rust 1.79.0 #467

Open
chenrui333 opened this issue Jun 16, 2024 · 0 comments
Open

rubyfmt 0.10.0 failed to build against rust 1.79.0 #467

chenrui333 opened this issue Jun 16, 2024 · 0 comments

Comments

@chenrui333
Copy link
Contributor

seeing some build errors while upgrading rust to 1.79.0

error build log
  ==> cargo install
  Last 150 lines from /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs/rubyfmt/01.cargo:
      --> librubyfmt/src/ripper_tree_types.rs:1413:16
       |
  1413 |     NotPresent(bool),
       |     ---------- ^^^^
       |     |
       |     field in this variant
       |
  help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
       |
  1413 |     NotPresent(()),
       |                ~~
  
  error: field `3` is never read
      --> librubyfmt/src/ripper_tree_types.rs:1424:5
       |
  1420 | pub struct ArgsAddBlock(
       |            ------------ field in this struct
  ...
  1424 |     pub StartEnd,
       |     ^^^^^^^^^^^^
       |
       = note: `ArgsAddBlock` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
  help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
       |
  1424 |     (),
       |     ~~
  
  error: field `0` is never read
      --> librubyfmt/src/ripper_tree_types.rs:1430:16
       |
  1430 |     EmptyParen((paren_tag, bool)),
       |     ---------- ^^^^^^^^^^^^^^^^^
       |     |
       |     field in this variant
       |
  help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
       |
  1430 |     EmptyParen(()),
       |                ~~
  
  error: field `1` is never read
      --> librubyfmt/src/ripper_tree_types.rs:1933:35
       |
  1933 | pub struct Period(pub period_tag, pub String, pub LineCol);
       |            ------                 ^^^^^^^^^^
       |            |
       |            field in this struct
       |
       = note: `Period` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
  help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
       |
  1933 | pub struct Period(pub period_tag, (), pub LineCol);
       |                                   ~~
  
  
       |
  2114 |     Period(()),
       |            ~~
  
  error: field `0` is never read
      --> librubyfmt/src/ripper_tree_types.rs:2115:8
       |
  2115 |     Op(Operator),
       |     -- ^^^^^^^^
       |     |
       |     field in this variant
       |
  help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
       |
  2115 |     Op(()),
       |        ~~
  
  error: field `0` is never read
      --> librubyfmt/src/ripper_tree_types.rs:2280:35
       |
  2280 |     EmptyBecauseParamsWerePresent(bool),
       |     ----------------------------- ^^^^
       |     |
       |     field in this variant
       |
  help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
       |
  2280 |     EmptyBecauseParamsWerePresent(()),
       |                                   ~~
  
  error: field `0` is never read
      --> librubyfmt/src/ripper_tree_types.rs:2281:36
       |
  2281 |     NilBecauseParamsWereNotPresent(Option<()>),
       |     ------------------------------ ^^^^^^^^^^
       |     |
       |     field in this variant
       |
  help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
       |
  2281 |     NilBecauseParamsWereNotPresent(()),
       |                                    ~~
  
  error: could not compile `rubyfmt` (lib) due to 17 previous errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant