diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-11-10 14:11:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-10 14:11:31 -0500 |
commit | 2a07619ad0aaed985d401dbe9eac2da9d2f32de8 (patch) | |
tree | 28b3ac5d0f3776c50ec9335399ac38963ec41ad9 /src | |
parent | e9638f613e0a7906beabf62238144ee47c28143c (diff) | |
parent | 56e8cf97c9368e0bc9f20f5f66ca2a3773ab97b3 (diff) |
Auto merge of #1437 - j-channings:master, r=emilio
Fix Builder::command_line_args() --generate typo
Looks like the accepted argument has always been "functions", and this output has always been "function".
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -431,7 +431,7 @@ impl Builder { //Temporary placeholder for below 4 options let mut options: Vec<String> = Vec::new(); if self.options.codegen_config.functions() { - options.push("function".into()); + options.push("functions".into()); } if self.options.codegen_config.types() { options.push("types".into()); @@ -2053,7 +2053,7 @@ fn commandline_flag_unit_test_function() { "--rust-target", "--no-derive-default", "--generate", - "function,types,vars,methods,constructors,destructors", + "functions,types,vars,methods,constructors,destructors", ].iter() .map(|&x| x.into()) .collect::<Vec<String>>(); @@ -2074,7 +2074,7 @@ fn commandline_flag_unit_test_function() { "input_header", "--no-derive-default", "--generate", - "function,types,vars,methods,constructors,destructors", + "functions,types,vars,methods,constructors,destructors", "--whitelist-type", "Distinct_Type", "--whitelist-function", |