-
Notifications
You must be signed in to change notification settings - Fork 713
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
Fix a compilation error (maybe temporary) #2046
Fix a compilation error (maybe temporary) #2046
Conversation
As you prefer :) I would have voted for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It seems that we need to change something quick! The standard library will pass over ```bash Compiling massa_consensus v0.1.0 (/home/adrien/Documents/repos/massa/massa-consensus) warning: an associated function with this name may be added to the standard library in the future --> massa-consensus/src/pos.rs:522:37 | 522 | let bits_u8_len = n_entries.div_ceil(&u8::BITS) as usize; | ^^^^^^^^ | = note: `#[warn(unstable_name_collisions)]` on by default = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! = note: for more information, see issue #48919 <rust-lang/rust#48919> = help: call with fully qualified syntax `num::Integer::div_ceil(...)` to keep using the current method = help: add `#![feature(int_roundings)]` to the crate attributes to enable `core::num::<impl u32>::div_ceil` ``` Opt for the fully qualified syntax
844e099
to
c898dc5
Compare
Bors merge |
2046: Fix a compilation error (maybe temporary) r=adrien-zinger a=adrien-zinger It seems that we need to change something quick! The standard library will pass over ```bash Compiling massa_consensus v0.1.0 (/home/adrien/Documents/repos/massa/massa-consensus) warning: an associated function with this name may be added to the standard library in the future --> massa-consensus/src/pos.rs:522:37 | 522 | let bits_u8_len = n_entries.div_ceil(&u8::BITS) as usize; | ^^^^^^^^ | = note: `#[warn(unstable_name_collisions)]` on by default = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! = note: for more information, see issue #48919 <rust-lang/rust#48919> = help: call with fully qualified syntax `num::Integer::div_ceil(...)` to keep using the current method = help: add `#![feature(int_roundings)]` to the crate attributes to enable `core::num::<impl u32>::div_ceil` ``` Opt for the fully qualified syntax Co-authored-by: Adrien Zinger <zinger.ad@gmail.com>
Build failed: |
bors merge |
2046: Fix a compilation error (maybe temporary) r=damip a=adrien-zinger It seems that we need to change something quick! The standard library will pass over ```bash Compiling massa_consensus v0.1.0 (/home/adrien/Documents/repos/massa/massa-consensus) warning: an associated function with this name may be added to the standard library in the future --> massa-consensus/src/pos.rs:522:37 | 522 | let bits_u8_len = n_entries.div_ceil(&u8::BITS) as usize; | ^^^^^^^^ | = note: `#[warn(unstable_name_collisions)]` on by default = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! = note: for more information, see issue #48919 <rust-lang/rust#48919> = help: call with fully qualified syntax `num::Integer::div_ceil(...)` to keep using the current method = help: add `#![feature(int_roundings)]` to the crate attributes to enable `core::num::<impl u32>::div_ceil` ``` Opt for the fully qualified syntax Co-authored-by: Adrien Zinger <zinger.ad@gmail.com>
Build failed: |
@adrien-zinger this one can be solved now by cherrypicking |
@damip has it been cherry picked ? Is someone working one that ? |
bors merge |
2046: Fix a compilation error (maybe temporary) r=damip a=adrien-zinger It seems that we need to change something quick! The standard library will pass over ```bash Compiling massa_consensus v0.1.0 (/home/adrien/Documents/repos/massa/massa-consensus) warning: an associated function with this name may be added to the standard library in the future --> massa-consensus/src/pos.rs:522:37 | 522 | let bits_u8_len = n_entries.div_ceil(&u8::BITS) as usize; | ^^^^^^^^ | = note: `#[warn(unstable_name_collisions)]` on by default = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! = note: for more information, see issue #48919 <rust-lang/rust#48919> = help: call with fully qualified syntax `num::Integer::div_ceil(...)` to keep using the current method = help: add `#![feature(int_roundings)]` to the crate attributes to enable `core::num::<impl u32>::div_ceil` ``` Opt for the fully qualified syntax Co-authored-by: Adrien Zinger <zinger.ad@gmail.com>
Build failed: |
bors merge |
…fix_compilation_error
Canceled. |
bors merge |
2046: Fix a compilation error (maybe temporary) r=damip a=adrien-zinger It seems that we need to change something quick! The standard library will pass over ```bash Compiling massa_consensus v0.1.0 (/home/adrien/Documents/repos/massa/massa-consensus) warning: an associated function with this name may be added to the standard library in the future --> massa-consensus/src/pos.rs:522:37 | 522 | let bits_u8_len = n_entries.div_ceil(&u8::BITS) as usize; | ^^^^^^^^ | = note: `#[warn(unstable_name_collisions)]` on by default = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! = note: for more information, see issue #48919 <rust-lang/rust#48919> = help: call with fully qualified syntax `num::Integer::div_ceil(...)` to keep using the current method = help: add `#![feature(int_roundings)]` to the crate attributes to enable `core::num::<impl u32>::div_ceil` ``` Opt for the fully qualified syntax Co-authored-by: Adrien Zinger <zinger.ad@gmail.com> Co-authored-by: damip <damipator@gmail.com>
Build failed: |
bors merge |
2046: Fix a compilation error (maybe temporary) r=damip a=adrien-zinger It seems that we need to change something quick! The standard library will pass over ```bash Compiling massa_consensus v0.1.0 (/home/adrien/Documents/repos/massa/massa-consensus) warning: an associated function with this name may be added to the standard library in the future --> massa-consensus/src/pos.rs:522:37 | 522 | let bits_u8_len = n_entries.div_ceil(&u8::BITS) as usize; | ^^^^^^^^ | = note: `#[warn(unstable_name_collisions)]` on by default = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! = note: for more information, see issue #48919 <rust-lang/rust#48919> = help: call with fully qualified syntax `num::Integer::div_ceil(...)` to keep using the current method = help: add `#![feature(int_roundings)]` to the crate attributes to enable `core::num::<impl u32>::div_ceil` ``` Opt for the fully qualified syntax Co-authored-by: Adrien Zinger <zinger.ad@gmail.com> Co-authored-by: damip <damipator@gmail.com>
This is already merged in cautious bassoon. You can close this pr |
Timed out. |
It seems that we need to change something quick! The standard library will pass over
Opt for the fully qualified syntax