Add internal-only rustc_serialize_exclude_null attribute for making the field only exist in the json if the flag is passed

This commit is contained in:
Manish Goregaokar
2018-01-24 11:50:30 +05:30
parent a53bdc6212
commit 540f95d9fa
4 changed files with 22 additions and 2 deletions

View File

@@ -25,6 +25,7 @@
#![feature(match_default_bindings)]
#![feature(i128_type)]
#![feature(const_atomic_usize_new)]
#![feature(rustc_attrs)]
// See librustc_cratesio_shim/Cargo.toml for a comment explaining this.
#[allow(unused_extern_crates)]