File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 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