-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Bootstrap bump #117875
Bootstrap bump #117875
Changes from all commits
efe54e2
74cf505
db3e2ba
917f654
9e8edb6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,9 +114,8 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { | |
use rustc_middle::mir::BinOp::*; | ||
|
||
// Performs appropriate non-deterministic adjustments of NaN results. | ||
let adjust_nan = |f: F| -> F { | ||
if f.is_nan() { M::generate_nan(self, &[l, r]) } else { f } | ||
}; | ||
let adjust_nan = | ||
|f: F| -> F { if f.is_nan() { M::generate_nan(self, &[l, r]) } else { f } }; | ||
Comment on lines
-117
to
+118
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These formatting changes don't seem related to |
||
|
||
let val = match bin_op { | ||
Eq => ImmTy::from_bool(l == r, *self.tcx), | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// This crate is intentionally empty and a re-export of `rustc_driver_impl` to allow the code in | ||
// `rustc_driver_impl` to be compiled in parallel with other crates. | ||
|
||
#![cfg_attr(not(bootstrap), allow(internal_features))] | ||
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))] | ||
#![cfg_attr(not(bootstrap), doc(rust_logo))] | ||
#![allow(internal_features)] | ||
#![feature(rustdoc_internals)] | ||
#![doc(rust_logo)] | ||
|
||
pub use rustc_driver_impl::*; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,7 +74,9 @@ pub fn features(sess: &Session, krate_attrs: &[Attribute], crate_name: Symbol) - | |
// - E.g. enable `test_2018_feature` if `features_edition` is 2018 or higher | ||
let mut edition_enabled_features = FxHashSet::default(); | ||
for f in UNSTABLE_FEATURES { | ||
if let Some(edition) = f.feature.edition && edition <= features_edition { | ||
if let Some(edition) = f.feature.edition | ||
&& edition <= features_edition | ||
{ | ||
// FIXME(Manishearth) there is currently no way to set lib features by | ||
// edition. | ||
edition_enabled_features.insert(f.feature.name); | ||
|
@@ -251,8 +253,7 @@ impl<'a> StripUnconfigured<'a> { | |
let trees: Vec<_> = stream | ||
.0 | ||
.iter() | ||
.flat_map(|tree| { | ||
match tree.clone() { | ||
.flat_map(|tree| match tree.clone() { | ||
Comment on lines
-254
to
+256
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe these changes are related to support for formatting |
||
AttrTokenTree::Attributes(mut data) => { | ||
data.attrs.flat_map_in_place(|attr| self.process_cfg_attr(&attr)); | ||
|
||
|
@@ -277,7 +278,6 @@ impl<'a> StripUnconfigured<'a> { | |
AttrTokenTree::Token(token, spacing) => { | ||
Some(AttrTokenTree::Token(token, spacing)).into_iter() | ||
} | ||
} | ||
}) | ||
.collect(); | ||
AttrTokenStream::new(trees) | ||
|
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.
I believe these change are related to recent support for formatting match arms with
let guards
.