Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit d26667f

Browse files
committed
Auto merge of #203 - JohnTitor:nightly-bump, r=Xanewok
Rustup to nightly-2021-07-23 r? `@Xanewok`
2 parents 9ed2527 + 863b40e commit d26667f

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ repository and compiled from source or installed from
2727
of the nightly toolchain is supported at any given time.
2828

2929
<!-- NOTE: Keep in sync with nightly date on rust-toolchain. -->
30-
It's recommended to use `nightly-2021-06-14` toolchain.
31-
You can install it by using `rustup install nightly-2021-06-14` if you already have rustup.
30+
It's recommended to use `nightly-2021-07-23` toolchain.
31+
You can install it by using `rustup install nightly-2021-07-23` if you already have rustup.
3232
Then you can do:
3333

3434
```sh
35-
$ rustup component add rustc-dev llvm-tools-preview --toolchain nightly-2021-06-14
36-
$ cargo +nightly-2021-06-14 install --git https://github.com/rust-lang/rust-semverver
35+
$ rustup component add rustc-dev llvm-tools-preview --toolchain nightly-2021-07-23
36+
$ cargo +nightly-2021-07-23 install --git https://github.com/rust-lang/rust-semverver
3737
```
3838

3939
You'd also need `cmake` for some dependencies, and a few common libraries (if you hit

rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# NOTE: Keep in sync with nightly date on README
22
[toolchain]
3-
channel = "nightly-2021-06-14"
3+
channel = "nightly-2021-07-23"
44
components = ["llvm-tools-preview", "rustc-dev"]

src/bin/cargo-semver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ impl<'a> WorkInfo<'a> {
496496
opts.cli_features.features = Rc::new(
497497
s.split(' ')
498498
.map(InternedString::new)
499-
.map(|f| FeatureValue::new(f))
499+
.map(FeatureValue::new)
500500
.collect(),
501501
);
502502
}

src/bin/rust-semver-public.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn main() {
3939

4040
queries.global_ctxt().unwrap().peek_mut().enter(|tcx| {
4141
let krate = tcx
42-
.crates()
42+
.crates(())
4343
.iter()
4444
.flat_map(|crate_num| {
4545
let def_id = crate_num.as_def_id();

src/bin/rust-semverver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn main() {
5757
// See issue #64 for details.
5858

5959
let mut crates: Vec<_> = tcx
60-
.crates()
60+
.crates(())
6161
.iter()
6262
.flat_map(|crate_num| {
6363
let def_id = crate_num.as_def_id();

src/changes.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ pub mod tests {
14881488
quickcheck! {
14891489
/// The `Ord` instance of `PathChange` is transitive.
14901490
fn ord_pchange_transitive(c1: PathChange_, c2: PathChange_, c3: PathChange_) -> bool {
1491-
rustc_span::with_default_session_globals(|| {
1491+
rustc_span::create_default_session_globals_then(|| {
14921492
let s1 = c1.2.iter().map(|&(add, ref s)| (add, s.clone().inner())).collect();
14931493
let s2 = c2.2.iter().map(|&(add, ref s)| (add, s.clone().inner())).collect();
14941494
let s3 = c3.2.iter().map(|&(add, ref s)| (add, s.clone().inner())).collect();
@@ -1517,7 +1517,7 @@ pub mod tests {
15171517

15181518
/// The `Ord` instance of `Change` is transitive.
15191519
fn ord_change_transitive(c1: Change_, c2: Change_, c3: Change_) -> bool {
1520-
rustc_span::with_default_session_globals(|| {
1520+
rustc_span::create_default_session_globals_then(|| {
15211521
let ch1 = build_change(c1.3.inner(), c1.4, c1.5);
15221522
let ch2 = build_change(c2.3.inner(), c2.4, c2.5);
15231523
let ch3 = build_change(c3.3.inner(), c3.4, c3.5);
@@ -1543,7 +1543,7 @@ pub mod tests {
15431543
/// The maximal change category for a change set with regular changes only gets computed
15441544
/// correctly.
15451545
fn max_pchange(changes: Vec<PathChange_>) -> bool {
1546-
rustc_span::with_default_session_globals(|| {
1546+
rustc_span::create_default_session_globals_then(|| {
15471547
let mut set = ChangeSet::default();
15481548

15491549
let mut interner = Interner::default();
@@ -1576,7 +1576,7 @@ pub mod tests {
15761576
/// The maximal change category for a change set with path changes only gets computed
15771577
/// correctly.
15781578
fn max_change(changes: Vec<Change_>) -> bool {
1579-
rustc_span::with_default_session_globals(|| {
1579+
rustc_span::create_default_session_globals_then(|| {
15801580
let mut set = ChangeSet::default();
15811581

15821582
let mut interner = Interner::default();
@@ -1611,7 +1611,7 @@ pub mod tests {
16111611
}
16121612

16131613
fn max_pchange_or_change(pchanges: Vec<PathChange_>, changes: Vec<Change_>) -> bool {
1614-
rustc_span::with_default_session_globals(|| {
1614+
rustc_span::create_default_session_globals_then(|| {
16151615
let mut set = ChangeSet::default();
16161616

16171617
let mut interner = Interner::default();
@@ -1664,7 +1664,7 @@ pub mod tests {
16641664

16651665
/// Difference in spans implies difference in `PathChange`s.
16661666
fn pchange_span_neq(c1: PathChange_, c2: PathChange_) -> bool {
1667-
rustc_span::with_default_session_globals(|| {
1667+
rustc_span::create_default_session_globals_then(|| {
16681668
let v1 = c1.2.iter().map(|&(add, ref s)| (add, s.clone().inner())).collect();
16691669
let v2 = c2.2.iter().map(|&(add, ref s)| (add, s.clone().inner())).collect();
16701670

@@ -1684,7 +1684,7 @@ pub mod tests {
16841684

16851685
/// Difference in spans implies difference in `Change`s.
16861686
fn bchange_span_neq(c1: Change_, c2: Change_) -> bool {
1687-
rustc_span::with_default_session_globals(|| {
1687+
rustc_span::create_default_session_globals_then(|| {
16881688
let s1 = c1.3.clone().inner();
16891689
let s2 = c2.3.clone().inner();
16901690

0 commit comments

Comments
 (0)