diff --git a/sailfish-tests/integration-tests/tests/fails/invalid_option_value.stderr b/sailfish-tests/integration-tests/tests/fails/invalid_option_value.stderr index 7c77feb..ee2a10e 100644 --- a/sailfish-tests/integration-tests/tests/fails/invalid_option_value.stderr +++ b/sailfish-tests/integration-tests/tests/fails/invalid_option_value.stderr @@ -1,3 +1,13 @@ +warning: unused import: `std::mem` + --> $DIR/mod.rs:12:5 + | +12 | use std::mem; + | ^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: 1 warning emitted + error: expected boolean literal --> $DIR/invalid_option_value.rs:5:38 | @@ -15,7 +25,7 @@ error[E0599]: no method named `render_once` found for struct `InvalidOptionValue | = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `render_once`, perhaps you need to implement it: - candidate #1: `sailfish::TemplateOnce` + candidate #1: `TemplateOnce` warning: unused import: `sailfish::TemplateOnce` --> $DIR/invalid_option_value.rs:1:5 diff --git a/sailfish-tests/integration-tests/tests/fails/no_path.stderr b/sailfish-tests/integration-tests/tests/fails/no_path.stderr index ee60105..1ca6ed5 100644 --- a/sailfish-tests/integration-tests/tests/fails/no_path.stderr +++ b/sailfish-tests/integration-tests/tests/fails/no_path.stderr @@ -1,3 +1,13 @@ +warning: unused import: `std::mem` + --> $DIR/mod.rs:12:5 + | +12 | use std::mem; + | ^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: 1 warning emitted + error: `path` option must be specified. --> $DIR/no_path.rs:4:10 | @@ -17,7 +27,7 @@ error[E0599]: no method named `render_once` found for struct `NoTemplate` in the | = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `render_once`, perhaps you need to implement it: - candidate #1: `sailfish::TemplateOnce` + candidate #1: `TemplateOnce` warning: unused import: `sailfish::TemplateOnce` --> $DIR/no_path.rs:1:5 diff --git a/sailfish-tests/integration-tests/tests/fails/repeated_arguments.stderr b/sailfish-tests/integration-tests/tests/fails/repeated_arguments.stderr index 15fdf9b..d84aec6 100644 --- a/sailfish-tests/integration-tests/tests/fails/repeated_arguments.stderr +++ b/sailfish-tests/integration-tests/tests/fails/repeated_arguments.stderr @@ -1,3 +1,13 @@ +warning: unused import: `std::mem` + --> $DIR/mod.rs:12:5 + | +12 | use std::mem; + | ^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: 1 warning emitted + error: keyword argument repeated. --> $DIR/repeated_arguments.rs:6:21 | @@ -15,7 +25,7 @@ error[E0599]: no method named `render_once` found for struct `InvalidOptionValue | = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `render_once`, perhaps you need to implement it: - candidate #1: `sailfish::TemplateOnce` + candidate #1: `TemplateOnce` warning: unused import: `sailfish::TemplateOnce` --> $DIR/repeated_arguments.rs:1:5 diff --git a/sailfish-tests/integration-tests/tests/fails/unbalanced_brace.stderr b/sailfish-tests/integration-tests/tests/fails/unbalanced_brace.stderr index bae19ef..85ba49c 100644 --- a/sailfish-tests/integration-tests/tests/fails/unbalanced_brace.stderr +++ b/sailfish-tests/integration-tests/tests/fails/unbalanced_brace.stderr @@ -1,3 +1,13 @@ +warning: unused import: `std::mem` + --> $DIR/mod.rs:12:5 + | +12 | use std::mem; + | ^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: 1 warning emitted + error: Failed to compile template. Caused by: Rust Syntax Error: LexError diff --git a/sailfish-tests/integration-tests/tests/fails/unclosed_delimter.stderr b/sailfish-tests/integration-tests/tests/fails/unclosed_delimter.stderr index cc7e69d..9925245 100644 --- a/sailfish-tests/integration-tests/tests/fails/unclosed_delimter.stderr +++ b/sailfish-tests/integration-tests/tests/fails/unclosed_delimter.stderr @@ -1,3 +1,13 @@ +warning: unused import: `std::mem` + --> $DIR/mod.rs:12:5 + | +12 | use std::mem; + | ^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: 1 warning emitted + error: Failed to compile template. Caused by: Parse error: Unterminated code block @@ -26,7 +36,7 @@ error[E0599]: no method named `render_once` found for struct `UnclosedDelimiter` | = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `render_once`, perhaps you need to implement it: - candidate #1: `sailfish::TemplateOnce` + candidate #1: `TemplateOnce` warning: unused import: `sailfish::TemplateOnce` --> $DIR/unclosed_delimter.rs:1:5 diff --git a/sailfish-tests/integration-tests/tests/fails/unexpected_token.stderr b/sailfish-tests/integration-tests/tests/fails/unexpected_token.stderr index bcc3da6..02aeb83 100644 --- a/sailfish-tests/integration-tests/tests/fails/unexpected_token.stderr +++ b/sailfish-tests/integration-tests/tests/fails/unexpected_token.stderr @@ -1,3 +1,13 @@ +warning: unused import: `std::mem` + --> $DIR/mod.rs:12:5 + | +12 | use std::mem; + | ^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: 1 warning emitted + error: Failed to compile template. Caused by: Rust Syntax Error: expected expression diff --git a/sailfish-tests/integration-tests/tests/fails/unknown_option.stderr b/sailfish-tests/integration-tests/tests/fails/unknown_option.stderr index 2f0357d..733c529 100644 --- a/sailfish-tests/integration-tests/tests/fails/unknown_option.stderr +++ b/sailfish-tests/integration-tests/tests/fails/unknown_option.stderr @@ -1,3 +1,13 @@ +warning: unused import: `std::mem` + --> $DIR/mod.rs:12:5 + | +12 | use std::mem; + | ^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: 1 warning emitted + error: Unknown option: `patth` --> $DIR/unknown_option.rs:5:12 | @@ -15,7 +25,7 @@ error[E0599]: no method named `render_once` found for struct `UnknownOption` in | = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `render_once`, perhaps you need to implement it: - candidate #1: `sailfish::TemplateOnce` + candidate #1: `TemplateOnce` warning: unused import: `sailfish::TemplateOnce` --> $DIR/unknown_option.rs:1:5