@@ -232,7 +232,7 @@ impl<'tcx> Spanner<'tcx> {
232232
233233#[ cfg( test) ]
234234mod test {
235- use rustc_data_structures :: fx :: FxHashSet as HashSet ;
235+ use rustc_hash :: FxHashSet as HashSet ;
236236 use rustc_middle:: mir:: BasicBlock ;
237237 use test_log:: test;
238238
@@ -284,7 +284,7 @@ mod test {
284284 & [ "w.0" ] ,
285285 & [ "w.0" ] ,
286286 ] ;
287- for ( input_span, desired) in spans. into_iter ( ) . zip ( expected. into_iter ( ) ) {
287+ for ( input_span, desired) in spans. into_iter ( ) . zip ( expected) {
288288 let outputs = spanner. span_to_places ( input_span) ;
289289 let snippets = outputs
290290 . into_iter ( )
@@ -298,8 +298,8 @@ mod test {
298298 }
299299
300300 fn compare_sets ( desired : & HashSet < impl AsRef < str > > , actual : & HashSet < impl AsRef < str > > ) {
301- let desired = desired. iter ( ) . map ( |s| s . as_ref ( ) ) . collect :: < HashSet < _ > > ( ) ;
302- let actual = actual. iter ( ) . map ( |s| s . as_ref ( ) ) . collect :: < HashSet < _ > > ( ) ;
301+ let desired = desired. iter ( ) . map ( AsRef :: as_ref) . collect :: < HashSet < _ > > ( ) ;
302+ let actual = actual. iter ( ) . map ( AsRef :: as_ref) . collect :: < HashSet < _ > > ( ) ;
303303 let missing_desired = & desired - & actual;
304304 let missing_actual = & actual - & desired;
305305
@@ -315,7 +315,7 @@ mod test {
315315
316316 #[ test]
317317 fn test_location_to_spans ( ) {
318- let src = r# "fn foo() {
318+ let src = r"fn foo() {
319319 let mut x: i32 = 1;
320320 let y = x + 2;
321321 let w = if true {
@@ -329,7 +329,7 @@ mod test {
329329 let q = x
330330 .leading_ones()
331331 .trailing_zeros();
332- }"# ;
332+ }" ;
333333
334334 // This affects source mapping, and this feature is primarily used by Flowistry, so
335335 // we enable MIR simplification for consistency with Flowistry.
0 commit comments