Skip to content

Conversation

@somniumism
Copy link
Contributor

@somniumism somniumism commented Jan 8, 2020

Currently, Codechain uses the clippy(+nightly-2019-11-06) and the rustfmt(+nightly-2019-11-06).
We need to make codechain use the latest toolchains.
I upgraded the clippy to +nightly-2019-12-19 and the rustfmt to +nigtly-2019-12-19.

I fixed clippy error occurred from new clippy version. The warning is this; clippy waring:using tabs in doc comments is not recommended

Fix #1937

SeungMin Lee and others added 2 commits January 6, 2020 21:47
Currently, Codechain uses fixed-hash@0.2.1v that has a duplicated macro definition.
The duplicated macro makes the latest clippy(+nightly-2019-12-19) fail. So, we need to upgrade it.

When fixed-hash 0.2.5 was applied, an error(E0599) occurred due to incompatibility for some functions.
This problem can be solved as follows.
1. Upgrade Our rust-codechain-primitives(`primtivies`) to use the upgraded fixed-hash.
2. Upgrade libraries using `primitives` used by CodeChain and modules in CodeChain.

However, too many libraries(rlp, rust-codechain-crypto etc) are using
`primitives` that are not updated. Also, this is not a problem that will be solved just by upgrading primitives.
We need a large-scale update to use fixed-hash@≥0.2.5 and later version of some packages.

Fortunately, we checked 0.2.2 had resolved the macro duplication problem. We thought it's best to upgrade to 0.2.2 under the current situation.

Fixed #1938
@somniumism somniumism requested a review from sgkim126 January 8, 2020 04:48
@somniumism
Copy link
Contributor Author

@sgkim126 If it is fine, I will apply it to foundry too.

Currently, Codechain uses the clippy(+nightly-2019-11-06) and the rustfmt(+nightly-2019-11-06).
We need to make codechain use the latest toolchains.
I upgraded the clippy to `+nightly-2019-12-19` and the rustfmt to `+nigtly-2019-12-19`.

Fixed #1937
@majecty
Copy link
Contributor

majecty commented Jan 8, 2020

Could you rebase the branch on the master?

@somniumism somniumism requested a review from majecty January 9, 2020 06:33
@majecty majecty merged commit 194e71f into CodeChain-io:master Jan 9, 2020
@majecty
Copy link
Contributor

majecty commented Jan 10, 2020

@somniumism Could you apply this in Foundry?

@somniumism somniumism deleted the UpgradeTool branch March 8, 2020 17:28
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

Successfully merging this pull request may close these issues.

Upgrade rust toolchains

3 participants