Skip to content

documentation: fixed bug #74836 being mentioned #145835

@minux-lee

Description

@minux-lee

Location (URL)

#[derive(Clone, TyEncodable, TyDecodable, Hash, HashStable, PartialEq, TypeFoldable, TypeVisitable)]
pub enum Rvalue<'tcx> {
/// Yields the operand unchanged
Use(Operand<'tcx>),
/// Creates an array where each element is the value of the operand.
///
/// This is the cause of a bug in the case where the repetition count is zero because the value
/// is not dropped, see [#74836].
///
/// Corresponds to source code like `[x; 32]`.
///
/// [#74836]: https://github.com/rust-lang/rust/issues/74836
Repeat(Operand<'tcx>, ty::Const<'tcx>),

(More specifically, the lines 1374, 1375, and 1379)

Summary

Hi, I'm reporting the documentation problem where the fixed bug is being mentioned (#74836). The issue was solved, so I don't thing we need the lines:

/// This is the cause of a bug in the case where the repetition count is zero because the value
/// is not dropped, see [#74836].
and
/// [#74836]: https://github.com/rust-lang/rust/issues/74836

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and tools

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions