File tree 3 files changed +5
-5
lines changed
rustc_data_structures/src/graph/vec_graph
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -533,7 +533,7 @@ impl DropArena {
533
533
ptr:: write ( mem, object) ;
534
534
let result = & mut * mem;
535
535
// 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
537
537
self . destructors
538
538
. borrow_mut ( )
539
539
. push ( DropType { drop_fn : drop_for_type :: < T > , obj : result as * mut T as * mut u8 } ) ;
@@ -560,7 +560,7 @@ impl DropArena {
560
560
mem:: forget ( vec. drain ( ..) ) ;
561
561
562
562
// 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
564
564
for i in 0 ..len {
565
565
destructors. push ( DropType {
566
566
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> {
29
29
30
30
// Create the *edge starts* array. We are iterating over over
31
31
// 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
33
33
// current source node -- so when we see that the source node
34
34
// for an edge is greater than the current length, we grow the
35
35
// 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 {
738
738
}
739
739
740
740
/// 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 .
742
742
///
743
743
/// Normally, the global `TyCtxt` is used to retrieve the `SourceMap`
744
744
/// (see `rustc_interface::callbacks::span_debug1). However, some parts
745
745
/// of the compiler (e.g. `rustc_parse`) may debug-print `Span`s before
746
746
/// a `TyCtxt` is available. In this case, we fall back to
747
747
/// 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.
749
749
pub fn with_source_map < T , F : FnOnce ( ) -> T > ( source_map : Lrc < SourceMap > , f : F ) -> T {
750
750
SESSION_GLOBALS . with ( |session_globals| {
751
751
* session_globals. source_map . borrow_mut ( ) = Some ( source_map) ;
You can’t perform that action at this time.
0 commit comments