Skip to content

Commit b716bc9

Browse files
committed
Merge pull request #30166 from brson/beta-next
Beta next
2 parents 1f7ec31 + c2bff8b commit b716bc9

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

mk/main.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CFG_RELEASE_NUM=1.5.0
1818
# An optional number to put after the label, e.g. '.2' -> '-beta.2'
1919
# NB Make sure it starts with a dot to conform to semver pre-release
2020
# versions (section 9)
21-
CFG_PRERELEASE_VERSION=.4
21+
CFG_PRERELEASE_VERSION=.5
2222

2323
# Append a version-dependent hash to each library, so we can install different
2424
# versions in the same place

src/llvm

src/rustllvm/llvm-auto-clean-trigger

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# If this file is modified, then llvm will be forcibly cleaned and then rebuilt.
22
# The actual contents of this file do not matter, but to trigger a change on the
33
# build bots then the contents should be changed so git updates the mtime.
4-
2015-10-18
4+
2015-12-02

src/test/run-pass/issue-30081.rs

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
// This used to segfault #30081
12+
13+
pub enum Instruction {
14+
Increment(i8),
15+
Loop(Box<Box<()>>),
16+
}
17+
18+
fn main() {
19+
let instrs: Option<(u8, Box<Instruction>)> = None;
20+
instrs.into_iter()
21+
.map(|(_, instr)| instr)
22+
.map(|instr| match *instr { _other => {} })
23+
.last();
24+
}

0 commit comments

Comments
 (0)