Skip to content

Commit 607d7f9

Browse files
committed
rebase and new fixes
1 parent 23b0321 commit 607d7f9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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
@@ -2399,7 +2399,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
23992399
}
24002400

24012401
if !mismatched_params.is_empty() {
2402-
// For each mismatched paramter, create a two-way link to each matched parameter
2402+
// For each mismatched parameter, create a two-way link to each matched parameter
24032403
// of the same type.
24042404
let mut dependants = IndexVec::<ExpectedIdx, _>::from_fn_n(
24052405
|_| SmallVec::<[u32; 4]>::new(),
@@ -2442,7 +2442,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
24422442
spans.push_span_label(param.param.span(), "");
24432443
}
24442444
}
2445-
// Highligh each parameter being depended on for a generic type.
2445+
// Highlight each parameter being depended on for a generic type.
24462446
for ((&(_, param), deps), &(_, expected_ty)) in
24472447
params_with_generics.iter().zip(&dependants).zip(formal_and_expected_inputs)
24482448
{

library/core/src/intrinsics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3431,7 +3431,7 @@ pub const unsafe fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize)
34313431
/// Returns whether we should perform contract-checking at runtime.
34323432
///
34333433
/// This is meant to be similar to the ub_checks intrinsic, in terms
3434-
/// of not prematurely commiting at compile-time to whether contract
3434+
/// of not prematurely committing at compile-time to whether contract
34353435
/// checking is turned on, so that we can specify contracts in libstd
34363436
/// and let an end user opt into turning them on.
34373437
#[rustc_const_unstable(feature = "contracts_internals", issue = "128044" /* compiler-team#759 */)]

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 },

0 commit comments

Comments
 (0)