File tree 6 files changed +13
-8
lines changed
rust-analyzer/tests/slow-tests
6 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,11 @@ jobs:
226
226
- name : download typos
227
227
run : curl -LsSf https://github.com/crate-ci/typos/releases/download/$TYPOS_VERSION/typos-$TYPOS_VERSION-x86_64-unknown-linux-musl.tar.gz | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
228
228
229
+ - name : Checkout repository
230
+ uses : actions/checkout@v4
231
+ with :
232
+ ref : ${{ github.event.pull_request.head.sha }}
233
+
229
234
- name : check for typos
230
235
run : typos
231
236
Original file line number Diff line number Diff line change @@ -281,14 +281,14 @@ pub(super) fn type_constructor<'a, DB: HirDatabase>(
281
281
if ctx. config . enable_borrowcheck && struct_ty. contains_reference ( db) {
282
282
return None ;
283
283
}
284
- let fileds = it. fields ( db) ;
284
+ let fields = it. fields ( db) ;
285
285
// Check if all fields are visible, otherwise we cannot fill them
286
- if fileds . iter ( ) . any ( |it| !it. is_visible_from ( db, module) ) {
286
+ if fields . iter ( ) . any ( |it| !it. is_visible_from ( db, module) ) {
287
287
return None ;
288
288
}
289
289
290
290
// Early exit if some param cannot be filled from lookup
291
- let param_exprs: Vec < Vec < Expr > > = fileds
291
+ let param_exprs: Vec < Vec < Expr > > = fields
292
292
. into_iter ( )
293
293
. map ( |field| lookup. find ( db, & field. ty ( db) ) )
294
294
. collect :: < Option < _ > > ( ) ?;
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ impl CompletionRelevance {
308
308
309
309
// When a fn is bumped due to return type:
310
310
// Bump Constructor or Builder methods with no arguments,
311
- // over them tha with self arguments
311
+ // over them than with self arguments
312
312
if fn_score > 0 {
313
313
if !asf. has_params {
314
314
// bump associated functions
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ impl Server {
243
243
to_string_pretty( actual_part) . unwrap( ) ,
244
244
) ;
245
245
} else {
246
- tracing:: debug!( "sucessfully matched notification" ) ;
246
+ tracing:: debug!( "successfully matched notification" ) ;
247
247
return ;
248
248
}
249
249
} else {
Original file line number Diff line number Diff line change @@ -456,12 +456,12 @@ pub trait Query: Debug + Default + Sized + for<'d> QueryDb<'d> {
456
456
/// Name of the query method (e.g., `foo`)
457
457
const QUERY_NAME : & ' static str ;
458
458
459
- /// Extact storage for this query from the storage for its group.
459
+ /// Extract storage for this query from the storage for its group.
460
460
fn query_storage < ' a > (
461
461
group_storage : & ' a <Self as QueryDb < ' _ > >:: GroupStorage ,
462
462
) -> & ' a std:: sync:: Arc < Self :: Storage > ;
463
463
464
- /// Extact storage for this query from the storage for its group.
464
+ /// Extract storage for this query from the storage for its group.
465
465
fn query_storage_mut < ' a > (
466
466
group_storage : & ' a <Self as QueryDb < ' _ > >:: GroupStorage ,
467
467
) -> & ' a std:: sync:: Arc < Self :: Storage > ;
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ pub(crate) trait LruNode: Sized + Debug {
40
40
41
41
#[ derive( Debug ) ]
42
42
pub ( crate ) struct LruIndex {
43
- /// Index in the approprate LRU list, or std::usize::MAX if not a
43
+ /// Index in the appropriate LRU list, or std::usize::MAX if not a
44
44
/// member.
45
45
index : AtomicUsize ,
46
46
}
You can’t perform that action at this time.
0 commit comments