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

fix feature typo #1316

Merged
merged 1 commit into from
Jun 2, 2023
Merged

fix feature typo #1316

merged 1 commit into from
Jun 2, 2023

Conversation

ihciah
Copy link
Contributor

@ihciah ihciah commented Jun 2, 2023

No description provided.

@dhardy
Copy link
Member

dhardy commented Jun 2, 2023

LGTM.

Unrelated error:

error[E0658]: use of unstable library feature 'trusted_len'
   --> src/distributions/distribution.rs:163:15
    |
163 | impl<D, R, T> iter::TrustedLen for DistIter<D, R, T>
    |               ^^^^^^^^^^^^^^^^
    |
    = note: see issue #37572 <https://github.com/rust-lang/rust/issues/37572> for more information
    = help: add `#![feature(trusted_len)]` to the crate attributes to enable

error[E0200]: the trait `TrustedLen` requires an `unsafe impl` declaration
   --> src/distributions/distribution.rs:163:1
    |
163 | impl<D, R, T> iter::TrustedLen for DistIter<D, R, T>
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: the trait `TrustedLen` enforces invariants that the compiler can't check. Review the trait documentation and make sure this implementation upholds those invariants before adding the `unsafe` keyword
help: add `unsafe` to this trait implementation
    |
163 | unsafe impl<D, R, T> iter::TrustedLen for DistIter<D, R, T>
    | ++++++

@dhardy dhardy merged commit a747b1d into rust-random:master Jun 2, 2023
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