Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an ICE with error types in a vec
Closes #16783
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT | ||
// file at the top-level directory of this distribution and at | ||
// http://rust-lang.org/COPYRIGHT. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
|
||
pub fn main() { | ||
let x = [1, 2, 3]; | ||
//~^ ERROR cannot determine a type for this local variable: cannot determine the type of this | ||
let y = x.as_slice(); | ||
} |
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from luqmana
at nrc@d13fe1c
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging nick29581/rust/dst-bug-1 = d13fe1c into auto
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nick29581/rust/dst-bug-1 = d13fe1c merged ok, testing candidate = fc46da11
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
failure: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/1097
exception: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/1097
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1096
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1097
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/1092
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1093
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1092
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/1098
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1093
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1092
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1095
exception: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/1096
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/1094
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/1095
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from luqmana
at nrc@d13fe1c
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging nick29581/rust/dst-bug-1 = d13fe1c into auto
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nick29581/rust/dst-bug-1 = d13fe1c merged ok, testing candidate = 55a2654c
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
failure: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1101
exception: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/1101
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/1101
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1100
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/1096
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1097
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1096
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/1102
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1097
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1096
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1099
exception: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/1100
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/1098
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/1099
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from luqmana
at nrc@d13fe1c
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging nick29581/rust/dst-bug-1 = d13fe1c into auto
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nick29581/rust/dst-bug-1 = d13fe1c merged ok, testing candidate = 1d74b34f
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
failure: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/1103
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from luqmana
at nrc@d13fe1c
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging nick29581/rust/dst-bug-1 = d13fe1c into auto
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nick29581/rust/dst-bug-1 = d13fe1c merged ok, testing candidate = b3847f99
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
failure: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1105
exception: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/1105
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/1105
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1104
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/1100
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1101
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1100
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/1106
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1101
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1100
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1103
exception: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/1104
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/1102
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/1103
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from luqmana
at nrc@d13fe1c
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging nick29581/rust/dst-bug-1 = d13fe1c into auto
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nick29581/rust/dst-bug-1 = d13fe1c merged ok, testing candidate = 2100899e
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
failure: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1108
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1106
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from luqmana
at nrc@d13fe1c
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging nick29581/rust/dst-bug-1 = d13fe1c into auto
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nick29581/rust/dst-bug-1 = d13fe1c merged ok, testing candidate = 12b438c
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/1110
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/1110
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1109
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1110
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/1105
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1106
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1105
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/1111
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1106
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1105
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1108
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/1109
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/1107
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/1108
d13fe1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 12b438c