Skip to content
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

Update rust 1.81.0 #1009

Merged
merged 5 commits into from
Oct 2, 2024
Merged

Update rust 1.81.0 #1009

merged 5 commits into from
Oct 2, 2024

Conversation

zjb0807
Copy link
Contributor

@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

Copy link

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
4 of 5 checks passed
@zjb0807 zjb0807 deleted the update-rust-1.81.0 branch October 2, 2024 01:17
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