Auto merge of #69094 - Dylan-DPC:rollup-4qe7uv1, r=Dylan-DPC
Rollup of 8 pull requests Successful merges: - #67585 (Improve `char::is_ascii_*` codegen) - #68914 (Speed up `SipHasher128`.) - #68994 (rustbuild: include channel in sanitizers installed name) - #69032 (ICE in nightly-2020-02-08: handle TerminatorKind::Yield in librustc_mir::transform::promote_consts::Validator method) - #69034 (parser: Remove `Parser::prev_token_kind`) - #69042 (Remove backtrace header text) - #69059 (Remove a few unused objects) - #69089 (Properly use the darwin archive format on Apple targets) Failed merges: r? @ghost
This commit is contained in:
commit
2d2be57097
21 changed files with 199 additions and 166 deletions
18
src/test/ui/generator/issue-69017.rs
Normal file
18
src/test/ui/generator/issue-69017.rs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// This issue reproduces an ICE on compile
|
||||
// Fails on 2020-02-08 nightly
|
||||
// regressed commit: https://github.com/rust-lang/rust/commit/f8fd4624474a68bd26694eff3536b9f3a127b2d3
|
||||
//
|
||||
// check-pass
|
||||
|
||||
#![feature(generator_trait)]
|
||||
#![feature(generators)]
|
||||
|
||||
use std::ops::Generator;
|
||||
|
||||
fn gen() -> impl Generator<usize> {
|
||||
|_: usize| {
|
||||
println!("-> {}", yield);
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
|
@ -16,9 +16,9 @@ use std::str;
|
|||
fn main() {
|
||||
let args: Vec<String> = env::args().collect();
|
||||
if args.len() >= 2 && args[1] == "force" {
|
||||
println!("{}", std::backtrace::Backtrace::force_capture());
|
||||
println!("stack backtrace:\n{}", std::backtrace::Backtrace::force_capture());
|
||||
} else if args.len() >= 2 {
|
||||
println!("{}", std::backtrace::Backtrace::capture());
|
||||
println!("stack backtrace:\n{}", std::backtrace::Backtrace::capture());
|
||||
} else {
|
||||
runtest(&args[0]);
|
||||
println!("test ok");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue