-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and tools
Description
Location (URL)
rust/compiler/rustc_middle/src/mir/syntax.rs
Lines 1367 to 1380 in a1dbb44
#[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:
rust/compiler/rustc_middle/src/mir/syntax.rs
Lines 1374 to 1375 in a1dbb44
/// This is the cause of a bug in the case where the repetition count is zero because the value | |
/// is not dropped, see [#74836]. |
rust/compiler/rustc_middle/src/mir/syntax.rs
Line 1379 in a1dbb44
/// [#74836]: https://github.com/rust-lang/rust/issues/74836 |
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and tools