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

simple_hash unstable library feature in test #2907

Closed
HassanAliKadhem opened this issue Mar 23, 2025 · 7 comments
Closed

simple_hash unstable library feature in test #2907

HassanAliKadhem opened this issue Mar 23, 2025 · 7 comments
Assignees

Comments

@HassanAliKadhem
Copy link

simple_hash

there seems to be an issue with the test. when i run the test it says:

error[E0658]: use of unstable library feature 'iter_repeat_n' --> src/main.rs:55:21 | 55 | let words = std::iter::repeat_n("one", 9).collect::<Vec<_>>(); | ^^^^^^^^^^^^^^^^^^^ | = note: see issue #104434 <https://github.com/rust-lang/rust/issues/104434> for more information

my code doesn't use "iter_repeat_n" it's i checked the tests repository and i found it there:
https://github.com/01-edu/rust-tests/blob/master/tests/simple_hash_test/src/main.rs

rustup 1.28.1 (2025-03-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active rustc version is rustc 1.85.0 (4d91de4e4 2025-02-17)

I'm on MacOS 15.3.2 (24D81)

when i tried to use "iter_repeat_n" it worked on my machine. so the test rust version is the one that considers it unstable

@pedrodesu pedrodesu self-assigned this Mar 24, 2025
@pedrodesu
Copy link
Contributor

Hello @HassanAliKadhem!

Thank you for the feedback!

Indeed, iter_repeat_n is used on one of the tests, so it would always fail, independently of you using it or not. Furthermore, this function is stable since rustc 1.82.0, so it's odd you're getting that error, as both our platform and your computer seem to use a newer version.

Could you please clarify what school you're in? Given what I mentioned above, I suspect it could be a local issue. Thank you.

@HassanAliKadhem
Copy link
Author

HassanAliKadhem commented Mar 24, 2025

Thank you for your reply

Im in the Bahrain school

@pedrodesu
Copy link
Contributor

I just pushed a change which I believe will solve your situation. Please try again in a few minutes and let me know if the problem is solved.

@HassanAliKadhem
Copy link
Author

i just tried it now and it gave me the same error. should i wait longer ?

@pedrodesu
Copy link
Contributor

Indeed, I missed something on my end. Please try again now and let me know if it's fixed!

@HassanAliKadhem
Copy link
Author

it worked now
thank you very much

@pedrodesu
Copy link
Contributor

Good to hear! Thank you for your patience.

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

No branches or pull requests

2 participants