Skip to content

Update rust 1.81.0#1009

Merged
zjb0807 merged 5 commits into
masterfrom
update-rust-1.81.0
Oct 2, 2024
Merged

Update rust 1.81.0#1009
zjb0807 merged 5 commits into
masterfrom
update-rust-1.81.0

Conversation

@zjb0807
Copy link
Copy Markdown
Member

@zjb0807 zjb0807 commented Oct 1, 2024

Related: paritytech/srtool#87

Running the cargo test command fails with an error:

error[E0433]: failed to resolve: could not find `try_runtime_enabled` in `frame_support`
   --> /home/xxx/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/frame-system-37.1.0/src/lib.rs:260:1
    |
260 | #[frame_support::pallet]
    | ^^^^^^^^^^^^^^^^^^^^^^^^ could not find `try_runtime_enabled` in `frame_support`
    |
    = note: this error originates in the attribute macro `frame_support::pallet` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `try_runtime_enabled` in `frame_support`
   --> /home/xxx/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/frame-system-37.1.0/src/lib.rs:637:12
    |
637 |     #[pallet::hooks]
    |               ^^^^^ could not find `try_runtime_enabled` in `frame_support`

For more information about this error, try `rustc --explain E0433`.

Solution:

cargo update -p frame-support-procedural --precise 30.0.2

So I temporarily updated .github/workflows/test.yml to get CI working.

TODO:

  • Fix it after stable2409

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.67%. Comparing base (144a962) to head (b34d073).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1009      +/-   ##
==========================================
- Coverage   66.12%   65.67%   -0.45%     
==========================================
  Files          49       49              
  Lines        3690     3700      +10     
==========================================
- Hits         2440     2430      -10     
- Misses       1250     1270      +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zjb0807 zjb0807 merged commit 7d60899 into master Oct 2, 2024
@zjb0807 zjb0807 deleted the update-rust-1.81.0 branch October 2, 2024 01:17
aurexav pushed a commit to darwinia-network/open-runtime-module-library that referenced this pull request Dec 18, 2024
* fix clippy with rust-1.81.0

* add Cargo.lock to pin frame-support-procedural 30.0.2

* remove Cargo.lock and fix CI

* fix CI

* fix zepter CI

Signed-off-by: Xavier Lau <x@acg.box>
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.

2 participants