File tree Expand file tree Collapse file tree 11 files changed +14
-14
lines changed
std/src/sys/pal/windows/c
src/borrow_tracker/tree_borrows
rust-analyzer/crates/stdx/src Expand file tree Collapse file tree 11 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ impl<T, const N: usize> IntoIterator for [T; N] {
66
66
// FIXME: If normal `transmute` ever gets smart enough to allow this
67
67
// directly, use it instead of `transmute_unchecked`.
68
68
let data: [ MaybeUninit < T > ; N ] = unsafe { transmute_unchecked ( self ) } ;
69
- // SAFETY: The original array was entirely initialized and the alive
69
+ // SAFETY: The original array was entirely initialized and the the alive
70
70
// range we're passing here represents that fact.
71
71
let inner = unsafe { InnerSized :: new_unchecked ( IndexRange :: zero_to ( N ) , data) } ;
72
72
IntoIter { inner }
Original file line number Diff line number Diff line change @@ -1401,7 +1401,7 @@ ERROR_MARSHALL_OVERFLOW
1401
1401
ERROR_MAX_SESSIONS_REACHED
1402
1402
ERROR_MAX_THRDS_REACHED
1403
1403
ERROR_MCA_EXCEPTION
1404
- ERROR_MCA_OCCURRED
1404
+ ERROR_MCA_OCCURED
1405
1405
ERROR_MEDIA_CHANGED
1406
1406
ERROR_MEDIA_CHECK
1407
1407
ERROR_MEMBER_IN_ALIAS
Original file line number Diff line number Diff line change @@ -1793,7 +1793,7 @@ pub const ERROR_MARSHALL_OVERFLOW: WIN32_ERROR = 603u32;
1793
1793
pub const ERROR_MAX_SESSIONS_REACHED : WIN32_ERROR = 353u32 ;
1794
1794
pub const ERROR_MAX_THRDS_REACHED : WIN32_ERROR = 164u32 ;
1795
1795
pub const ERROR_MCA_EXCEPTION : WIN32_ERROR = 784u32 ;
1796
- pub const ERROR_MCA_OCCURRED : WIN32_ERROR = 651u32 ;
1796
+ pub const ERROR_MCA_OCCURED : WIN32_ERROR = 651u32 ;
1797
1797
pub const ERROR_MEDIA_CHANGED : WIN32_ERROR = 1110u32 ;
1798
1798
pub const ERROR_MEDIA_CHECK : WIN32_ERROR = 679u32 ;
1799
1799
pub const ERROR_MEMBERS_PRIMARY_GROUP : WIN32_ERROR = 1374u32 ;
Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ def filter_line(line):
282
282
]
283
283
284
284
285
- # To prevent duplicating the list of commands between `compiletest` and `htmldocck`, we put
285
+ # To prevent duplicating the list of commmands between `compiletest` and `htmldocck`, we put
286
286
# it into a common file which is included in rust code and parsed here.
287
287
# FIXME: This setup is temporary until we figure out how to improve this situation.
288
288
# See <https://github.com/rust-lang/rust/issues/125813#issuecomment-2141953780>.
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ impl DocFolder for Stripper<'_, '_> {
168
168
self . update_retained = old;
169
169
if ret. item_id == clean:: ItemId :: DefId ( CRATE_DEF_ID . into ( ) ) {
170
170
// We don't strip the current crate, even if it has `#[doc(hidden)]`.
171
- debug ! ( "strip_hidden: Not stripping local crate" ) ;
171
+ debug ! ( "strip_hidden: Not strippping local crate" ) ;
172
172
Some ( ret)
173
173
} else {
174
174
Some ( strip_item ( ret) )
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ impl Session {
68
68
. arg ( "-o" )
69
69
. arg ( & self . link_path )
70
70
. output ( )
71
- . context ( "An error occurred when calling llvm-link. Make sure the llvm-tools component is installed." ) ?;
71
+ . context ( "An error occured when calling llvm-link. Make sure the llvm-tools component is installed." ) ?;
72
72
73
73
if !llvm_link_output. status . success ( ) {
74
74
tracing:: error!(
@@ -115,7 +115,7 @@ impl Session {
115
115
}
116
116
117
117
let opt_output = opt_cmd. output ( ) . context (
118
- "An error occurred when calling opt. Make sure the llvm-tools component is installed." ,
118
+ "An error occured when calling opt. Make sure the llvm-tools component is installed." ,
119
119
) ?;
120
120
121
121
if !opt_output. status . success ( ) {
@@ -149,7 +149,7 @@ impl Session {
149
149
. arg ( & self . opt_path )
150
150
. arg ( "-o" ) . arg ( & self . out_path )
151
151
. output ( )
152
- . context ( "An error occurred when calling llc. Make sure the llvm-tools component is installed." ) ?;
152
+ . context ( "An error occured when calling llc. Make sure the llvm-tools component is installed." ) ?;
153
153
154
154
if !lcc_output. status . success ( ) {
155
155
tracing:: error!(
Original file line number Diff line number Diff line change @@ -579,7 +579,7 @@ Definite bugs found:
579
579
* [Occasional memory leak in `std::mpsc` channels](https://github.com/rust-lang/rust/issues/121582) (original code in [crossbeam](https://github.com/crossbeam-rs/crossbeam/pull/1084))
580
580
* [Weak-memory-induced memory leak in Windows thread-local storage](https://github.com/rust-lang/rust/pull/124281)
581
581
* [A bug in the new `RwLock::downgrade` implementation](https://rust-lang.zulipchat.com/#narrow/channel/269128-miri/topic/Miri.20error.20library.20test) (caught by Miri before it landed in the Rust repo)
582
- * [Mockall reading uninitialized memory when mocking `std::io::Read::read`, even if all expectations are satisfied](https://github.com/asomers/mockall/issues/647) (caught by Miri running Tokio's test suite)
582
+ * [Mockall reading unintialized memory when mocking `std::io::Read::read`, even if all expectations are satisfied](https://github.com/asomers/mockall/issues/647) (caught by Miri running Tokio's test suite)
583
583
584
584
Violations of [Stacked Borrows] found that are likely bugs (but Stacked Borrows is currently just an experiment) :
585
585
Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ where
396
396
assert ! ( self . stack. is_empty( ) ) ;
397
397
// First, handle accessed node. A bunch of things need to
398
398
// be handled differently here compared to the further parents
399
- // of `accessed_node `.
399
+ // of `accesssed_node `.
400
400
{
401
401
self . propagate_at ( this, accessed_node, AccessRelatedness :: This ) ?;
402
402
if matches ! ( visit_children, ChildrenVisitMode :: VisitChildrenOfAccessed ) {
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ fn test_event_overwrite() {
417
417
check_epoll_wait :: < 8 > ( epfd, & [ ( expected_event, expected_value) ] ) ;
418
418
}
419
419
420
- // An epoll notification will be provided for every successful read in a socketpair.
420
+ // An epoll notification will be provided for every succesful read in a socketpair.
421
421
// This behaviour differs from the real system.
422
422
fn test_socketpair_read ( ) {
423
423
// Create an epoll instance.
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ unsafe fn test_sha256() {
152
152
// This is the content that's being hashed - you can feed it to sha256sum and it'll output
153
153
// the same hash (beware of newlines though).
154
154
let first_block = * b"Rust is awesome!Rust is awesome!Rust is awesome!Rust is awesome!" ;
155
- // sha256 is finalized by appending 0x80, then zeros and finally the data length at the
155
+ // sha256 is fianlized by appending 0x80, then zeros and finally the data lenght at the
156
156
// end.
157
157
let mut final_block = [ 0 ; 64 ] ;
158
158
final_block[ 0 ] = 0x80 ;
Original file line number Diff line number Diff line change 43
43
44
44
/// Asserts that the condition is always true and returns its actual value.
45
45
///
46
- /// If the condition is true does nothing and evaluates to true.
46
+ /// If the condition is true does nothing and and evaluates to true.
47
47
///
48
48
/// If the condition is false:
49
49
/// * panics if `force` feature or `debug_assertions` are enabled,
@@ -71,7 +71,7 @@ macro_rules! always {
71
71
72
72
/// Asserts that the condition is never true and returns its actual value.
73
73
///
74
- /// If the condition is false does nothing and evaluates to false.
74
+ /// If the condition is false does nothing and and evaluates to false.
75
75
///
76
76
/// If the condition is true:
77
77
/// * panics if `force` feature or `debug_assertions` are enabled,
You can’t perform that action at this time.
0 commit comments