Skip to content

Commit 049ab9c

Browse files
committed
rebase and new fixes
1 parent b36389a commit 049ab9c

File tree

14 files changed

+15
-15
lines changed

14 files changed

+15
-15
lines changed

compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2430,7 +2430,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
24302430
}
24312431

24322432
if !mismatched_params.is_empty() {
2433-
// For each mismatched paramter, create a two-way link to each matched parameter
2433+
// For each mismatched parameter, create a two-way link to each matched parameter
24342434
// of the same type.
24352435
let mut dependants = IndexVec::<ExpectedIdx, _>::from_fn_n(
24362436
|_| SmallVec::<[u32; 4]>::new(),
@@ -2473,7 +2473,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
24732473
spans.push_span_label(param.param.span(), "");
24742474
}
24752475
}
2476-
// Highligh each parameter being depended on for a generic type.
2476+
// Highlight each parameter being depended on for a generic type.
24772477
for ((&(_, param), deps), &(_, expected_ty)) in
24782478
params_with_generics.iter().zip(&dependants).zip(formal_and_expected_inputs)
24792479
{

compiler/rustc_middle/src/mir/terminator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ impl<O> AssertKind<O> {
272272
"\"misaligned pointer dereference: address must be a multiple of {{}} but is {{}}\", {required:?}, {found:?}"
273273
)
274274
}
275-
NullPointerDereference => write!(f, "\"null pointer dereference occured\""),
275+
NullPointerDereference => write!(f, "\"null pointer dereference occurred\""),
276276
ResumedAfterReturn(CoroutineKind::Coroutine(_)) => {
277277
write!(f, "\"coroutine resumed after completion\"")
278278
}

compiler/rustc_session/src/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ pub struct ParseSess {
210210
pub edition: Edition,
211211
/// Places where contract attributes were expanded into unstable AST forms.
212212
/// This is used to allowlist those spans (so that we only check them against the feature
213-
/// gate for the externally visible interface, and not internal implmentation machinery).
213+
/// gate for the externally visible interface, and not internal implementation machinery).
214214
pub contract_attribute_spans: AppendOnlyVec<Span>,
215215
/// Places where raw identifiers were used. This is used to avoid complaining about idents
216216
/// clashing with keywords in new editions.

compiler/stable_mir/src/mir/body.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ impl AssertMessage {
307307
AssertMessage::MisalignedPointerDereference { .. } => {
308308
Ok("misaligned pointer dereference")
309309
}
310-
AssertMessage::NullPointerDereference => Ok("null pointer dereference occured"),
310+
AssertMessage::NullPointerDereference => Ok("null pointer dereference occurred"),
311311
}
312312
}
313313
}

compiler/stable_mir/src/mir/pretty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ fn pretty_assert_message<W: Write>(writer: &mut W, msg: &AssertMessage) -> io::R
299299
)
300300
}
301301
AssertMessage::NullPointerDereference => {
302-
write!(writer, "\"null pointer dereference occured.\"")
302+
write!(writer, "\"null pointer dereference occurred.\"")
303303
}
304304
AssertMessage::ResumedAfterReturn(_) | AssertMessage::ResumedAfterPanic(_) => {
305305
write!(writer, "{}", msg.description().unwrap())

library/core/src/intrinsics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4067,7 +4067,7 @@ pub const unsafe fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize)
40674067
/// Returns whether we should perform contract-checking at runtime.
40684068
///
40694069
/// This is meant to be similar to the ub_checks intrinsic, in terms
4070-
/// of not prematurely commiting at compile-time to whether contract
4070+
/// of not prematurely committing at compile-time to whether contract
40714071
/// checking is turned on, so that we can specify contracts in libstd
40724072
/// and let an end user opt into turning them on.
40734073
#[cfg(not(bootstrap))]

library/core/src/panicking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ fn panic_null_pointer_dereference() -> ! {
302302
}
303303

304304
panic_nounwind_fmt(
305-
format_args!("null pointer dereference occured"),
305+
format_args!("null pointer dereference occurred"),
306306
/* force_no_backtrace */ false,
307307
)
308308
}

library/std/src/sys/pal/uefi/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ mod uefi_command_internal {
757757
}
758758

759759
/// Create a map of environment variable changes. Allows efficient setting and rolling back of
760-
/// enviroment variable changes.
760+
/// environment variable changes.
761761
///
762762
/// Entry: (Old Value, New Value)
763763
fn env_changes(env: &CommandEnv) -> Option<BTreeMap<EnvKey, (Option<OsString>, Option<OsString>)>> {

src/librustdoc/doctest/extracted.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl ExtractedDocTests {
5252
Some(&opts.crate_name),
5353
);
5454
self.doctests.push(ExtractedDocTest {
55-
file: filename.prefer_remapped_unconditionaly().to_string(),
55+
file: filename.prefer_remapped_unconditionally().to_string(),
5656
line,
5757
doctest_attributes: langstr.into(),
5858
doctest_code: if size != 0 { Some(full_test_code) } else { None },

tests/ui/mir/null/borrowed_mut_null.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ compile-flags: -C debug-assertions
3-
//@ error-pattern: null pointer dereference occured
3+
//@ error-pattern: null pointer dereference occurred
44

55
fn main() {
66
let ptr: *mut u32 = std::ptr::null_mut();

tests/ui/mir/null/borrowed_null.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ compile-flags: -C debug-assertions
3-
//@ error-pattern: null pointer dereference occured
3+
//@ error-pattern: null pointer dereference occurred
44

55
fn main() {
66
let ptr: *const u32 = std::ptr::null();

tests/ui/mir/null/null_lhs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ compile-flags: -C debug-assertions
3-
//@ error-pattern: null pointer dereference occured
3+
//@ error-pattern: null pointer dereference occurred
44

55
fn main() {
66
let ptr: *mut u32 = std::ptr::null_mut();

tests/ui/mir/null/null_rhs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ compile-flags: -C debug-assertions
3-
//@ error-pattern: null pointer dereference occured
3+
//@ error-pattern: null pointer dereference occurred
44

55
fn main() {
66
let ptr: *mut u32 = std::ptr::null_mut();

tests/ui/mir/null/two_pointers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-fail
22
//@ compile-flags: -C debug-assertions
3-
//@ error-pattern: null pointer dereference occured
3+
//@ error-pattern: null pointer dereference occurred
44

55
fn main() {
66
let ptr = std::ptr::null();

0 commit comments

Comments
 (0)