Skip to content

Instantly share code, notes, and snippets.

@bearcage
Created July 3, 2020 01:33
Show Gist options
  • Select an option

  • Save bearcage/ef51143b3c6ea6bcf8eac2f904b8601d to your computer and use it in GitHub Desktop.

Select an option

Save bearcage/ef51143b3c6ea6bcf8eac2f904b8601d to your computer and use it in GitHub Desktop.
#[derive(Default, Debug, Deserialize)]
#[serde(default, deny_unknown_fields, rename_all="kebab-case")]
pub struct CliUnstable {
pub print_im_a_teapot: bool,
#[serde(default="default_false")]
pub unstable_options: bool,
pub no_index_update: bool,
pub avoid_dev_deps: bool,
pub minimal_versions: bool,
pub package_features: bool,
pub advanced_env: bool,
pub config_include: bool,
pub dual_proc_macros: bool,
pub mtime_on_use: bool,
pub named_profiles: bool,
pub binary_dep_depinfo: bool,
pub build_std: Option<Vec<String>>,
pub timings: Option<Vec<String>>,
pub doctest_xcompile: bool,
pub panic_abort_tests: bool,
pub jobserver_per_rustc: bool,
pub features: Option<Vec<String>>,
pub crate_versions: bool,
pub separate_nightlies: bool,
pub multitarget: bool,
pub rustdoc_map: bool,
}
fn default_false() -> bool {
false
}
---- config::unstable_table_notation stdout ----
thread 'config::unstable_table_notation' panicked at 'called `Result::unwrap()` on an `Err` value: missing config key `unstable.unstable-options`', tests/testsuite/config.rs:65:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment