File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1025,6 +1025,8 @@ rustc_index::newtype_index! {
1025
1025
pub struct AttrId { }
1026
1026
}
1027
1027
1028
+ /// This trait is used to allow encoder specific encodings of certain types.
1029
+ /// It is similar to rustc_type_ir's TyEncoder.
1028
1030
pub trait SpanEncoder : Encoder {
1029
1031
fn encode_span ( & mut self , span : Span ) ;
1030
1032
fn encode_symbol ( & mut self , symbol : Symbol ) ;
@@ -1117,6 +1119,9 @@ impl<E: SpanEncoder> Encodable<E> for AttrId {
1117
1119
// A fresh id will be generated when decoding
1118
1120
}
1119
1121
}
1122
+
1123
+ /// This trait is used to allow decoder specific encodings of certain types.
1124
+ /// It is similar to rustc_type_ir's TyDecoder.
1120
1125
pub trait SpanDecoder : Decoder {
1121
1126
fn decode_span ( & mut self ) -> Span ;
1122
1127
fn decode_symbol ( & mut self ) -> Symbol ;
You can’t perform that action at this time.
0 commit comments