Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Jul 15, 2021
1 parent 8c48b8a commit 251d0f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NOTE: Keep in sync with nightly date on README
[toolchain]
channel = "nightly-2021-07-03"
channel = "nightly-2021-07-15"
components = ["llvm-tools-preview", "rustc-dev"]
14 changes: 7 additions & 7 deletions src/changes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ pub mod tests {
quickcheck! {
/// The `Ord` instance of `PathChange` is transitive.
fn ord_pchange_transitive(c1: PathChange_, c2: PathChange_, c3: PathChange_) -> bool {
rustc_span::with_default_session_globals(|| {
rustc_span::create_default_session_globals_then(|| {
let s1 = c1.2.iter().map(|&(add, ref s)| (add, s.clone().inner())).collect();
let s2 = c2.2.iter().map(|&(add, ref s)| (add, s.clone().inner())).collect();
let s3 = c3.2.iter().map(|&(add, ref s)| (add, s.clone().inner())).collect();
Expand Down Expand Up @@ -1517,7 +1517,7 @@ pub mod tests {

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

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

let mut interner = Interner::default();
Expand Down Expand Up @@ -1611,7 +1611,7 @@ pub mod tests {
}

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

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

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

Expand All @@ -1684,7 +1684,7 @@ pub mod tests {

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

Expand Down

0 comments on commit 251d0f1

Please sign in to comment.