Skip to content

Commit 3349b68

Browse files
authored
Rollup merge of #78447 - bugadani:typo, r=matthewjasper
Fix typo in comment I hope I got all the typos in that word. :)
2 parents 14b4ed2 + b01c74b commit 3349b68

File tree

3 files changed

+5
-5
lines changed
  • compiler

3 files changed

+5
-5
lines changed

compiler/rustc_arena/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ impl DropArena {
533533
ptr::write(mem, object);
534534
let result = &mut *mem;
535535
// Record the destructor after doing the allocation as that may panic
536-
// and would cause `object`'s destuctor to run twice if it was recorded before
536+
// and would cause `object`'s destructor to run twice if it was recorded before
537537
self.destructors
538538
.borrow_mut()
539539
.push(DropType { drop_fn: drop_for_type::<T>, obj: result as *mut T as *mut u8 });
@@ -560,7 +560,7 @@ impl DropArena {
560560
mem::forget(vec.drain(..));
561561

562562
// Record the destructors after doing the allocation as that may panic
563-
// and would cause `object`'s destuctor to run twice if it was recorded before
563+
// and would cause `object`'s destructor to run twice if it was recorded before
564564
for i in 0..len {
565565
destructors.push(DropType {
566566
drop_fn: drop_for_type::<T>,

compiler/rustc_data_structures/src/graph/vec_graph/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl<N: Idx> VecGraph<N> {
2929

3030
// Create the *edge starts* array. We are iterating over over
3131
// the (sorted) edge pairs. We maintain the invariant that the
32-
// length of the `node_starts` arary is enough to store the
32+
// length of the `node_starts` array is enough to store the
3333
// current source node -- so when we see that the source node
3434
// for an edge is greater than the current length, we grow the
3535
// edge-starts array by just enough.

compiler/rustc_span/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -738,14 +738,14 @@ impl<D: Decoder> Decodable<D> for Span {
738738
}
739739

740740
/// Calls the provided closure, using the provided `SourceMap` to format
741-
/// any spans that are debug-printed during the closure'e exectuino.
741+
/// any spans that are debug-printed during the closure's execution.
742742
///
743743
/// Normally, the global `TyCtxt` is used to retrieve the `SourceMap`
744744
/// (see `rustc_interface::callbacks::span_debug1). However, some parts
745745
/// of the compiler (e.g. `rustc_parse`) may debug-print `Span`s before
746746
/// a `TyCtxt` is available. In this case, we fall back to
747747
/// the `SourceMap` provided to this function. If that is not available,
748-
/// we fall back to printing the raw `Span` field values
748+
/// we fall back to printing the raw `Span` field values.
749749
pub fn with_source_map<T, F: FnOnce() -> T>(source_map: Lrc<SourceMap>, f: F) -> T {
750750
SESSION_GLOBALS.with(|session_globals| {
751751
*session_globals.source_map.borrow_mut() = Some(source_map);

0 commit comments

Comments
 (0)