Skip to content

Commit

Permalink
Adjust comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdleffler committed Jan 30, 2016
1 parent 29075e2 commit a66892b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/liblibc
3 changes: 2 additions & 1 deletion src/librustc_trans/trans/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ pub fn trans_into<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
// If we see a const here, that's because it evaluates to a type with zero size. We
// should be able to just discard it, since const expressions are guaranteed not to
// have side effects. This seems to be reached through tuple struct constructors being
// passed zero-size constants.
// passed repeat array constructors with zero-size constants as the expression to be
// repeated.
if let hir::ExprPath(..) = expr.node {
match bcx.def(expr.id) {
Def::Const(_) | Def::AssociatedConst(_) => {
Expand Down

0 comments on commit a66892b

Please sign in to comment.