This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
rustc_data_structures/src/graph/vec_graph Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 > ,
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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.
749749pub 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) ;
You can’t perform that action at this time.
0 commit comments