mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Make LazyAttrTokenStream::encode
panic.
It's unreachable, because AST JSON printing support was removed some time ago.
This commit is contained in:
parent
1b3fba066c
commit
15e71b6e43
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user