Skip to content

Commit f3614ce

Browse files
committed
Update test suite to nightly-2025-02-07
1 parent 48e179c commit f3614ce

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

benches/rust.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ mod librustc_parse {
5858
extern crate rustc_span;
5959

6060
use crate::repo;
61-
use rustc_data_structures::sync::Lrc;
6261
use rustc_error_messages::FluentBundle;
6362
use rustc_errors::emitter::Emitter;
6463
use rustc_errors::registry::Registry;
@@ -68,6 +67,7 @@ mod librustc_parse {
6867
use rustc_span::source_map::{FilePathMapping, SourceMap};
6968
use rustc_span::FileName;
7069
use std::path::Path;
70+
use std::sync::Arc;
7171

7272
pub fn bench(path: &Path, content: &str) -> Result<(), ()> {
7373
struct SilentEmitter;
@@ -90,7 +90,7 @@ mod librustc_parse {
9090

9191
let edition = repo::edition(path).parse().unwrap();
9292
rustc_span::create_session_if_not_set_then(edition, |_| {
93-
let source_map = Lrc::new(SourceMap::new(FilePathMapping::empty()));
93+
let source_map = Arc::new(SourceMap::new(FilePathMapping::empty()));
9494
let emitter = Box::new(SilentEmitter);
9595
let handler = DiagCtxt::new(emitter);
9696
let sess = ParseSess::with_dcx(handler, source_map);

tests/common/eq.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,13 @@ use rustc_ast::tokenstream::{
174174
Spacing, TokenStream, TokenTree,
175175
};
176176
use rustc_data_structures::packed::Pu128;
177-
use rustc_data_structures::sync::Lrc;
178177
use rustc_span::source_map::Spanned;
179178
use rustc_span::symbol::{sym, Ident};
180179
use rustc_span::{ErrorGuaranteed, Span, Symbol, SyntaxContext, DUMMY_SP};
181180
use std::borrow::Cow;
182181
use std::collections::HashMap;
183182
use std::hash::{BuildHasher, Hash};
183+
use std::sync::Arc;
184184
use thin_vec::ThinVec;
185185

186186
pub trait SpanlessEq {
@@ -199,7 +199,7 @@ impl<T: ?Sized + SpanlessEq> SpanlessEq for P<T> {
199199
}
200200
}
201201

202-
impl<T: ?Sized + SpanlessEq> SpanlessEq for Lrc<T> {
202+
impl<T: ?Sized + SpanlessEq> SpanlessEq for Arc<T> {
203203
fn eq(&self, other: &Self) -> bool {
204204
SpanlessEq::eq(&**self, &**other)
205205
}

0 commit comments

Comments
 (0)