Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Broken build because of mismatched types #25

Closed
Jasonvdb opened this issue Jul 21, 2020 · 4 comments
Closed

Broken build because of mismatched types #25

Jasonvdb opened this issue Jul 21, 2020 · 4 comments
Milestone

Comments

@Jasonvdb
Copy link
Contributor

Jasonvdb commented Jul 21, 2020

Maybe related to PR

error[E0308]: mismatched types
   --> src/cli/fungible.rs:302:27
    |
302 |                 blinding: blinding_factor,
    |                           ^^^^^^^^^^^^^^^ expected `u64`, found `u32`

warning: use of deprecated item 'std::vec::Vec::<T>::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon.
   --> src/contracts/fungible/data/asset.rs:171:21
    |
171 |         allocations.remove_item(&old_allocation).is_some()
    |                     ^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

error[E0308]: mismatched types
  --> src/contracts/fungible/data/outcoins.rs:52:27
   |
52 |                 blinding: entropy,
   |                           ^^^^^^^ expected `u64`, found `u32`

error[E0308]: mismatched types
  --> src/contracts/fungible/data/outcoins.rs:58:27
   |
58 |                 blinding: entropy,
   |                           ^^^^^^^ expected `u64`, found `u32`

error[E0308]: mismatched types
  --> src/util/seal_spec.rs:42:27
   |
42 |                 blinding: entropy,
   |                           ^^^^^^^ expected `u64`, found `u32`

error[E0308]: mismatched types
  --> src/util/seal_spec.rs:48:27
   |
48 |                 blinding: entropy,
   |                           ^^^^^^^ expected `u64`, found `u32`

error: aborting due to 5 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0308`.
error: could not compile `rgb_node`.
@Jasonvdb Jasonvdb changed the title Broken build because if mismatched types Broken build because of mismatched types Jul 21, 2020
@rajarshimaitra
Copy link
Contributor

rajarshimaitra commented Jul 27, 2020

Hi @Jasonvdb. The break is also present in Travis and I am working on the fix.
Maybe consider reopening?

Yes, indeed it's because of PR#24. Probably I missed some checks.

CC @dr-orlovsky

@Jasonvdb
Copy link
Contributor Author

Hey @rajarshimaitra. I managed to get passed this after rebasing my branch so I just assumed the mistake was on my side and #24 was actually the fix?

@rajarshimaitra
Copy link
Contributor

Hmm, this is not happening in the latest build. It suddenly appeared in my local and tricked me into thinking its an issue. I am still investigating.

@dr-orlovsky
Copy link
Member

Sometimes it is required to delete Cargo.lock file and even target dir to get the updated upstream repo dependencies compiled properly

@dr-orlovsky dr-orlovsky modified the milestones: v0.3.0, v0.1.0 Beta 3 Sep 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants