File tree 3 files changed +0
-23
lines changed
3 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -619,14 +619,6 @@ impl SyntaxContext {
619
619
HygieneData :: with ( |data| data. outer_mark ( self ) )
620
620
}
621
621
622
- #[ inline]
623
- pub fn outer_mark_with_data ( self ) -> ( ExpnId , Transparency , ExpnData ) {
624
- HygieneData :: with ( |data| {
625
- let ( expn_id, transparency) = data. outer_mark ( self ) ;
626
- ( expn_id, transparency, data. expn_data ( expn_id) . clone ( ) )
627
- } )
628
- }
629
-
630
622
pub fn dollar_crate_name ( self ) -> Symbol {
631
623
HygieneData :: with ( |data| data. syntax_context_data [ self . 0 as usize ] . dollar_crate_name )
632
624
}
Original file line number Diff line number Diff line change @@ -223,12 +223,6 @@ impl FileName {
223
223
}
224
224
}
225
225
226
- pub fn quote_expansion_source_code ( src : & str ) -> FileName {
227
- let mut hasher = StableHasher :: new ( ) ;
228
- src. hash ( & mut hasher) ;
229
- FileName :: QuoteExpansion ( hasher. finish ( ) )
230
- }
231
-
232
226
pub fn macro_expansion_source_code ( src : & str ) -> FileName {
233
227
let mut hasher = StableHasher :: new ( ) ;
234
228
src. hash ( & mut hasher) ;
Original file line number Diff line number Diff line change @@ -451,15 +451,6 @@ impl SourceMap {
451
451
}
452
452
}
453
453
454
- /// Returns a new `Span` covering the start and end `BytePos`s of the file containing the given
455
- /// `pos`. This can be used to quickly determine if another `BytePos` or `Span` is from the same
456
- /// file.
457
- pub fn lookup_file_span ( & self , pos : BytePos ) -> Span {
458
- let idx = self . lookup_source_file_idx ( pos) ;
459
- let SourceFile { start_pos, end_pos, .. } = * ( * self . files . borrow ( ) . source_files ) [ idx] ;
460
- Span :: with_root_ctxt ( start_pos, end_pos)
461
- }
462
-
463
454
/// Returns `Some(span)`, a union of the LHS and RHS span. The LHS must precede the RHS. If
464
455
/// there are gaps between LHS and RHS, the resulting union will cross these gaps.
465
456
/// For this to work,
You can’t perform that action at this time.
0 commit comments