Skip to content

Commit 7a8f715

Browse files
committed
Merge fix for accidental file modification.
2 parents c3e7788 + 3d5fa35 commit 7a8f715

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/liblibc

src/librustc_trans/trans/expr.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ pub fn trans_into<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
153153
// If we see a const here, that's because it evaluates to a type with zero size. We
154154
// should be able to just discard it, since const expressions are guaranteed not to
155155
// have side effects. This seems to be reached through tuple struct constructors being
156-
// passed zero-size constants.
156+
// passed repeat array constructors with zero-size constants as the expression to be
157+
// repeated.
157158
if let hir::ExprPath(..) = expr.node {
158159
match bcx.def(expr.id) {
159160
Def::Const(_) | Def::AssociatedConst(_) => {

0 commit comments

Comments
 (0)