Skip to content

Commit 3211b83

Browse files
committed
fix -Zast-json to properly output the 'id' field
1 parent 5847c58 commit 3211b83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_ast/ast.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2212,8 +2212,8 @@ rustc_index::newtype_index! {
22122212
}
22132213

22142214
impl rustc_serialize::Encodable for AttrId {
2215-
fn encode<S: Encoder>(&self, _: &mut S) -> Result<(), S::Error> {
2216-
Ok(())
2215+
fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error> {
2216+
s.emit_unit()
22172217
}
22182218
}
22192219

0 commit comments

Comments
 (0)