@@ -97,9 +97,13 @@ impl Extend<TokenStream> for TokenStream {
97
97
}
98
98
}
99
99
100
+ #[ derive( Clone ) ]
101
+ pub struct SourceFile {
102
+ // FIXME stub
103
+ }
104
+
100
105
type Level = super :: proc_macro:: Level ;
101
106
type LineColumn = super :: proc_macro:: LineColumn ;
102
- type SourceFile = super :: proc_macro:: SourceFile ;
103
107
104
108
/// A structure representing a diagnostic message and associated children
105
109
/// messages.
@@ -594,16 +598,15 @@ impl server::Literal for Rustc {
594
598
}
595
599
596
600
impl server:: SourceFile for Rustc {
597
- fn eq ( & mut self , file1 : & Self :: SourceFile , file2 : & Self :: SourceFile ) -> bool {
598
- file1. eq ( file2)
601
+ // FIXME these are all stubs
602
+ fn eq ( & mut self , _file1 : & Self :: SourceFile , _file2 : & Self :: SourceFile ) -> bool {
603
+ true
599
604
}
600
- fn path ( & mut self , file : & Self :: SourceFile ) -> String {
601
- String :: from (
602
- file. path ( ) . to_str ( ) . expect ( "non-UTF8 file path in `proc_macro::SourceFile::path`" ) ,
603
- )
605
+ fn path ( & mut self , _file : & Self :: SourceFile ) -> String {
606
+ String :: new ( )
604
607
}
605
- fn is_real ( & mut self , file : & Self :: SourceFile ) -> bool {
606
- file . is_real ( )
608
+ fn is_real ( & mut self , _file : & Self :: SourceFile ) -> bool {
609
+ true
607
610
}
608
611
}
609
612
@@ -646,8 +649,7 @@ impl server::Span for Rustc {
646
649
tt:: TokenId :: unspecified ( )
647
650
}
648
651
fn source_file ( & mut self , _span : Self :: Span ) -> Self :: SourceFile {
649
- // let MySpanData(span) = self.span_interner.get(span.0);
650
- unimplemented ! ( )
652
+ SourceFile { }
651
653
}
652
654
fn save_span ( & mut self , _span : Self :: Span ) -> usize {
653
655
// FIXME stub
0 commit comments