Skip to content

fix compile error with rustc 1.77.0-nightly (62d7ed4a6 2024-01-11) #55

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

Merged

Conversation

wenhaozhao
Copy link

mutable reference of mutable static is discouraged for more information, see issue #114447 rust-lang/rust#114447 reference of mutable static is a hard error from 2024 edition

mutable reference of mutable static is discouraged
for more information, see issue #114447 <rust-lang/rust#114447>
reference of mutable static is a hard error from 2024 edition
@luojia65
Copy link
Member

Hi! Can we change the code like let end = &mut ebss as *mut u64; etc. in test-kernel package as well? It'll be also mutable references of mutable static variables. Thanks!

wenhaozhao added 2 commits January 22, 2024 14:48
…24-01-11)

mutable reference of mutable static is discouraged
for more information, see issue #114447 <rust-lang/rust#114447>
reference of mutable static is a hard error from 2024 edition
…ed4a6 2024-01-11)

mutable reference of mutable static is discouraged
for more information, see issue #114447 <rust-lang/rust#114447>
reference of mutable static is a hard error from 2024 edition
@wenhaozhao
Copy link
Author

Hi! Can we change the code like let end = &mut ebss as *mut u64; etc. in test-kernel package as well? It'll be also mutable references of mutable static variables. Thanks!

Ok,I've fix the same problem in test-kernel and bench-kenerl modules,please check

@luojia65
Copy link
Member

LGTM, Thanks!

@luojia65 luojia65 merged commit 2ea3bab into rustsbi:main Jan 22, 2024
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