Make LazyAttrTokenStream::encode panic.
It's unreachable, because AST JSON printing support was removed some time ago.
This commit is contained in:
@@ -140,9 +140,8 @@ impl fmt::Debug for LazyAttrTokenStream {
|
||||
}
|
||||
|
||||
impl<S: SpanEncoder> Encodable<S> for LazyAttrTokenStream {
|
||||
fn encode(&self, s: &mut S) {
|
||||
// Used by AST json printing.
|
||||
Encodable::encode(&self.to_attr_token_stream(), s);
|
||||
fn encode(&self, _s: &mut S) {
|
||||
panic!("Attempted to encode LazyAttrTokenStream");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user