mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +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 {
|
impl<S: SpanEncoder> Encodable<S> for LazyAttrTokenStream {
|
||||||
fn encode(&self, s: &mut S) {
|
fn encode(&self, _s: &mut S) {
|
||||||
// Used by AST json printing.
|
panic!("Attempted to encode LazyAttrTokenStream");
|
||||||
Encodable::encode(&self.to_attr_token_stream(), s);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user