Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Fixed build warnings #6664

Merged
merged 3 commits into from
Oct 11, 2017
Merged

Fixed build warnings #6664

merged 3 commits into from
Oct 11, 2017

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Oct 6, 2017

No description provided.

@arkpar arkpar added A2-insubstantial 👶 Pull request requires no code review (e.g., a sub-repository hash update). M4-core ⛓ Core client code / Rust. labels Oct 6, 2017
@@ -102,7 +102,7 @@ fn implement_webapp(cx: &ExtCtxt, builder: &aster::AstBuilder, item: &Item, push
let files_impl = quote_item!(cx,
impl $type_name {
fn files() -> ::std::collections::HashMap<&'static str, File> {
let mut files = ::std::collections::HashMap::new();
Copy link
Collaborator

@tomusdrw tomusdrw Oct 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That won't work if $statements are not empty. Actually it shouldn't be printed while compiling Parity at all (since we always have some files there). Maybe better to supress the warning?

@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. and removed A2-insubstantial 👶 Pull request requires no code review (e.g., a sub-repository hash update). labels Oct 6, 2017
@@ -101,6 +101,7 @@ fn implement_webapp(cx: &ExtCtxt, builder: &aster::AstBuilder, item: &Item, push

let files_impl = quote_item!(cx,
impl $type_name {
#[warn(unused_mut)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ishould it be #[allow(unused_mut)]?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weirdly enough it did not produce any warnings when building like this.

@gavofyork
Copy link
Contributor

doesn't build

@5chdn 5chdn added the A4-awaitingci 🤖 Pull request is waiting for changes on the CI to complete tests before review/merge can begin. label Oct 9, 2017
@5chdn
Copy link
Contributor

5chdn commented Oct 9, 2017

CI:

fatal runtime error: allocator memory exhausted

@paritytech/ci ^

@arkpar arkpar removed the A4-awaitingci 🤖 Pull request is waiting for changes on the CI to complete tests before review/merge can begin. label Oct 11, 2017
@arkpar arkpar merged commit 690f32c into master Oct 11, 2017
@arkpar arkpar deleted the warnings-fix branch October 11, 2017 07:55
@5chdn 5chdn added this to the 1.8 milestone Oct 11, 2017
@5chdn 5chdn mentioned this pull request Oct 11, 2017
67 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants