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

error: could not compile smol_str. #11782

Closed
bigfoxtail opened this issue Sep 21, 2020 · 2 comments
Closed

error: could not compile smol_str. #11782

bigfoxtail opened this issue Sep 21, 2020 · 2 comments
Labels
closed/works-for-me dev-experience OS/Android Fixes related to Android browser functionality OS/Desktop

Comments

@bigfoxtail
Copy link

smol_str version is 0.1.17, dependencies not use 0.1.15
'''
error[E0658]: while is not allowed in a const fn
--> G:\Other\brave\brave-browser\src\brave\build\rustup\0.1.4\registry\src\github.aaakk.us.kg-1ecc6299db9ec823\smol_str-0.1.17\src\lib.rs:58:9
|
58 | / while i < text.len() {
59 | | buf[i] = text.as_bytes()[i];
60 | | i += 1
61 | | }
| |_________^
|
= note: see issue #52000 rust-lang/rust#52000 for more information

error: aborting due to previous error

For more information about this error, try rustc --explain E0658.
error: could not compile smol_str.
'''

@bigfoxtail bigfoxtail added OS/Android Fixes related to Android browser functionality OS/Desktop labels Sep 21, 2020
@bsclifton
Copy link
Member

New version of cargo-audit published, which should pin previous version of smol_str:
rustsec/rustsec#258 (comment)

@bsclifton
Copy link
Member

Confirmed this is fixed after package was updated to 1.12.1 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed/works-for-me dev-experience OS/Android Fixes related to Android browser functionality OS/Desktop
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants