8000 Rollup of 9 pull requests by kennytm · Pull Request #52433 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

Rollup of 9 pull requests #52433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Jul 17, 2018
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
0339244
Deny bare trait objects in src/librustc_errors
ljedrz Jul 12, 2018
384d04d
Reduce the number of clone()s needed in obligation_forest
ljedrz Jul 12, 2018
65e6b2b
Pass edition flags to compiler from rustdoc as expected
GuillaumeGomez Jul 14, 2018
02edc7e
AsRef doc wording tweaks
heycam Jul 15, 2018
21a1796
update nomicon
RalfJung Jul 16, 2018
f2f6cea
Rollup merge of #52285 - ljedrz:dyn_librustc_driver, r=nikomatsakis
kennytm Jul 16, 2018
827f656
Enable incremental independent of stage
Mark-Simulacrum Jul 16, 2018
d85bcef
Calculate the exact capacity for 2 HashMaps
ljedrz Jul 16, 2018
bc2f109
Rollup merge of #52392 - heycam:patch-1, r=steveklabnik
kennytm Jul 16, 2018
a9bcbb2
Block beta if clippy breaks.
kennytm Jul 16, 2018
f684f80
update miri
RalfJung Jul 13, 2018
114dc69
update miri (Windows tests fixed)
RalfJung Jul 16, 2018
9e10b12
update miri
RalfJung Jul 17, 2018
68b2928
Rollup merge of #52430 - RalfJung:nomicon, r=kennytm
kennytm Jul 16, 2018
b086b09
Rollup merge of #52286 - ljedrz:dyn_librustc_errors, r=varkor
kennytm Jul 16, 2018
2d18808 8000
Rollup merge of #52306 - ljedrz:obligation_forest_clone, r=varkor
kennytm Jul 16, 2018
6af3e2d
Rollup merge of #52435 - ljedrz:misc_capacity, r=estebank
kennytm Jul 16, 2018
a07f213
Rollup merge of #52338 - RalfJung:miri, r=oli-obk
kennytm Jul 17, 2018
9ea0a85
Rollup merge of #52434 - Mark-Simulacrum:incremental-keep-stage, r=al…
kennytm Jul 17, 2018
c052a49
Rollup merge of #52446 - kennytm:block-beta-on-clippy, r=nrc
kennytm Jul 17, 2018
c0db1aa
Rollup merge of #52385 - GuillaumeGomez:pass-edition-to-parser, r=Qui…
kennytm Jul 17, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/librustdoc/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use syntax::codemap::CodeMap;
use syntax::edition::Edition;
use syntax::feature_gate::UnstableFeatures;
use syntax::with_globals;
use syntax_pos::{BytePos, DUMMY_SP, Pos, Span, FileName};
use syntax_pos::{BytePos, DUMMY_SP, Pos, Span, FileName, hygiene};
use errors;
use errors::emitter::ColorConfig;

Expand Down Expand Up @@ -561,6 +561,7 @@ impl Collector {
rustc_driver::in_rustc_thread(move || with_globals(move || {
io::set_panic(panic);
io::set_print(print);
hygiene::set_default_edition(edition);
run_test(&test,
&cratename,
&filename,
Expand Down
24 changes: 24 additions & 0 deletions src/test/rustdoc/edition-flag.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright 2018 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.

// compile-flags:--test -Z unstable-options
// edition:2018

#![feature(async_await)]

/// ```rust
/// #![feature(async_await)]
/// fn main() {
/// let _ = async { };
/// }
/// ```
fn main() {
let _ = async { };
}
0