Skip to content

Commit

Permalink
#42 Remove deprecation and move it in #62
Browse files Browse the repository at this point in the history
  • Loading branch information
la10736 committed Oct 12, 2019
1 parent 37c023e commit 1d681db
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -863,10 +863,6 @@ fn render_matrix_cases(test: ItemFn, params: parse::matrix::MatrixInfo) -> Token
/// assert_eq!(expected, input.as_ref().len())
/// }
/// ```
#[deprecated(
since = "0.5.0",
note = "Please use just rstest instead (rstest_parametrize will be removed soon).")
]
#[proc_macro_attribute]
pub fn rstest_parametrize(args: proc_macro::TokenStream, input: proc_macro::TokenStream)
-> proc_macro::TokenStream
Expand Down
8 changes: 0 additions & 8 deletions tests/parametrize/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ fn happy_path() {
.assert(output);
}

#[test]
fn should_be_deprecated() {
let (output, _) = run_test("simple.rs");
let stderr = output.stderr.str();

assert_in!(stderr, "Warning: use of deprecated item 'rstest_parametrize': Please use just rstest instead")
}

#[test]
fn mut_input() {
let (output, _) = run_test("mut.rs");
Expand Down
9 changes: 0 additions & 9 deletions tests/rstest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@ mod cases {
.assert(output);
}

#[test]
fn should_not_show_deprecation() {
let (output, _) = run_test("simple.rs");
let stderr = output.stderr.str();

assert!(!stderr.contains("use of deprecated item 'rstest_parametrize'"),
"Contains deprecation message: '{}'", stderr);
}

#[test]
fn mut_input() {
let (output, _) = run_test("mut.rs");
Expand Down

0 comments on commit 1d681db

Please sign in to comment.