From 2cc33853c03dfb07322e54e6c25844ba1fca6818 Mon Sep 17 00:00:00 2001 From: WANG Rui Date: Tue, 16 Dec 2025 19:36:49 +0800 Subject: [PATCH] tests: Use smallvec and thin_vec from rustc_data_structures Fixes #1948 --- tests/test_precedence.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_precedence.rs b/tests/test_precedence.rs index eb193a5aef..4950eecb60 100644 --- a/tests/test_precedence.rs +++ b/tests/test_precedence.rs @@ -37,8 +37,6 @@ extern crate rustc_ast_pretty; extern crate rustc_data_structures; extern crate rustc_driver; extern crate rustc_span; -extern crate smallvec; -extern crate thin_vec; use crate::common::eq::SpanlessEq; use crate::common::parse; @@ -210,10 +208,10 @@ fn librustc_parenthesize(mut librustc_expr: Box) -> Box { use rustc_ast::mut_visit::{walk_flat_map_assoc_item, MutVisitor}; use rustc_ast::visit::{AssocCtxt, BoundKind}; use rustc_data_structures::flat_map_in_place::FlatMapInPlace; + use rustc_data_structures::smallvec::SmallVec; + use rustc_data_structures::thin_vec::ThinVec; use rustc_span::DUMMY_SP; - use smallvec::SmallVec; use std::ops::DerefMut; - use thin_vec::ThinVec; struct FullyParenthesize;