diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 144ba54c..9bdfebb3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -111,6 +111,37 @@ To generate this data, please run `./scripts/regenerate_test_rustdocs.sh`. To use a specific toolchain, like beta or nightly, pass it as an argument: `./scripts/regenerate_test_rustdocs.sh +nightly`. +## What are those `.snap` or `.snap.new` files generated via `cargo test` + +As part of our overall testing strategy, we use a technique called "snapshot testing." +The tool we use for this ([`insta`](https://insta.rs/docs/)) is user friendly and has mutliple ways to interact with it: + +These snapshots are by default written to `.snap.new` files (because `INSTA_UPDATE` explained below defaults to `auto`) if they differ and fail the testcase. +Reviewing them is possible via these options: + +1. **With `cargo-insta`**: If you install (or have already installed) the `insta` CLI with + `cargo install --locked cargo-insta`, you can run `cargo insta review`. Check that the + new output is what you expect, and accept it in the TUI. +2. **Without `cargo-insta`**: + From [`insta`s docs](https://insta.rs/docs/quickstart/#tests-without-insta): + > You can also just use insta directly from cargo test and control it via the `INSTA_UPDATE` environment variable. + > The default is auto which will write all new snapshots into .snap.new files if no CI is detected so that cargo-insta can pick them up. The following other modes are possible: + > - `auto`: the default. no for CI environments or new otherwise + > - `always`: overwrites old snapshot files with new ones unasked + > - `unseen`: behaves like always for new snapshots and new for others + > - `new`: write new snapshots into .snap.new files + > - `no`: does not update snapshot files at all (just runs tests) + + Thus, if you run the following command, you can accept the current snapshots after reviewing the `.snap.new` files. + ```text + INSTA_UPDATE=always cargo test + ``` +3. **Manually**: If you can't (or don't want to) use `cargo-insta`, you can verify the snapshot + file manually. There should be a file called `test_outputs//.snap.new`. + Open it, and verify that its contents match what you expected: all expected data is present, and no unexpected data is included. + Once you've checked it, remove the `.new` suffix so that the file's new path + is `test_outputs//.snap` + ## Adding a new lint ### Background @@ -136,7 +167,7 @@ First, choose an appropriate name for your lint. We'll refer to it as `.ron`. - Create a new test crate pair: `test_crates//old` and `test_crates//new`. -- Add an empty expected test outputs file: `test_outputs/.output.ron`. +- Add an empty expected test outputs file: `test_outputs/query_execution/.snap`. - Register your new lint in the `add_lints!()` macro near the bottom of [`src/query.rs`](https://github.com/obi1kenobi/cargo-semver-checks/tree/main/src/query.rs). Now it's time to fill in these files! @@ -171,32 +202,65 @@ and probably isn't working quite right. For a lint named `enum_struct_variant_field_added`, you'll probably see its test fail with a message similar to this: ``` -Query enum_struct_variant_field_added produced incorrect output (./src/lints/enum_struct_variant_field_added.ron). - -Expected output (./test_outputs/enum_struct_variant_field_added.output.ron): -{ - "./test_crates/enum_struct_variant_field_added/": [], -} - -Actual output: -{ - "./test_crates/enum_struct_variant_field_added/": [ - { - "enum_name": String("PubEnum"), - "field_name": String("y"), - "path": List([ - String("enum_struct_variant_field_added"), - String("PubEnum"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "variant_name": String("Foo"), - }, - ], -} +---- query::tests_lints::enum_struct_variant_field_added stdout ---- +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +Snapshot file: src/../test_outputs/query_execution/enum_struct_variant_field_added.snap +Snapshot: enum_struct_variant_field_added +Source: src/query.rs:646 +──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── +Expression: &query_execution_results +──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── +-old snapshot ++new results +────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + 0 0 │ { + 1 │- "./test_crates/enum_struct_variant_field_added/": [] + 1 │+ "./test_crates/enum_no_repr_variant_discriminant_changed/": [ + 2 │+ { + 3 │+ "enum_name": String("UnitOnlyBecomesUndefined"), + 4 │+ "field_name": String("a"), + 5 │+ "path": List([ + 6 │+ String("enum_no_repr_variant_discriminant_changed"), + 7 │+ String("UnitOnlyBecomesUndefined"), + 8 │+ ]), + 9 │+ "span_begin_line": Uint64(77), + 10 │+ "span_filename": String("src/lib.rs"), + 11 │+ "variant_name": String("Struct"), + 12 │+ }, + 13 │+ ], + 14 │+ "./test_crates/enum_struct_field_hidden_from_public_api/": [ + 15 │+ { + 16 │+ "enum_name": String("AddedVariantField"), + 17 │+ "field_name": String("y"), + 18 │+ "path": List([ + 19 │+ String("enum_struct_field_hidden_from_public_api"), + 20 │+ String("AddedVariantField"), + 21 │+ ]), + 22 │+ "span_begin_line": Uint64(38), + 23 │+ "span_filename": String("src/lib.rs"), + 24 │+ "variant_name": String("StructVariant"), + 25 │+ }, + 26 │+ ], + 27 │+ "./test_crates/enum_struct_variant_field_added/": [ + 28 │+ { + 29 │+ "enum_name": String("PubEnum"), + 30 │+ "field_name": String("y"), + 31 │+ "path": List([ + 32 │+ String("enum_struct_variant_field_added"), + 33 │+ String("PubEnum"), + 34 │+ ]), + 35 │+ "span_begin_line": Uint64(4), + 36 │+ "span_filename": String("src/lib.rs"), + 37 │+ "variant_name": String("Foo"), + 38 │+ }, + 39 │+ ], + 2 40 │ } +────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── +To update snapshots run `cargo insta review` +Stopped on the first failure. Run `cargo insta test` to run all snapshots. ``` -Inspect the "actual" output: +Inspect the generated "actual" output in the `.snap.new` file: - Does it report the semver issue your lint was supposed to catch? If not, the lint query or the test crates' code may need to be tweaked. - Does it report correct span information? Is the span as specific as possible, for example @@ -205,8 +269,11 @@ Inspect the "actual" output: If so, ensure the reported code is indeed violating semver and is not being flagged by any other lint. -If everything looks okay, edit your `test_outputs/.output.ron` file adding -the "actual" output, then re-run `cargo test` and make sure everything passes. +If everything looks okay, either run `cargo insta review` (see +the [snapshot instructions](#what-are-those-snap-or-snapnew-files-generated-via-cargo-test) +for context) or manually move `test_outputs/query_execution/.snap.new` +to `test_outputs/query_execution/.snap`. +Then re-run `cargo test` and make sure everything passes. Congrats on the new lint! @@ -269,18 +336,14 @@ time, run `cargo test` to start generating the snapshots. The first time you ru it will fail, because there's no expected result to compare to. Let's make the test pass: We use `insta` for snapshot testing witness results, so after adding/changing a witness, we need -to update the test outputs. Note that it may contain output for other test crates - this -is not necessarily an error: see the troubleshooting section for more info. +to update the test outputs. -There are two ways to update the output: +> [!TIP] +> It may contain output for other test crates — this is not necessarily an error: +> See the [troubleshooting section](#troubleshooting) for more info. -1. **With `cargo insta`**: If you install (or have already installed) the `insta` CLI with - `cargo install --locked cargo-insta`, you can run `cargo insta review`. Check that the - new output is what you expect, and accept it in the TUI. -2. **Manually**: If you can't (or don't want to) use `cargo-insta`, you can verify the snapshot - file manually. There should be a file called `test_outputs/witnesses/.snap.new`. - Open it, and verify that the witnesses generated as expected. Once you've checked it, move it - to `test_outputs/witnesses/.snap` (remove the `.new`) +To update the output, please refer to the section +on [snapshot testing](#what-are-those-snap-or-snapnew-files-generated-via-cargo-test) Once you've update the test output, run `cargo test` again and the `` test should pass! **Make sure to commit and push the `test_outputs/witnesses/.snap` into git**; diff --git a/scripts/make_new_lint.sh b/scripts/make_new_lint.sh index 77ca9e41..a5d00ee5 100755 --- a/scripts/make_new_lint.sh +++ b/scripts/make_new_lint.sh @@ -65,12 +65,16 @@ NEW_LINT_TEST_CRATES_DIR="$TEST_CRATES_DIR/$NEW_LINT_NAME" ./scripts/make_new_test_crate.sh "$NEW_LINT_NAME" # Add the test outputs file. -NEW_TEST_OUTPUT_FILE="$TEST_OUTPUTS_DIR/$NEW_LINT_NAME.output.ron" +NEW_TEST_OUTPUT_FILE="$TEST_OUTPUTS_DIR/query_execution/$NEW_LINT_NAME.snap" echo -n "Creating test outputs file ${NEW_TEST_OUTPUT_FILE#"$TOPLEVEL/"} ..." if [[ -f "$NEW_TEST_OUTPUT_FILE" ]]; then echo ' already exists.' else cat <"$NEW_TEST_OUTPUT_FILE" +--- +source: src/query.rs +expression: "&query_execution_results" +--- { "./test_crates/$NEW_LINT_NAME/": [ // TODO diff --git a/src/query.rs b/src/query.rs index 4799fb52..2a2d5ff8 100644 --- a/src/query.rs +++ b/src/query.rs @@ -590,14 +590,7 @@ mod tests { let query_text = std::fs::read_to_string(format!("./src/lints/{query_name}.ron")).unwrap(); let semver_query = SemverQuery::from_ron_str(&query_text).unwrap(); - let expected_result_text = - std::fs::read_to_string(format!("./test_outputs/{query_name}.output.ron")) - .with_context(|| format!("Could not load test_outputs/{query_name}.output.ron expected-outputs file, did you forget to add it?")) - .expect("failed to load expected outputs"); - let mut expected_results: TestOutput = ron::from_str(&expected_result_text) - .expect("could not parse expected outputs as ron format"); - - let mut actual_results: TestOutput = get_test_crate_names() + let mut query_execution_results: TestOutput = get_test_crate_names() .iter() .map(|crate_pair_name| { let (crate_old, crate_new) = get_test_crate_rustdocs(crate_pair_name); @@ -629,42 +622,35 @@ mod tests { .filter(|(_crate_pair_name, output)| !output.is_empty()) .collect(); - // Reorder both vectors of results into a deterministic order that will compensate for + // Reorder vector of results into a deterministic order that will compensate for // nondeterminism in how the results are ordered. - let sort_individual_outputs = |results: &mut TestOutput| { - let key_func = |elem: &BTreeMap| { - let filename = elem.get("span_filename").and_then(|value| value.as_str()); - let line = elem.get("span_begin_line"); - - match (filename, line) { - (Some(filename), Some(line)) => (filename.to_owned(), line.as_usize()), - (Some(_filename), _) => panic!("A valid query must output `span_filename`. See https://github.com/obi1kenobi/cargo-semver-checks/blob/main/CONTRIBUTING.md for details."), - (_, Some(_line)) => panic!("A valid query must output `span_begin_line`. See https://github.com/obi1kenobi/cargo-semver-checks/blob/main/CONTRIBUTING.md for details."), - _ => panic!("A valid query must output both `span_filename` and `span_begin_line`. See https://github.com/obi1kenobi/cargo-semver-checks/blob/main/CONTRIBUTING.md for details."), - } - }; - for value in results.values_mut() { - value.sort_unstable_by_key(key_func); + let key_func = |elem: &BTreeMap| { + let filename = elem.get("span_filename").and_then(|value| value.as_str()); + let line = elem.get("span_begin_line"); + + match (filename, line) { + (Some(filename), Some(line)) => (filename.to_owned(), line.as_usize()), + (Some(_filename), None) => panic!("A valid query must output `span_filename`. See https://github.com/obi1kenobi/cargo-semver-checks/blob/main/CONTRIBUTING.md for details."), + (None, Some(_line)) => panic!("A valid query must output `span_begin_line`. See https://github.com/obi1kenobi/cargo-semver-checks/blob/main/CONTRIBUTING.md for details."), + (None, None) => panic!("A valid query must output both `span_filename` and `span_begin_line`. See https://github.com/obi1kenobi/cargo-semver-checks/blob/main/CONTRIBUTING.md for details."), } }; - sort_individual_outputs(&mut expected_results); - sort_individual_outputs(&mut actual_results); - - if expected_results != actual_results { - panic!( - "\n{}\n", - pretty_format_output_difference( - query_name, - "expected", - expected_results, - "actual", - actual_results - ) - ); + for value in query_execution_results.values_mut() { + value.sort_unstable_by_key(key_func); } - let transparent_actual_results: BTreeMap<_, Vec>> = - actual_results + insta::with_settings!( + { + prepend_module_to_snapshot => false, + snapshot_path => "../test_outputs/query_execution", + }, + { + insta::assert_ron_snapshot!(query_name, &query_execution_results); + } + ); + + let transparent_results: BTreeMap<_, Vec>> = + query_execution_results .into_iter() .map(|(k, v)| { ( @@ -678,9 +664,9 @@ mod tests { let registry = make_handlebars_registry(); if let Some(template) = semver_query.per_result_error_template { - assert!(!transparent_actual_results.is_empty()); + assert!(!transparent_results.is_empty()); - let flattened_actual_results: Vec<_> = transparent_actual_results + let flattened_actual_results: Vec<_> = transparent_results .iter() .flat_map(|(_key, value)| value) .collect(); @@ -693,7 +679,7 @@ mod tests { } if let Some(witness) = semver_query.witness { - let actual_witnesses: BTreeMap<_, BTreeSet<_>> = transparent_actual_results + let actual_witnesses: BTreeMap<_, BTreeSet<_>> = transparent_results .iter() .map(|(k, v)| { ( diff --git a/src/snapshot_tests.rs b/src/snapshot_tests.rs index 471d6e4c..5e8f2a08 100644 --- a/src/snapshot_tests.rs +++ b/src/snapshot_tests.rs @@ -368,3 +368,64 @@ fn multiple_ambiguous_package_name_definitions() { ], ); } + +/// Helper function which lists all files in the directory recursively. +/// +/// # Arguments +/// +/// - `path` is the path from which all [`std::fs::DirEntry`]'s will be expanded from +fn recurse_list_files(path: impl AsRef) -> Vec { + let mut buf = vec![]; + let entries = std::fs::read_dir(path).expect("failed to read the requested path"); + + for entry in entries { + let entry = entry.expect("failed to iterate due to intermittent IO errors"); + let meta = entry.metadata().expect("failed to read file metadata"); + + if meta.is_dir() { + let mut subdir = recurse_list_files(entry.path()); + buf.append(&mut subdir); + } + if meta.is_file() { + buf.push(entry); + } + } + + buf +} + +/// Make sure that no `.snap.new` snapshots exist. +/// +/// This testcase exists as [`insta`] behaves as the following +/// if seeing both a `.snap.new` and a `.snap` file: +/// - If the content of both files is equal, +/// it will pass without failure and remove `.snap.new`-file +/// - If not, it will fail and show the diff +/// +/// This behavior is problematic as +/// - we might not pick up on a `.snap.new` file being added as the testcase pass in CI and +/// - future contributors would be confused where this change comes from +/// +/// Therefore, we are asserting that no such files exist. +#[test] +fn no_new_snapshots() { + let files = recurse_list_files("test_outputs/"); + let new_snaps = files + .into_iter() + .map(|f| f.path()) + .filter(|f| { + if let Some(name) = f.file_name().unwrap().to_str() { + return name.ends_with("snap.new"); + } + false + }) + .collect::>(); + assert_eq!( + new_snaps, + Vec::::new(), + "`.snap.new` files exit, but should not. Did you\n\ + - forget to run `cargo insta review` or\n\ + - forget to move the `.snap.new` file to `.snap` after verifying \ + the content is exactly as expected?" + ); +} diff --git a/test_outputs/auto_trait_impl_removed.output.ron b/test_outputs/auto_trait_impl_removed.output.ron deleted file mode 100644 index 577565a5..00000000 --- a/test_outputs/auto_trait_impl_removed.output.ron +++ /dev/null @@ -1,86 +0,0 @@ -{ - "./test_crates/auto_trait_impl_removed/": [ - { - "auto_trait": String("Sync"), - "auto_trait_path": List([ - String("core"), - String("marker"), - String("Sync"), - ]), - "name": String("SyncStruct"), - "path": List([ - String("auto_trait_impl_removed"), - String("SyncStruct"), - ]), - "span_begin_line": Uint64(8), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "auto_trait": String("Send"), - "auto_trait_path": List([ - String("core"), - String("marker"), - String("Send"), - ]), - "name": String("SendStruct"), - "path": List([ - String("auto_trait_impl_removed"), - String("SendStruct"), - ]), - "span_begin_line": Uint64(15), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "auto_trait": String("UnwindSafe"), - "auto_trait_path": List([ - String("core"), - String("panic"), - String("unwind_safe"), - String("UnwindSafe"), - ]), - "name": String("UnwindSafeStruct"), - "path": List([ - String("auto_trait_impl_removed"), - String("UnwindSafeStruct"), - ]), - "span_begin_line": Uint64(21), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "auto_trait": String("RefUnwindSafe"), - "auto_trait_path": List([ - String("core"), - String("panic"), - String("unwind_safe"), - String("RefUnwindSafe"), - ]), - "name": String("RefUnwindSafeStruct"), - "path": List([ - String("auto_trait_impl_removed"), - String("RefUnwindSafeStruct"), - ]), - "span_begin_line": Uint64(26), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "auto_trait": String("Unpin"), - "auto_trait_path": List([ - String("core"), - String("marker"), - String("Unpin"), - ]), - "name": String("UnpinStruct"), - "path": List([ - String("auto_trait_impl_removed"), - String("UnpinStruct"), - ]), - "span_begin_line": Uint64(39), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/constructible_struct_adds_field.output.ron b/test_outputs/constructible_struct_adds_field.output.ron deleted file mode 100644 index fcee01e8..00000000 --- a/test_outputs/constructible_struct_adds_field.output.ron +++ /dev/null @@ -1,72 +0,0 @@ -{ - "./test_crates/constructible_struct_adds_field/": [ - { - "field_name": String("new_field"), - "path": List([ - String("constructible_struct_adds_field"), - String("ExhaustiveEmptyPlainStruct"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "struct_name": String("ExhaustiveEmptyPlainStruct"), - "struct_type": String("plain"), - }, - { - "field_name": String("new_field"), - "path": List([ - String("constructible_struct_adds_field"), - String("ExhaustivePlainStruct"), - ]), - "span_begin_line": Uint64(8), - "span_filename": String("src/lib.rs"), - "struct_name": String("ExhaustivePlainStruct"), - "struct_type": String("plain"), - }, - { - "field_name": String("0"), - "path": List([ - String("constructible_struct_adds_field"), - String("ExhaustiveEmptyTupleStruct"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - "struct_name": String("ExhaustiveEmptyTupleStruct"), - "struct_type": String("tuple"), - }, - { - "field_name": String("2"), - "path": List([ - String("constructible_struct_adds_field"), - String("ExhaustiveTupleStruct"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/lib.rs"), - "struct_name": String("ExhaustiveTupleStruct"), - "struct_type": String("tuple"), - }, - ], - "./test_crates/constructible_struct_adds_private_field/": [ - { - "field_name": String("new_field"), - "path": List([ - String("constructible_struct_adds_private_field"), - String("PlainStructGainsPublicField"), - ]), - "span_begin_line": Uint64(42), - "span_filename": String("src/lib.rs"), - "struct_name": String("PlainStructGainsPublicField"), - "struct_type": String("plain"), - }, - { - "field_name": String("2"), - "path": List([ - String("constructible_struct_adds_private_field"), - String("TupleStructGainsPublicField"), - ]), - "span_begin_line": Uint64(47), - "span_filename": String("src/lib.rs"), - "struct_name": String("TupleStructGainsPublicField"), - "struct_type": String("tuple"), - }, - ], -} diff --git a/test_outputs/constructible_struct_adds_private_field.output.ron b/test_outputs/constructible_struct_adds_private_field.output.ron deleted file mode 100644 index 02037cd9..00000000 --- a/test_outputs/constructible_struct_adds_private_field.output.ron +++ /dev/null @@ -1,72 +0,0 @@ -{ - "./test_crates/constructible_struct_adds_field/": [ - { - "field_name": String("new_field"), - "path": List([ - String("constructible_struct_adds_field"), - String("PlainStructGainsPrivateField"), - ]), - "span_begin_line": Uint64(42), - "span_filename": String("src/lib.rs"), - "struct_name": String("PlainStructGainsPrivateField"), - "struct_type": String("plain"), - }, - { - "field_name": String("2"), - "path": List([ - String("constructible_struct_adds_field"), - String("TupleStructGainsPrivateField"), - ]), - "span_begin_line": Uint64(47), - "span_filename": String("src/lib.rs"), - "struct_name": String("TupleStructGainsPrivateField"), - "struct_type": String("tuple"), - }, - ], - "./test_crates/constructible_struct_adds_private_field/": [ - { - "field_name": String("new_field"), - "path": List([ - String("constructible_struct_adds_private_field"), - String("ExhaustiveEmptyPlainStruct"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "struct_name": String("ExhaustiveEmptyPlainStruct"), - "struct_type": String("plain"), - }, - { - "field_name": String("new_field"), - "path": List([ - String("constructible_struct_adds_private_field"), - String("ExhaustivePlainStruct"), - ]), - "span_begin_line": Uint64(8), - "span_filename": String("src/lib.rs"), - "struct_name": String("ExhaustivePlainStruct"), - "struct_type": String("plain"), - }, - { - "field_name": String("0"), - "path": List([ - String("constructible_struct_adds_private_field"), - String("ExhaustiveEmptyTupleStruct"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - "struct_name": String("ExhaustiveEmptyTupleStruct"), - "struct_type": String("tuple"), - }, - { - "field_name": String("2"), - "path": List([ - String("constructible_struct_adds_private_field"), - String("ExhaustiveTupleStruct"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/lib.rs"), - "struct_name": String("ExhaustiveTupleStruct"), - "struct_type": String("tuple"), - }, - ], -} diff --git a/test_outputs/constructible_struct_changed_type.output.ron b/test_outputs/constructible_struct_changed_type.output.ron deleted file mode 100644 index 0b72b6f7..00000000 --- a/test_outputs/constructible_struct_changed_type.output.ron +++ /dev/null @@ -1,43 +0,0 @@ -{ - "./test_crates/struct_becomes_enum/": [ - { - "current_typename": String("Enum"), - "name": String("ConstructibleFieldlessUnit"), - "path": List([ - String("struct_becomes_enum"), - String("ConstructibleFieldlessUnit"), - ]), - "span_begin_line": Uint64(29), - "span_filename": String("src/lib.rs"), - "struct_type": String("unit"), - "struct_typename": String("Struct"), - "visibility_limit": String("public"), - }, - { - "current_typename": String("Enum"), - "name": String("ConstructibleFieldlessTuple"), - "path": List([ - String("struct_becomes_enum"), - String("ConstructibleFieldlessTuple"), - ]), - "span_begin_line": Uint64(31), - "span_filename": String("src/lib.rs"), - "struct_type": String("tuple"), - "struct_typename": String("Struct"), - "visibility_limit": String("public"), - }, - { - "current_typename": String("Enum"), - "name": String("ConstructibleFieldlessStruct"), - "path": List([ - String("struct_becomes_enum"), - String("ConstructibleFieldlessStruct"), - ]), - "span_begin_line": Uint64(35), - "span_filename": String("src/lib.rs"), - "struct_type": String("plain"), - "struct_typename": String("Struct"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/derive_trait_impl_removed.output.ron b/test_outputs/derive_trait_impl_removed.output.ron deleted file mode 100644 index fed3962f..00000000 --- a/test_outputs/derive_trait_impl_removed.output.ron +++ /dev/null @@ -1,52 +0,0 @@ -{ - "./test_crates/derive_trait_impl_removed/": [ - { - "name": String("DebugFoo"), - "path": List([ - String("derive_trait_impl_removed"), - String("DebugFoo"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "trait_name": String("Debug"), - "trait_path": List([ - String("core"), - String("fmt"), - String("Debug"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("CopyBar"), - "path": List([ - String("derive_trait_impl_removed"), - String("CopyBar"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "trait_name": String("Copy"), - "trait_path": List([ - String("core"), - String("marker"), - String("Copy"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("EqFoo"), - "path": List([ - String("derive_trait_impl_removed"), - String("EqFoo"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/lib.rs"), - "trait_name": String("Eq"), - "trait_path": List([ - String("core"), - String("cmp"), - String("Eq"), - ]), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/enum_marked_non_exhaustive.output.ron b/test_outputs/enum_marked_non_exhaustive.output.ron deleted file mode 100644 index 3b4a1e0f..00000000 --- a/test_outputs/enum_marked_non_exhaustive.output.ron +++ /dev/null @@ -1,14 +0,0 @@ -{ - "./test_crates/non_exhaustive/": [ - { - "name": String("SimpleEnum"), - "path": List([ - String("non_exhaustive"), - String("SimpleEnum"), - ]), - "span_begin_line": Uint64(48), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/enum_missing.output.ron b/test_outputs/enum_missing.output.ron deleted file mode 100644 index 8814f843..00000000 --- a/test_outputs/enum_missing.output.ron +++ /dev/null @@ -1,96 +0,0 @@ -{ - "./test_crates/enum_missing/": [ - { - "name": String("WillBeRemovedEnum"), - "path": List([ - String("enum_missing"), - String("WillBeRemovedEnum"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PubUseRemovedEnum"), - "path": List([ - String("enum_missing"), - String("PubUseRemovedEnum"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/enum_tuple_variant_field_added/": [ - { - "name": String("BecomesPrivateEnum"), - "path": List([ - String("enum_tuple_variant_field_added"), - String("BecomesPrivateEnum"), - ]), - "span_begin_line": Uint64(29), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/enum_tuple_variant_field_missing/": [ - { - "name": String("BecomesPrivateEnum"), - "path": List([ - String("enum_tuple_variant_field_missing"), - String("BecomesPrivateEnum"), - ]), - "span_begin_line": Uint64(21), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/enum_variant_missing/": [ - { - "name": String("ShouldNotMatch"), - "path": List([ - String("enum_variant_missing"), - String("ShouldNotMatch"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/inherent_method_must_use_added/": [ - { - "name": String("EnumToStructWithMustUseMethods"), - "path": List([ - String("inherent_method_must_use_added"), - String("item_type_changed_inherent_method_must_use_added"), - String("EnumToStructWithMustUseMethods"), - ]), - "span_begin_line": Uint64(8), - "span_filename": String("src/item_type_changed_inherent_method_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("EnumToUnionWithMustUseMethods"), - "path": List([ - String("inherent_method_must_use_added"), - String("item_type_changed_inherent_method_must_use_added"), - String("EnumToUnionWithMustUseMethods"), - ]), - "span_begin_line": Uint64(35), - "span_filename": String("src/item_type_changed_inherent_method_must_use_added.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/switch_to_reexport_as_underscore/": [ - { - "name": String("Enum"), - "path": List([ - String("switch_to_reexport_as_underscore"), - String("Enum"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/enum_must_use_added.output.ron b/test_outputs/enum_must_use_added.output.ron deleted file mode 100644 index 5a0d3ab2..00000000 --- a/test_outputs/enum_must_use_added.output.ron +++ /dev/null @@ -1,26 +0,0 @@ -{ - "./test_crates/enum_must_use_added/": [ - { - "name": String("EnumToMustUseEnum"), - "new_attr": String("#[must_use]"), - "path": List([ - String("enum_must_use_added"), - String("EnumToMustUseEnum"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("EnumToMustUseMessageEnum"), - "new_attr": String("#[must_use = \"Foo\"]"), - "path": List([ - String("enum_must_use_added"), - String("EnumToMustUseMessageEnum"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/enum_no_repr_variant_discriminant_changed.output.ron b/test_outputs/enum_no_repr_variant_discriminant_changed.output.ron deleted file mode 100644 index 88c6dac0..00000000 --- a/test_outputs/enum_no_repr_variant_discriminant_changed.output.ron +++ /dev/null @@ -1,56 +0,0 @@ -{ - "./test_crates/enum_no_repr_variant_discriminant_changed/": [ - { - "enum_name": String("ExplicitAndImplicitDiscriminantsAreChanged"), - "new_value": String("2"), - "old_value": String("1"), - "path": List([ - String("enum_no_repr_variant_discriminant_changed"), - String("ExplicitAndImplicitDiscriminantsAreChanged"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "variant_name": String("First"), - "visibility_limit": String("public"), - }, - { - "enum_name": String("ExplicitAndImplicitDiscriminantsAreChanged"), - "new_value": String("3"), - "old_value": String("2"), - "path": List([ - String("enum_no_repr_variant_discriminant_changed"), - String("ExplicitAndImplicitDiscriminantsAreChanged"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "variant_name": String("Second"), - "visibility_limit": String("public"), - }, - { - "enum_name": String("DiscriminantIsChanged"), - "new_value": String("1"), - "old_value": String("0"), - "path": List([ - String("enum_no_repr_variant_discriminant_changed"), - String("DiscriminantIsChanged"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/lib.rs"), - "variant_name": String("First"), - "visibility_limit": String("public"), - }, - { - "enum_name": String("DiscriminantBecomesDocHiddenAndExplicit"), - "new_value": String("2"), - "old_value": String("1"), - "path": List([ - String("enum_no_repr_variant_discriminant_changed"), - String("DiscriminantBecomesDocHiddenAndExplicit"), - ]), - "span_begin_line": Uint64(42), - "span_filename": String("src/lib.rs"), - "variant_name": String("Second"), - "visibility_limit": String("public"), - }, - ] -} diff --git a/test_outputs/enum_now_doc_hidden.output.ron b/test_outputs/enum_now_doc_hidden.output.ron deleted file mode 100644 index 2fe8b658..00000000 --- a/test_outputs/enum_now_doc_hidden.output.ron +++ /dev/null @@ -1,45 +0,0 @@ -{ - "./test_crates/enum_now_doc_hidden/": [ - { - "enum_name": String("MyEnum"), - "path": List([ - String("enum_now_doc_hidden"), - String("MyPublicMod"), - String("MyEnum"), - ]), - "span_begin_line": Uint64(15), - "span_filename": String("src/lib.rs"), - }, - { - "enum_name": String("MyEnum"), - "path": List([ - String("enum_now_doc_hidden"), - String("MyNestedPublicMod"), - String("PublicInnerMod"), - String("MyEnum"), - ]), - "span_begin_line": Uint64(46), - "span_filename": String("src/lib.rs"), - }, - { - "enum_name": String("Example"), - "path": List([ - String("enum_now_doc_hidden"), - String("Example"), - ]), - "span_begin_line": Uint64(59), - "span_filename": String("src/lib.rs"), - }, - ], - "./test_crates/type_hidden_from_public_api/": [ - { - "enum_name": String("ExampleEnum"), - "path": List([ - String("type_hidden_from_public_api"), - String("ExampleEnum"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/lib.rs"), - }, - ], -} diff --git a/test_outputs/enum_repr_int_changed.output.ron b/test_outputs/enum_repr_int_changed.output.ron deleted file mode 100644 index ebfda483..00000000 --- a/test_outputs/enum_repr_int_changed.output.ron +++ /dev/null @@ -1,258 +0,0 @@ -{ - "./test_crates/enum_repr_int_changed/": [ - { - "name": String("U8ToU16Enum"), - "new_attr": List([ - String("#[repr(u16)]"), - ]), - "old_attr": String("#[repr(u8)]"), - "path": List([ - String("enum_repr_int_changed"), - String("U8ToU16Enum"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("I32ToI8Enum"), - "new_attr": List([ - String("#[repr(i8)]"), - ]), - "old_attr": String("#[repr(i32)]"), - "path": List([ - String("enum_repr_int_changed"), - String("I32ToI8Enum"), - ]), - "span_begin_line": Uint64(8), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("I32ToU32Enum"), - "new_attr": List([ - String("#[repr(u32)]"), - ]), - "old_attr": String("#[repr(i32)]"), - "path": List([ - String("enum_repr_int_changed"), - String("I32ToU32Enum"), - ]), - "span_begin_line": Uint64(14), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("U8CToU16CEnum"), - "new_attr": List([ - String("#[repr(u16, C)]"), - ]), - "old_attr": String("#[repr(u8, C)]"), - "path": List([ - String("enum_repr_int_changed"), - String("U8CToU16CEnum"), - ]), - "span_begin_line": Uint64(20), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("CU8ToCU16Enum"), - "new_attr": List([ - String("#[repr(C, u16)]"), - ]), - "old_attr": String("#[repr(C, u8)]"), - "path": List([ - String("enum_repr_int_changed"), - String("CU8ToCU16Enum"), - ]), - "span_begin_line": Uint64(26), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("U8CToSeparateU16CEnum"), - "new_attr": List([ - String("#[repr(u16)]"), - ]), - "old_attr": String("#[repr(u8, C)]"), - "path": List([ - String("enum_repr_int_changed"), - String("U8CToSeparateU16CEnum"), - ]), - "span_begin_line": Uint64(33), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("U64ToUsizeEnum"), - "new_attr": List([ - String("#[repr(usize)]"), - ]), - "old_attr": String("#[repr(u64)]"), - "path": List([ - String("enum_repr_int_changed"), - String("U64ToUsizeEnum"), - ]), - "span_begin_line": Uint64(44), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("UsizeToU64Enum"), - "new_attr": List([ - String("#[repr(u64)]"), - ]), - "old_attr": String("#[repr(usize)]"), - "path": List([ - String("enum_repr_int_changed"), - String("UsizeToU64Enum"), - ]), - "span_begin_line": Uint64(50), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("I64ToIsizeEnum"), - "new_attr": List([ - String("#[repr(isize)]"), - ]), - "old_attr": String("#[repr(i64)]"), - "path": List([ - String("enum_repr_int_changed"), - String("I64ToIsizeEnum"), - ]), - "span_begin_line": Uint64(56), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("IsizeToI64Enum"), - "new_attr": List([ - String("#[repr(i64)]"), - ]), - "old_attr": String("#[repr(isize)]"), - "path": List([ - String("enum_repr_int_changed"), - String("IsizeToI64Enum"), - ]), - "span_begin_line": Uint64(62), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("UsizeToIsizeEnum"), - "new_attr": List([ - String("#[repr(isize)]"), - ]), - "old_attr": String("#[repr(usize)]"), - "path": List([ - String("enum_repr_int_changed"), - String("UsizeToIsizeEnum"), - ]), - "span_begin_line": Uint64(68), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("IsizeToUsizeEnum"), - "new_attr": List([ - String("#[repr(usize)]"), - ]), - "old_attr": String("#[repr(isize)]"), - "path": List([ - String("enum_repr_int_changed"), - String("IsizeToUsizeEnum"), - ]), - "span_begin_line": Uint64(74), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/enum_repr_int_removed/": [ - { - "name": String("U8ToU16Enum"), - "new_attr": List([ - String("#[repr(u16)]"), - ]), - "old_attr": String("#[repr(u8)]"), - "path": List([ - String("enum_repr_int_removed"), - String("U8ToU16Enum"), - ]), - "span_begin_line": Uint64(108), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("I32ToI8Enum"), - "new_attr": List([ - String("#[repr(i8)]"), - ]), - "old_attr": String("#[repr(i32)]"), - "path": List([ - String("enum_repr_int_removed"), - String("I32ToI8Enum"), - ]), - "span_begin_line": Uint64(114), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("I32ToU32Enum"), - "new_attr": List([ - String("#[repr(u32)]"), - ]), - "old_attr": String("#[repr(i32)]"), - "path": List([ - String("enum_repr_int_removed"), - String("I32ToU32Enum"), - ]), - "span_begin_line": Uint64(120), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("U8CToU16CEnum"), - "new_attr": List([ - String("#[repr(u16, C)]"), - ]), - "old_attr": String("#[repr(u8, C)]"), - "path": List([ - String("enum_repr_int_removed"), - String("U8CToU16CEnum"), - ]), - "span_begin_line": Uint64(126), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("CU8ToCU16Enum"), - "new_attr": List([ - String("#[repr(C, u16)]"), - ]), - "old_attr": String("#[repr(C, u8)]"), - "path": List([ - String("enum_repr_int_removed"), - String("CU8ToCU16Enum"), - ]), - "span_begin_line": Uint64(132), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("U8CToSeparateU16CEnum"), - "new_attr": List([ - String("#[repr(u16)]"), - ]), - "old_attr": String("#[repr(u8, C)]"), - "path": List([ - String("enum_repr_int_removed"), - String("U8CToSeparateU16CEnum"), - ]), - "span_begin_line": Uint64(139), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/enum_repr_int_removed.output.ron b/test_outputs/enum_repr_int_removed.output.ron deleted file mode 100644 index 820e6b58..00000000 --- a/test_outputs/enum_repr_int_removed.output.ron +++ /dev/null @@ -1,183 +0,0 @@ -{ - - "./test_crates/enum_repr_int_changed/": [ - { - "name": String("U8EnumToEnum"), - "old_attr": String("#[repr(u8)]"), - "path": List([ - String("enum_repr_int_changed"), - String("U8EnumToEnum"), - ]), - "span_begin_line": Uint64(148), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("I32EnumToEnum"), - "old_attr": String("#[repr(i32)]"), - "path": List([ - String("enum_repr_int_changed"), - String("I32EnumToEnum"), - ]), - "span_begin_line": Uint64(153), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("IsizeEnumToEnum"), - "old_attr": String("#[repr(isize)]"), - "path": List([ - String("enum_repr_int_changed"), - String("IsizeEnumToEnum"), - ]), - "span_begin_line": Uint64(158), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("UsizeEnumToEnum"), - "old_attr": String("#[repr(usize)]"), - "path": List([ - String("enum_repr_int_changed"), - String("UsizeEnumToEnum"), - ]), - "span_begin_line": Uint64(163), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("U8CEnumToCEnum"), - "old_attr": String("#[repr(u8, C)]"), - "path": List([ - String("enum_repr_int_changed"), - String("U8CEnumToCEnum"), - ]), - "span_begin_line": Uint64(169), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("SeparateU8CEnumToCEnum"), - "old_attr": String("#[repr(u8)]"), - "path": List([ - String("enum_repr_int_changed"), - String("SeparateU8CEnumToCEnum"), - ]), - "span_begin_line": Uint64(175), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("CU8EnumToCEnum"), - "old_attr": String("#[repr(C, u8)]"), - "path": List([ - String("enum_repr_int_changed"), - String("CU8EnumToCEnum"), - ]), - "span_begin_line": Uint64(181), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("SeparateCU8EnumToCEnum"), - "old_attr": String("#[repr(u8)]"), - "path": List([ - String("enum_repr_int_changed"), - String("SeparateCU8EnumToCEnum"), - ]), - "span_begin_line": Uint64(187), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/enum_repr_int_removed/": [ - { - "name": String("U8EnumToEnum"), - "old_attr": String("#[repr(u8)]"), - "path": List([ - String("enum_repr_int_removed"), - String("U8EnumToEnum"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("I32EnumToEnum"), - "old_attr": String("#[repr(i32)]"), - "path": List([ - String("enum_repr_int_removed"), - String("I32EnumToEnum"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("IsizeEnumToEnum"), - "old_attr": String("#[repr(isize)]"), - "path": List([ - String("enum_repr_int_removed"), - String("IsizeEnumToEnum"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("UsizeEnumToEnum"), - "old_attr": String("#[repr(usize)]"), - "path": List([ - String("enum_repr_int_removed"), - String("UsizeEnumToEnum"), - ]), - "span_begin_line": Uint64(16), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("U8CEnumToCEnum"), - "old_attr": String("#[repr(u8, C)]"), - "path": List([ - String("enum_repr_int_removed"), - String("U8CEnumToCEnum"), - ]), - "span_begin_line": Uint64(22), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("SeparateU8CEnumToCEnum"), - "old_attr": String("#[repr(u8)]"), - "path": List([ - String("enum_repr_int_removed"), - String("SeparateU8CEnumToCEnum"), - ]), - "span_begin_line": Uint64(28), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("CU8EnumToCEnum"), - "old_attr": String("#[repr(C, u8)]"), - "path": List([ - String("enum_repr_int_removed"), - String("CU8EnumToCEnum"), - ]), - "span_begin_line": Uint64(34), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("SeparateCU8EnumToCEnum"), - "old_attr": String("#[repr(u8)]"), - "path": List([ - String("enum_repr_int_removed"), - String("SeparateCU8EnumToCEnum"), - ]), - "span_begin_line": Uint64(40), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/enum_repr_transparent_removed.output.ron b/test_outputs/enum_repr_transparent_removed.output.ron deleted file mode 100644 index a87ffb3f..00000000 --- a/test_outputs/enum_repr_transparent_removed.output.ron +++ /dev/null @@ -1,200 +0,0 @@ -{ - "./test_crates/enum_repr_transparent_removed/": [ - { - "name": String("Foo"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("enum_repr_transparent_removed"), - String("Foo"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "transparent_variant_name": List([ - String("Bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("Bar"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("enum_repr_transparent_removed"), - String("Bar"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "transparent_variant_name": List([ - String("Baz"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("StructStyleWithZeroSizedData"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("enum_repr_transparent_removed"), - String("StructStyleWithZeroSizedData"), - ]), - "span_begin_line": Uint64(9), - "span_filename": String("src/lib.rs"), - "transparent_variant_name": List([ - String("Bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("TupleStyleWithZeroSizedData"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("enum_repr_transparent_removed"), - String("TupleStyleWithZeroSizedData"), - ]), - "span_begin_line": Uint64(16), - "span_filename": String("src/lib.rs"), - "transparent_variant_name": List([ - String("Bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("StructStyleWithFoo"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("enum_repr_transparent_removed"), - String("StructStyleWithFoo"), - ]), - "span_begin_line": Uint64(20), - "span_filename": String("src/lib.rs"), - "transparent_variant_name": List([ - String("Bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("TupleStyleWithFoo"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("enum_repr_transparent_removed"), - String("TupleStyleWithFoo"), - ]), - "span_begin_line": Uint64(27), - "span_filename": String("src/lib.rs"), - "transparent_variant_name": List([ - String("Bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("StructStyleWithRef"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("enum_repr_transparent_removed"), - String("StructStyleWithRef"), - ]), - "span_begin_line": Uint64(31), - "span_filename": String("src/lib.rs"), - "transparent_variant_name": List([ - String("Bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("TupleStyleWithRef"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("enum_repr_transparent_removed"), - String("TupleStyleWithRef"), - ]), - "span_begin_line": Uint64(38), - "span_filename": String("src/lib.rs"), - "transparent_variant_name": List([ - String("Bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("StructStyleWithTupleStyle"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("enum_repr_transparent_removed"), - String("StructStyleWithTupleStyle"), - ]), - "span_begin_line": Uint64(42), - "span_filename": String("src/lib.rs"), - "transparent_variant_name": List([ - String("Bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("TupleStyleWithTuple"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("enum_repr_transparent_removed"), - String("TupleStyleWithTuple"), - ]), - "span_begin_line": Uint64(49), - "span_filename": String("src/lib.rs"), - "transparent_variant_name": List([ - String("Bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("StructStyleWithGeneric"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("enum_repr_transparent_removed"), - String("StructStyleWithGeneric"), - ]), - "span_begin_line": Uint64(53), - "span_filename": String("src/lib.rs"), - "transparent_variant_name": List([ - String("Bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("TupleStyleWithGeneric"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("enum_repr_transparent_removed"), - String("TupleStyleWithGeneric"), - ]), - "span_begin_line": Uint64(60), - "span_filename": String("src/lib.rs"), - "transparent_variant_name": List([ - String("Bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("StructStyleWithSpecificZeroSizedData"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("enum_repr_transparent_removed"), - String("StructStyleWithSpecificZeroSizedData"), - ]), - "span_begin_line": Uint64(67), - "span_filename": String("src/lib.rs"), - "transparent_variant_name": List([ - String("Bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("TupleStyleWithSpecificZeroSizedData"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("enum_repr_transparent_removed"), - String("TupleStyleWithSpecificZeroSizedData"), - ]), - "span_begin_line": Uint64(74), - "span_filename": String("src/lib.rs"), - "transparent_variant_name": List([ - String("Bar"), - ]), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/enum_struct_variant_field_added.output.ron b/test_outputs/enum_struct_variant_field_added.output.ron deleted file mode 100644 index f83db451..00000000 --- a/test_outputs/enum_struct_variant_field_added.output.ron +++ /dev/null @@ -1,41 +0,0 @@ -{ - "./test_crates/enum_no_repr_variant_discriminant_changed/": [ - { - "enum_name": String("UnitOnlyBecomesUndefined"), - "field_name": String("a"), - "path": List([ - String("enum_no_repr_variant_discriminant_changed"), - String("UnitOnlyBecomesUndefined"), - ]), - "span_begin_line": Uint64(77), - "span_filename": String("src/lib.rs"), - "variant_name": String("Struct"), - }, - ], - "./test_crates/enum_struct_field_hidden_from_public_api/": [ - { - "enum_name": String("AddedVariantField"), - "field_name": String("y"), - "path": List([ - String("enum_struct_field_hidden_from_public_api"), - String("AddedVariantField"), - ]), - "span_begin_line": Uint64(38), - "span_filename": String("src/lib.rs"), - "variant_name": String("StructVariant"), - }, - ], - "./test_crates/enum_struct_variant_field_added/": [ - { - "enum_name": String("PubEnum"), - "field_name": String("y"), - "path": List([ - String("enum_struct_variant_field_added"), - String("PubEnum"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "variant_name": String("Foo"), - }, - ], -} diff --git a/test_outputs/enum_struct_variant_field_missing.output.ron b/test_outputs/enum_struct_variant_field_missing.output.ron deleted file mode 100644 index d6f32048..00000000 --- a/test_outputs/enum_struct_variant_field_missing.output.ron +++ /dev/null @@ -1,15 +0,0 @@ -{ - "./test_crates/enum_struct_variant_field_missing/": [ - { - "enum_name": String("Enum"), - "field_name": String("bar"), - "path": List([ - String("enum_struct_variant_field_missing"), - String("Enum"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "variant_name": String("FieldWillBeMissing"), - }, - ], -} diff --git a/test_outputs/enum_struct_variant_field_now_doc_hidden.output.ron b/test_outputs/enum_struct_variant_field_now_doc_hidden.output.ron deleted file mode 100644 index c96603c9..00000000 --- a/test_outputs/enum_struct_variant_field_now_doc_hidden.output.ron +++ /dev/null @@ -1,28 +0,0 @@ -{ - "./test_crates/enum_now_doc_hidden/": [ - { - "enum_name": String("PublicEnumHiddenStructFieldOnVariant"), - "field_name": String("a"), - "path": List([ - String("enum_now_doc_hidden"), - String("PublicEnumHiddenStructFieldOnVariant"), - ]), - "span_begin_line": Uint64(78), - "span_filename": String("src/lib.rs"), - "variant_name": String("A"), - }, - ], - "./test_crates/enum_struct_variant_field_now_doc_hidden/": [ - { - "enum_name": String("PublicEnumA"), - "field_name": String("x"), - "path": List([ - String("enum_struct_variant_field_now_doc_hidden"), - String("PublicEnumA"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/lib.rs"), - "variant_name": String("StructVariant"), - }, - ], -} diff --git a/test_outputs/enum_tuple_variant_changed_kind.output.ron b/test_outputs/enum_tuple_variant_changed_kind.output.ron deleted file mode 100644 index d42df580..00000000 --- a/test_outputs/enum_tuple_variant_changed_kind.output.ron +++ /dev/null @@ -1,102 +0,0 @@ -{ - "./test_crates/enum_tuple_variant_changed_kind/": [ - { - "enum_name": String("TestStruct"), - "kind": String("TupleVariant"), - "new_kind": String("StructVariant"), - "path": List([ - String("enum_tuple_variant_changed_kind"), - String("TestStruct"), - ]), - "span_begin_line": Uint64(3), - "span_filename": String("src/lib.rs"), - "variant_name": String("WillBecomeStructLike"), - }, - { - "enum_name": String("TestUnit"), - "kind": String("TupleVariant"), - "new_kind": String("PlainVariant"), - "path": List([ - String("enum_tuple_variant_changed_kind"), - String("TestUnit"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/lib.rs"), - "variant_name": String("WillBecomeUnitLike"), - }, - { - "enum_name": String("MultipleTest"), - "kind": String("TupleVariant"), - "new_kind": String("StructVariant"), - "path": List([ - String("enum_tuple_variant_changed_kind"), - String("MultipleTest"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - "variant_name": String("WillBecomeStructLike"), - }, - { - "enum_name": String("MultipleTest"), - "kind": String("TupleVariant"), - "new_kind": String("PlainVariant"), - "path": List([ - String("enum_tuple_variant_changed_kind"), - String("MultipleTest"), - ]), - "span_begin_line": Uint64(12), - "span_filename": String("src/lib.rs"), - "variant_name": String("WillBecomeUnitLike"), - }, - { - "enum_name": String("TestBecomeDocHidden"), - "kind": String("TupleVariant"), - "new_kind": String("StructVariant"), - "path": List([ - String("enum_tuple_variant_changed_kind"), - String("TestBecomeDocHidden"), - ]), - "span_begin_line": Uint64(18), - "span_filename": String("src/lib.rs"), - "variant_name": String("WillBecomeStructLike"), - }, - { - "enum_name": String("TestBecomeNonExhaustive"), - "kind": String("TupleVariant"), - "new_kind": String("StructVariant"), - "path": List([ - String("enum_tuple_variant_changed_kind"), - String("TestBecomeNonExhaustive"), - ]), - "span_begin_line": Uint64(23), - "span_filename": String("src/lib.rs"), - "variant_name": String("WillBecomeStructLike"), - }, - ], - "./test_crates/enum_tuple_variant_field_missing/": [ - { - "enum_name": String("PublicEnum"), - "kind": String("TupleVariant"), - "new_kind": String("PlainVariant"), - "path": List([ - String("enum_tuple_variant_field_missing"), - String("PublicEnum"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "variant_name": String("TupleVariantBecomesPlain"), - }, - { - "enum_name": String("PublicEnum"), - "kind": String("TupleVariant"), - "new_kind": String("StructVariant"), - "path": List([ - String("enum_tuple_variant_field_missing"), - String("PublicEnum"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/lib.rs"), - "variant_name": String("TupleVariantBecomesStruct"), - }, - ] -} diff --git a/test_outputs/enum_tuple_variant_field_added.output.ron b/test_outputs/enum_tuple_variant_field_added.output.ron deleted file mode 100644 index b4892ffd..00000000 --- a/test_outputs/enum_tuple_variant_field_added.output.ron +++ /dev/null @@ -1,28 +0,0 @@ -{ - "./test_crates/enum_struct_field_hidden_from_public_api/": [ - { - "enum_name": String("AddedVariantField"), - "field_name": String("1"), - "path": List([ - String("enum_struct_field_hidden_from_public_api"), - String("AddedVariantField"), - ]), - "span_begin_line": Uint64(41), - "span_filename": String("src/lib.rs"), - "variant_name": String("TupleVariant"), - }, - ], - "./test_crates/enum_tuple_variant_field_added/": [ - { - "enum_name": String("PublicEnum"), - "field_name": String("2"), - "path": List([ - String("enum_tuple_variant_field_added"), - String("PublicEnum"), - ]), - "span_begin_line": Uint64(3), - "span_filename": String("src/lib.rs"), - "variant_name": String("TupleVariantWithFieldAdded"), - }, - ], -} diff --git a/test_outputs/enum_tuple_variant_field_missing.output.ron b/test_outputs/enum_tuple_variant_field_missing.output.ron deleted file mode 100644 index a0f532b7..00000000 --- a/test_outputs/enum_tuple_variant_field_missing.output.ron +++ /dev/null @@ -1,28 +0,0 @@ -{ - "./test_crates/enum_struct_field_hidden_from_public_api/": [ - { - "enum_name": String("RemovedHiddenFieldFromVariant"), - "field_name": String("3"), - "path": List([ - String("enum_struct_field_hidden_from_public_api"), - String("RemovedHiddenFieldFromVariant"), - ]), - "span_begin_line": Uint64(36), - "span_filename": String("src/lib.rs"), - "variant_name": String("VisibleTupleVariantBreaking"), - }, - ], - "./test_crates/enum_tuple_variant_field_missing/": [ - { - "enum_name": String("PublicEnum"), - "field_name": String("2"), - "path": List([ - String("enum_tuple_variant_field_missing"), - String("PublicEnum"), - ]), - "span_begin_line": Uint64(3), - "span_filename": String("src/lib.rs"), - "variant_name": String("TupleVariantWithMissingField"), - }, - ], -} diff --git a/test_outputs/enum_tuple_variant_field_now_doc_hidden.output.ron b/test_outputs/enum_tuple_variant_field_now_doc_hidden.output.ron deleted file mode 100644 index 0d240119..00000000 --- a/test_outputs/enum_tuple_variant_field_now_doc_hidden.output.ron +++ /dev/null @@ -1,15 +0,0 @@ -{ - "./test_crates/enum_tuple_variant_field_now_doc_hidden/": [ - { - "enum_name": String("PulicEnumA"), - "field_name": String("0"), - "path": List([ - String("enum_tuple_variant_field_now_doc_hidden"), - String("PulicEnumA"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/lib.rs"), - "variant_name": String("TupleVariantWithPublicField"), - }, - ], -} diff --git a/test_outputs/enum_unit_variant_changed_kind.output.ron b/test_outputs/enum_unit_variant_changed_kind.output.ron deleted file mode 100644 index 479522cb..00000000 --- a/test_outputs/enum_unit_variant_changed_kind.output.ron +++ /dev/null @@ -1,90 +0,0 @@ -{ - "./test_crates/enum_tuple_variant_field_added/": [ - { - "enum_name": String("PublicEnum"), - "kind": String("PlainVariant"), - "new_kind": String("TupleVariant"), - "path": List([ - String("enum_tuple_variant_field_added"), - String("PublicEnum"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/lib.rs"), - "variant_name": String("PlainVariantBecomesTuple"), - }, - ], - "./test_crates/enum_unit_variant_changed_kind/": [ - { - "enum_name": String("TestStruct"), - "kind": String("PlainVariant"), - "new_kind": String("StructVariant"), - "path": List([ - String("enum_unit_variant_changed_kind"), - String("TestStruct"), - ]), - "span_begin_line": Uint64(3), - "span_filename": String("src/lib.rs"), - "variant_name": String("WillBecomeStructLike"), - }, - { - "enum_name": String("TestTuple"), - "kind": String("PlainVariant"), - "new_kind": String("TupleVariant"), - "path": List([ - String("enum_unit_variant_changed_kind"), - String("TestTuple"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/lib.rs"), - "variant_name": String("WillBecomeTupleLike"), - }, - { - "enum_name": String("MultipleTest"), - "kind": String("PlainVariant"), - "new_kind": String("StructVariant"), - "path": List([ - String("enum_unit_variant_changed_kind"), - String("MultipleTest"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - "variant_name": String("WillBecomeStructLike"), - }, - { - "enum_name": String("MultipleTest"), - "kind": String("PlainVariant"), - "new_kind": String("TupleVariant"), - "path": List([ - String("enum_unit_variant_changed_kind"), - String("MultipleTest"), - ]), - "span_begin_line": Uint64(12), - "span_filename": String("src/lib.rs"), - "variant_name": String("WillBecomeTupleLike"), - }, - { - "enum_name": String("TestBecomeDocHidden"), - "kind": String("PlainVariant"), - "new_kind": String("StructVariant"), - "path": List([ - String("enum_unit_variant_changed_kind"), - String("TestBecomeDocHidden"), - ]), - "span_begin_line": Uint64(18), - "span_filename": String("src/lib.rs"), - "variant_name": String("WillBecomeStructLike"), - }, - { - "enum_name": String("TestBecomeNonExhaustive"), - "kind": String("PlainVariant"), - "new_kind": String("StructVariant"), - "path": List([ - String("enum_unit_variant_changed_kind"), - String("TestBecomeNonExhaustive"), - ]), - "span_begin_line": Uint64(23), - "span_filename": String("src/lib.rs"), - "variant_name": String("WillBecomeStructLike"), - }, - ], -} diff --git a/test_outputs/enum_variant_added.output.ron b/test_outputs/enum_variant_added.output.ron deleted file mode 100644 index cf5f100e..00000000 --- a/test_outputs/enum_variant_added.output.ron +++ /dev/null @@ -1,28 +0,0 @@ -{ - "./test_crates/enum_variant_added/": [ - { - "enum_name": String("EnumWithNewVariant"), - "path": List([ - String("enum_variant_added"), - String("EnumWithNewVariant"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "variant_name": String("NewVariant"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/enum_variant_hidden_from_public_api/": [ - { - "enum_name": String("AddedVariant"), - "path": List([ - String("enum_variant_hidden_from_public_api"), - String("AddedVariant"), - ]), - "span_begin_line": Uint64(16), - "span_filename": String("src/lib.rs"), - "variant_name": String("Added"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/enum_variant_marked_non_exhaustive.output.ron b/test_outputs/enum_variant_marked_non_exhaustive.output.ron deleted file mode 100644 index d6be7414..00000000 --- a/test_outputs/enum_variant_marked_non_exhaustive.output.ron +++ /dev/null @@ -1,102 +0,0 @@ -{ - "./test_crates/enum_no_repr_variant_discriminant_changed/": [ - { - "name": String("DiscriminantIsChangedAndMarkedNonExhaustive"), - "path": List([ - String("enum_no_repr_variant_discriminant_changed"), - String("DiscriminantIsChangedAndMarkedNonExhaustive"), - ]), - "span_begin_line": Uint64(24), - "span_filename": String("src/lib.rs"), - "variant_name": String("Second"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/enum_struct_variant_field_added/": [ - { - "name": String("EnumWithExhaustiveVariant"), - "path": List([ - String("enum_struct_variant_field_added"), - String("EnumWithExhaustiveVariant"), - ]), - "span_begin_line": Uint64(32), - "span_filename": String("src/lib.rs"), - "variant_name": String("ExhaustiveVariant"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/enum_tuple_variant_changed_kind/": [ - { - "name": String("TestBecomeNonExhaustive"), - "path": List([ - String("enum_tuple_variant_changed_kind"), - String("TestBecomeNonExhaustive"), - ]), - "span_begin_line": Uint64(23), - "span_filename": String("src/lib.rs"), - "variant_name": String("WillBecomeStructLike"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/enum_tuple_variant_field_added/": [ - { - "name": String("PublicEnum"), - "path": List([ - String("enum_tuple_variant_field_added"), - String("PublicEnum"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - "variant_name": String("TupleVariantWithFieldAddedBecomesNonExhaustive"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/enum_unit_variant_changed_kind/": [ - { - "name": String("TestBecomeNonExhaustive"), - "path": List([ - String("enum_unit_variant_changed_kind"), - String("TestBecomeNonExhaustive"), - ]), - "span_begin_line": Uint64(23), - "span_filename": String("src/lib.rs"), - "variant_name": String("WillBecomeStructLike"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/non_exhaustive/": [ - { - "name": String("MyEnum"), - "path": List([ - String("non_exhaustive"), - String("MyEnum"), - ]), - "span_begin_line": Uint64(38), - "span_filename": String("src/lib.rs"), - "variant_name": String("UnitVariant"), - "visibility_limit": String("public"), - }, - { - "name": String("MyEnum"), - "path": List([ - String("non_exhaustive"), - String("MyEnum"), - ]), - "span_begin_line": Uint64(41), - "span_filename": String("src/lib.rs"), - "variant_name": String("TupleVariant"), - "visibility_limit": String("public"), - }, - { - "name": String("MyEnum"), - "path": List([ - String("non_exhaustive"), - String("MyEnum"), - ]), - "span_begin_line": Uint64(44), - "span_filename": String("src/lib.rs"), - "variant_name": String("StructVariant"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/enum_variant_missing.output.ron b/test_outputs/enum_variant_missing.output.ron deleted file mode 100644 index 066b67f6..00000000 --- a/test_outputs/enum_variant_missing.output.ron +++ /dev/null @@ -1,28 +0,0 @@ -{ - "./test_crates/enum_struct_variant_field_missing/": [ - { - "enum_name": String("IgnoredEnum"), - "path": List([ - String("enum_struct_variant_field_missing"), - String("IgnoredEnum"), - ]), - "span_begin_line": Uint64(14), - "span_filename": String("src/lib.rs"), - "variant_name": String("StructVariantWillBeMissing"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/enum_variant_missing/": [ - { - "enum_name": String("VariantWillBeRemoved"), - "path": List([ - String("enum_variant_missing"), - String("VariantWillBeRemoved"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "variant_name": String("Bar"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/exported_function_changed_abi.output.ron b/test_outputs/exported_function_changed_abi.output.ron deleted file mode 100644 index 9b1eb4e7..00000000 --- a/test_outputs/exported_function_changed_abi.output.ron +++ /dev/null @@ -1,69 +0,0 @@ -{ - "./test_crates/exported_function_changed_abi/": [ - { - "abi_raw_name": String("Rust"), - "export_name": String("public_null_export_name_func_will_become_c"), - "name": String("public_null_export_name_func_will_become_c"), - "new_abi_raw_name": String("C"), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - }, - { - "abi_raw_name": String("Rust"), - "export_name": String("private_null_export_name_func"), - "name": String("private_null_export_name_func"), - "new_abi_raw_name": String("C"), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - }, - { - "abi_raw_name": String("C"), - "export_name": String("exported_c_func_that_will_become_c_unwind"), - "name": String("exported_c_func_that_will_become_c_unwind"), - "new_abi_raw_name": String("C-unwind"), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - }, - { - "abi_raw_name": String("C-unwind"), - "export_name": String("exported_c_unwind_func_that_will_become_c"), - "name": String("exported_c_unwind_func_that_will_become_c"), - "new_abi_raw_name": String("C"), - "span_begin_line": Uint64(14), - "span_filename": String("src/lib.rs"), - }, - { - "abi_raw_name": String("Rust"), - "export_name": String("exported_rust_func_that_will_become_c"), - "name": String("exported_rust_func_that_will_become_c"), - "new_abi_raw_name": String("C"), - "span_begin_line": Uint64(17), - "span_filename": String("src/lib.rs"), - }, - { - "abi_raw_name": String("Rust"), - "export_name": String("exported_rust_func_that_will_become_c_unwind"), - "name": String("exported_rust_func_that_will_become_c_unwind"), - "new_abi_raw_name": String("C-unwind"), - "span_begin_line": Uint64(20), - "span_filename": String("src/lib.rs"), - }, - { - "abi_raw_name": String("Rust"), - "export_name": String("different_exported_name"), - "name": String("actual_function_name_that_will_become_c"), - "new_abi_raw_name": String("C"), - "span_begin_line": Uint64(23), - "span_filename": String("src/lib.rs"), - }, - { - "abi_raw_name": String("Rust"), - "export_name": String("different_exported_name2"), - "name": String("actual_function_name_that_will_become_c_unwind"), - "new_abi_raw_name": String("C-unwind"), - "span_begin_line": Uint64(26), - "span_filename": String("src/lib.rs"), - }, - ], -} - diff --git a/test_outputs/function_abi_no_longer_unwind.output.ron b/test_outputs/function_abi_no_longer_unwind.output.ron deleted file mode 100644 index d3774dd0..00000000 --- a/test_outputs/function_abi_no_longer_unwind.output.ron +++ /dev/null @@ -1,11 +0,0 @@ -{ - "./test_crates/function_abi_no_longer_unwind/": [ - { - "abi_raw_name": String("C-unwind"), - "name": String("unwind_function_becomes_non_unwind"), - "new_abi_raw_name": String("C"), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - }, - ], -} diff --git a/test_outputs/function_changed_abi.output.ron b/test_outputs/function_changed_abi.output.ron deleted file mode 100644 index a65272f0..00000000 --- a/test_outputs/function_changed_abi.output.ron +++ /dev/null @@ -1,90 +0,0 @@ -{ - "./test_crates/exported_function_changed_abi/": [ - { - "abi_name": String("Rust"), - "name": String("public_null_export_name_func_will_become_c"), - "new_abi_name": String("C"), - "path": List([ - String("exported_function_changed_abi"), - String("public_null_export_name_func_will_become_c"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/function_changed_abi/": [ - { - "abi_name": String("C"), - "name": String("c_function_becomes_rust"), - "new_abi_name": String("Rust"), - "path": List([ - String("function_changed_abi"), - String("c_function_becomes_rust"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "abi_name": String("C"), - "name": String("c_function_becomes_rust_implicitly"), - "new_abi_name": String("Rust"), - "path": List([ - String("function_changed_abi"), - String("c_function_becomes_rust_implicitly"), - ]), - "span_begin_line": Uint64(3), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "abi_name": String("Rust"), - "name": String("rust_function_becomes_c"), - "new_abi_name": String("C"), - "path": List([ - String("function_changed_abi"), - String("rust_function_becomes_c"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "abi_name": String("Rust"), - "name": String("implicit_rust_function_becomes_c"), - "new_abi_name": String("C"), - "path": List([ - String("function_changed_abi"), - String("implicit_rust_function_becomes_c"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "abi_name": String("C"), - "name": String("implicit_c_function_becomes_rust"), - "new_abi_name": String("Rust"), - "path": List([ - String("function_changed_abi"), - String("implicit_c_function_becomes_rust"), - ]), - "span_begin_line": Uint64(9), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "abi_name": String("system"), - "name": String("system_function_becomes_c"), - "new_abi_name": String("C"), - "path": List([ - String("function_changed_abi"), - String("system_function_becomes_c"), - ]), - "span_begin_line": Uint64(15), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/function_const_removed.output.ron b/test_outputs/function_const_removed.output.ron deleted file mode 100644 index 5b5b9572..00000000 --- a/test_outputs/function_const_removed.output.ron +++ /dev/null @@ -1,14 +0,0 @@ -{ - "./test_crates/function_const_removed/": [ - { - "name": String("add"), - "path": List([ - String("function_const_removed"), - String("add"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/function_export_name_changed.output.ron b/test_outputs/function_export_name_changed.output.ron deleted file mode 100644 index d390ed40..00000000 --- a/test_outputs/function_export_name_changed.output.ron +++ /dev/null @@ -1,82 +0,0 @@ -{ - "./test_crates/function_export_name_changed/": [ - { - "export_name": String("export_name_changed_old"), - "name": String("export_name_changed"), - "new_export_name": String("export_name_changed_new"), - "path": List([ - String("function_export_name_changed"), - String("export_name_changed"), - ]), - "span_begin_line": Uint64(3), - "span_filename": String("src/lib.rs"), - }, - { - "export_name": String("no_mangle_changed_to_other_export_name"), - "name": String("no_mangle_changed_to_other_export_name"), - "new_export_name": String("no_mangle_changed_to_other_export_name_new"), - "path": List([ - String("function_export_name_changed"), - String("no_mangle_changed_to_other_export_name"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/lib.rs"), - }, - { - "export_name": String("export_name_changed_to_other_no_mangle_old"), - "name": String("export_name_changed_to_other_no_mangle"), - "new_export_name": String("export_name_changed_to_other_no_mangle"), - "path": List([ - String("function_export_name_changed"), - String("export_name_changed_to_other_no_mangle"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - }, - { - "export_name": String("no_mangle_removed"), - "name": String("no_mangle_removed"), - "new_export_name": Null, - "path": List([ - String("function_export_name_changed"), - String("no_mangle_removed"), - ]), - "span_begin_line": Uint64(22), - "span_filename": String("src/lib.rs"), - }, - { - "export_name": String("export_name_removed"), - "name": String("export_name_removed"), - "new_export_name": Null, - "path": List([ - String("function_export_name_changed"), - String("export_name_removed"), - ]), - "span_begin_line": Uint64(25), - "span_filename": String("src/lib.rs"), - }, - { - "export_name": String("private_export_name_changed_old"), - "name": String("private_export_name_changed"), - "new_export_name": String("private_export_name_changed_new"), - "path": List([ - String("function_export_name_changed"), - String("private_export_name_changed"), - ]), - "span_begin_line": Uint64(29), - "span_filename": String("src/lib.rs"), - }, - { - "export_name": String("export_name_moved"), - "name": String("export_name_moved_1"), - "new_export_name": Null, - "path": List([ - String("function_export_name_changed"), - String("export_name_moved"), - String("export_name_moved_1"), - ]), - "span_begin_line": Uint64(35), - "span_filename": String("src/lib.rs"), - }, - ] -} diff --git a/test_outputs/function_missing.output.ron b/test_outputs/function_missing.output.ron deleted file mode 100644 index dd4ceff3..00000000 --- a/test_outputs/function_missing.output.ron +++ /dev/null @@ -1,82 +0,0 @@ -{ - "./test_crates/feature_flags_validation/": [ - { - "name": String("foo_becomes_gated"), - "path": List([ - String("feature_flags_validation"), - String("foo_becomes_gated"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("bar_becomes_gated"), - "path": List([ - String("feature_flags_validation"), - String("bar_becomes_gated"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/features_simple/": [ - { - "name": String("feature_dependent_function"), - "path": List([ - String("features_simple"), - String("feature_dependent_function"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/function_const_removed/": [ - { - "name": String("fn_removed"), - "path": List([ - String("function_const_removed"), - String("fn_removed"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/function_feature_changed/": [ - { - "name": String("moving_from_feature_A_to_feature_B"), - "path": List([ - String("function_feature_changed"), - String("moving_from_feature_A_to_feature_B"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/function_missing/": [ - { - "name": String("will_be_removed_fn"), - "path": List([ - String("function_missing"), - String("will_be_removed_fn"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("pub_use_removed_fn"), - "path": List([ - String("function_missing"), - String("pub_use_removed_fn"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/function_must_use_added.output.ron b/test_outputs/function_must_use_added.output.ron deleted file mode 100644 index dc871d7e..00000000 --- a/test_outputs/function_must_use_added.output.ron +++ /dev/null @@ -1,26 +0,0 @@ -{ - "./test_crates/function_must_use_added/": [ - { - "name": String("FunctionToMustUseFunction"), - "new_attr": String("#[must_use]"), - "path": List([ - String("function_must_use_added"), - String("FunctionToMustUseFunction"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("FunctionToMustUseMessageFunction"), - "new_attr": String("#[must_use = \"Foo\"]"), - "path": List([ - String("function_must_use_added"), - String("FunctionToMustUseMessageFunction"), - ]), - "span_begin_line": Uint64(8), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/function_now_doc_hidden.output.ron b/test_outputs/function_now_doc_hidden.output.ron deleted file mode 100644 index d9709303..00000000 --- a/test_outputs/function_now_doc_hidden.output.ron +++ /dev/null @@ -1,43 +0,0 @@ -{ - "./test_crates/function_now_doc_hidden/": [ - { - "path": List([ - String("function_now_doc_hidden"), - String("MyPublicMod"), - String("my_function"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/lib.rs"), - "function_name": String("my_function"), - }, - { - "path": List([ - String("function_now_doc_hidden"), - String("MyNestedPublicMod"), - String("PublicInnerMod"), - String("my_function"), - ]), - "span_begin_line": Uint64(38), - "span_filename": String("src/lib.rs"), - "function_name": String("my_function"), - }, - { - "path": List([ - String("function_now_doc_hidden"), - String("my_function"), - ]), - "span_begin_line": Uint64(47), - "span_filename": String("src/lib.rs"), - "function_name": String("my_function"), - }, - { - "path": List([ - String("function_now_doc_hidden"), - String("my_function_with_types"), - ]), - "span_begin_line": Uint64(50), - "span_filename": String("src/lib.rs"), - "function_name": String("my_function_with_types"), - }, - ], -} diff --git a/test_outputs/function_parameter_count_changed.output.ron b/test_outputs/function_parameter_count_changed.output.ron deleted file mode 100644 index aed93c88..00000000 --- a/test_outputs/function_parameter_count_changed.output.ron +++ /dev/null @@ -1,28 +0,0 @@ -{ - "./test_crates/parameter_count_changed/": [ - { - "current_parameter_count": Uint64(2), - "name": String("function_with_a_parameter_added"), - "old_parameter_count": Uint64(1), - "path": List([ - String("parameter_count_changed"), - String("function_with_a_parameter_added"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "current_parameter_count": Uint64(0), - "name": String("function_with_parameters_removed"), - "old_parameter_count": Uint64(2), - "path": List([ - String("parameter_count_changed"), - String("function_with_parameters_removed"), - ]), - "span_begin_line": Uint64(3), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/function_unsafe_added.output.ron b/test_outputs/function_unsafe_added.output.ron deleted file mode 100644 index 89be53a1..00000000 --- a/test_outputs/function_unsafe_added.output.ron +++ /dev/null @@ -1,14 +0,0 @@ -{ - "./test_crates/function_unsafe_added/": [ - { - "name": String("add"), - "path": List([ - String("function_unsafe_added"), - String("add"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/inherent_associated_const_now_doc_hidden.output.ron b/test_outputs/inherent_associated_const_now_doc_hidden.output.ron deleted file mode 100644 index c07a2fce..00000000 --- a/test_outputs/inherent_associated_const_now_doc_hidden.output.ron +++ /dev/null @@ -1,34 +0,0 @@ -{ - "./test_crates/inherent_associated_const_now_doc_hidden/": [ - { - "associated_constant": String("DocHiddenConstantA"), - "name": String("StructA"), - "path": List([ - String("inherent_associated_const_now_doc_hidden"), - String("StructA"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/lib.rs"), - }, - { - "associated_constant": String("DocHiddenConstantA"), - "name": String("EnumA"), - "path": List([ - String("inherent_associated_const_now_doc_hidden"), - String("EnumA"), - ]), - "span_begin_line": Uint64(27), - "span_filename": String("src/lib.rs"), - }, - { - "associated_constant": String("DocHiddenConstantA"), - "name": String("UnionA"), - "path": List([ - String("inherent_associated_const_now_doc_hidden"), - String("UnionA"), - ]), - "span_begin_line": Uint64(39), - "span_filename": String("src/lib.rs"), - }, - ], -} diff --git a/test_outputs/inherent_associated_pub_const_missing.output.ron b/test_outputs/inherent_associated_pub_const_missing.output.ron deleted file mode 100644 index 79114d33..00000000 --- a/test_outputs/inherent_associated_pub_const_missing.output.ron +++ /dev/null @@ -1,48 +0,0 @@ -{ - "./test_crates/inherent_associated_pub_const_missing/": [ - { - "associated_constant": String("PublicConstantA"), - "name": String("StructA"), - "path": List([ - String("inherent_associated_pub_const_missing"), - String("StructA"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "associated_constant": String("PublicConstantRenameA"), - "name": String("StructA"), - "path": List([ - String("inherent_associated_pub_const_missing"), - String("StructA"), - ]), - "span_begin_line": Uint64(12), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "associated_constant": String("PublicConstantI"), - "name": String("StructE"), - "path": List([ - String("inherent_associated_pub_const_missing"), - String("StructE"), - ]), - "span_begin_line": Uint64(52), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "associated_constant": String("N_C"), - "name": String("ExampleC"), - "path": List([ - String("inherent_associated_pub_const_missing"), - String("ExampleC"), - ]), - "span_begin_line": Uint64(118), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/inherent_method_const_removed.output.ron b/test_outputs/inherent_method_const_removed.output.ron deleted file mode 100644 index 4c3390c4..00000000 --- a/test_outputs/inherent_method_const_removed.output.ron +++ /dev/null @@ -1,40 +0,0 @@ -{ - "./test_crates/inherent_method_const_removed/": [ - { - "method_name": String("associated_fn"), - "method_visibility": String("public"), - "name": String("Foo"), - "non_matching_span_begin_line": List([ - Uint64(4), - ]), - "non_matching_span_filename": List([ - String("src/lib.rs"), - ]), - "path": List([ - String("inherent_method_const_removed"), - String("Foo"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("method"), - "method_visibility": String("public"), - "name": String("Foo"), - "non_matching_span_begin_line": List([ - Uint64(8), - ]), - "non_matching_span_filename": List([ - String("src/lib.rs"), - ]), - "path": List([ - String("inherent_method_const_removed"), - String("Foo"), - ]), - "span_begin_line": Uint64(8), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/inherent_method_missing.output.ron b/test_outputs/inherent_method_missing.output.ron deleted file mode 100644 index 2f138d3e..00000000 --- a/test_outputs/inherent_method_missing.output.ron +++ /dev/null @@ -1,142 +0,0 @@ -{ - "./test_crates/inherent_method_const_removed/": [ - { - "method_name": String("associated_fn_removed"), - "method_visibility": String("public"), - "name": String("Foo"), - "path": List([ - String("inherent_method_const_removed"), - String("Foo"), - ]), - "span_begin_line": Uint64(12), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("method_removed"), - "method_visibility": String("public"), - "name": String("Foo"), - "path": List([ - String("inherent_method_const_removed"), - String("Foo"), - ]), - "span_begin_line": Uint64(14), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/inherent_method_missing/": [ - { - "method_name": String("will_be_removed_associated_fn"), - "method_visibility": String("public"), - "name": String("Foo"), - "path": List([ - String("inherent_method_missing"), - String("Foo"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("will_be_removed_method"), - "method_visibility": String("public"), - "name": String("Foo"), - "path": List([ - String("inherent_method_missing"), - String("Foo"), - ]), - "span_begin_line": Uint64(9), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("next"), - "method_visibility": String("public"), - "name": String("SecretlyIter"), - "path": List([ - String("inherent_method_missing"), - String("SecretlyIter"), - ]), - "span_begin_line": Uint64(41), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/inherent_method_unsafe_added/": [ - { - "method_name": String("associated_fn_removed"), - "method_visibility": String("public"), - "name": String("Foo"), - "path": List([ - String("inherent_method_unsafe_added"), - String("Foo"), - ]), - "span_begin_line": Uint64(12), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("method_removed"), - "method_visibility": String("public"), - "name": String("Foo"), - "path": List([ - String("inherent_method_unsafe_added"), - String("Foo"), - ]), - "span_begin_line": Uint64(14), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/struct_becomes_enum/": [ - { - "method_name": String("will_be_removed_associated_fn"), - "method_visibility": String("public"), - "name": String("TupleToEnum"), - "path": List([ - String("struct_becomes_enum"), - String("TupleToEnum"), - ]), - "span_begin_line": Uint64(53), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("will_be_removed_method"), - "method_visibility": String("public"), - "name": String("TupleToEnum"), - "path": List([ - String("struct_becomes_enum"), - String("TupleToEnum"), - ]), - "span_begin_line": Uint64(55), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("will_be_removed_associated_fn"), - "method_visibility": String("public"), - "name": String("StructToEnum"), - "path": List([ - String("struct_becomes_enum"), - String("StructToEnum"), - ]), - "span_begin_line": Uint64(72), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("will_be_removed_method"), - "method_visibility": String("public"), - "name": String("StructToEnum"), - "path": List([ - String("struct_becomes_enum"), - String("StructToEnum"), - ]), - "span_begin_line": Uint64(74), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/inherent_method_must_use_added.output.ron b/test_outputs/inherent_method_must_use_added.output.ron deleted file mode 100644 index 2913661c..00000000 --- a/test_outputs/inherent_method_must_use_added.output.ron +++ /dev/null @@ -1,184 +0,0 @@ -{ - "./test_crates/inherent_method_must_use_added/": [ - { - "method_name": String("AssociatedFnToMustUse"), - "method_visibility": String("public"), - "name": String("EnumWithMustUseMethods"), - "new_attr": String("#[must_use]"), - "owner_type": String("Enum"), - "path": List([ - String("inherent_method_must_use_added"), - String("enum_inherent_method_must_use_added"), - String("EnumWithMustUseMethods"), - ]), - "span_begin_line": Uint64(9), - "span_filename": String("src/enum_inherent_method_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("AssociatedFnToMustUseMessage"), - "method_visibility": String("public"), - "name": String("EnumWithMustUseMethods"), - "new_attr": String("#[must_use = \"Foo\"]"), - "owner_type": String("Enum"), - "path": List([ - String("inherent_method_must_use_added"), - String("enum_inherent_method_must_use_added"), - String("EnumWithMustUseMethods"), - ]), - "span_begin_line": Uint64(12), - "span_filename": String("src/enum_inherent_method_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MethodToMustUseMethod"), - "method_visibility": String("public"), - "name": String("EnumWithMustUseMethods"), - "new_attr": String("#[must_use]"), - "owner_type": String("Enum"), - "path": List([ - String("inherent_method_must_use_added"), - String("enum_inherent_method_must_use_added"), - String("EnumWithMustUseMethods"), - ]), - "span_begin_line": Uint64(15), - "span_filename": String("src/enum_inherent_method_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MethodToMustUseMessageMethod"), - "method_visibility": String("public"), - "name": String("EnumWithMustUseMethods"), - "new_attr": String("#[must_use = \"Foo\"]"), - "owner_type": String("Enum"), - "path": List([ - String("inherent_method_must_use_added"), - String("enum_inherent_method_must_use_added"), - String("EnumWithMustUseMethods"), - ]), - "span_begin_line": Uint64(18), - "span_filename": String("src/enum_inherent_method_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("AssociatedFnToMustUse"), - "method_visibility": String("public"), - "name": String("StructWithMustUseMethods"), - "new_attr": String("#[must_use]"), - "owner_type": String("Struct"), - "path": List([ - String("inherent_method_must_use_added"), - String("struct_inherent_method_must_use_added"), - String("StructWithMustUseMethods"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/struct_inherent_method_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("AssociatedFnToMustUseMessage"), - "method_visibility": String("public"), - "name": String("StructWithMustUseMethods"), - "new_attr": String("#[must_use = \"Foo\"]"), - "owner_type": String("Struct"), - "path": List([ - String("inherent_method_must_use_added"), - String("struct_inherent_method_must_use_added"), - String("StructWithMustUseMethods"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/struct_inherent_method_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MethodToMustUseMethod"), - "method_visibility": String("public"), - "name": String("StructWithMustUseMethods"), - "new_attr": String("#[must_use]"), - "owner_type": String("Struct"), - "path": List([ - String("inherent_method_must_use_added"), - String("struct_inherent_method_must_use_added"), - String("StructWithMustUseMethods"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/struct_inherent_method_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MethodToMustUseMessageMethod"), - "method_visibility": String("public"), - "name": String("StructWithMustUseMethods"), - "new_attr": String("#[must_use = \"Foo\"]"), - "owner_type": String("Struct"), - "path": List([ - String("inherent_method_must_use_added"), - String("struct_inherent_method_must_use_added"), - String("StructWithMustUseMethods"), - ]), - "span_begin_line": Uint64(16), - "span_filename": String("src/struct_inherent_method_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("AssociatedFnToMustUse"), - "method_visibility": String("public"), - "name": String("UnionWithMustUseMethods"), - "new_attr": String("#[must_use]"), - "owner_type": String("Union"), - "path": List([ - String("inherent_method_must_use_added"), - String("union_inherent_method_must_use_added"), - String("UnionWithMustUseMethods"), - ]), - "span_begin_line": Uint64(9), - "span_filename": String("src/union_inherent_method_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("AssociatedFnToMustUseMessage"), - "method_visibility": String("public"), - "name": String("UnionWithMustUseMethods"), - "new_attr": String("#[must_use = \"Foo\"]"), - "owner_type": String("Union"), - "path": List([ - String("inherent_method_must_use_added"), - String("union_inherent_method_must_use_added"), - String("UnionWithMustUseMethods"), - ]), - "span_begin_line": Uint64(12), - "span_filename": String("src/union_inherent_method_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MethodToMustUseMethod"), - "method_visibility": String("public"), - "name": String("UnionWithMustUseMethods"), - "new_attr": String("#[must_use]"), - "owner_type": String("Union"), - "path": List([ - String("inherent_method_must_use_added"), - String("union_inherent_method_must_use_added"), - String("UnionWithMustUseMethods"), - ]), - "span_begin_line": Uint64(15), - "span_filename": String("src/union_inherent_method_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MethodToMustUseMessageMethod"), - "method_visibility": String("public"), - "name": String("UnionWithMustUseMethods"), - "new_attr": String("#[must_use = \"Foo\"]"), - "owner_type": String("Union"), - "path": List([ - String("inherent_method_must_use_added"), - String("union_inherent_method_must_use_added"), - String("UnionWithMustUseMethods"), - ]), - "span_begin_line": Uint64(18), - "span_filename": String("src/union_inherent_method_must_use_added.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/inherent_method_now_doc_hidden.output.ron b/test_outputs/inherent_method_now_doc_hidden.output.ron deleted file mode 100644 index 0795ec83..00000000 --- a/test_outputs/inherent_method_now_doc_hidden.output.ron +++ /dev/null @@ -1,82 +0,0 @@ -{ - "./test_crates/inherent_method_now_doc_hidden/": [ - { - "method_name": String("associated_fn"), - "method_visibility": String("public"), - "name": String("Foo"), - "path": List([ - String("inherent_method_now_doc_hidden"), - String("enum_inherent_method_now_doc_hidden"), - String("Foo"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/enum_inherent_method_now_doc_hidden.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("method"), - "method_visibility": String("public"), - "name": String("Foo"), - "path": List([ - String("inherent_method_now_doc_hidden"), - String("enum_inherent_method_now_doc_hidden"), - String("Foo"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/enum_inherent_method_now_doc_hidden.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("associated_fn"), - "method_visibility": String("public"), - "name": String("Foo"), - "path": List([ - String("inherent_method_now_doc_hidden"), - String("struct_inherent_method_now_doc_hidden"), - String("Foo"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/struct_inherent_method_now_doc_hidden.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("method"), - "method_visibility": String("public"), - "name": String("Foo"), - "path": List([ - String("inherent_method_now_doc_hidden"), - String("struct_inherent_method_now_doc_hidden"), - String("Foo"), - ]), - "span_begin_line": Uint64(8), - "span_filename": String("src/struct_inherent_method_now_doc_hidden.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("associated_fn"), - "method_visibility": String("public"), - "name": String("Foo"), - "path": List([ - String("inherent_method_now_doc_hidden"), - String("union_inherent_method_now_doc_hidden"), - String("Foo"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/union_inherent_method_now_doc_hidden.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("method"), - "method_visibility": String("public"), - "name": String("Foo"), - "path": List([ - String("inherent_method_now_doc_hidden"), - String("union_inherent_method_now_doc_hidden"), - String("Foo"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/union_inherent_method_now_doc_hidden.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/inherent_method_unsafe_added.output.ron b/test_outputs/inherent_method_unsafe_added.output.ron deleted file mode 100644 index d48e530d..00000000 --- a/test_outputs/inherent_method_unsafe_added.output.ron +++ /dev/null @@ -1,40 +0,0 @@ -{ - "./test_crates/inherent_method_unsafe_added/": [ - { - "method_name": String("associated_fn"), - "method_visibility": String("public"), - "name": String("Foo"), - "non_matching_span_begin_line": List([ - Uint64(4), - ]), - "non_matching_span_filename": List([ - String("src/lib.rs"), - ]), - "path": List([ - String("inherent_method_unsafe_added"), - String("Foo"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("method"), - "method_visibility": String("public"), - "name": String("Foo"), - "non_matching_span_begin_line": List([ - Uint64(8), - ]), - "non_matching_span_filename": List([ - String("src/lib.rs"), - ]), - "path": List([ - String("inherent_method_unsafe_added"), - String("Foo"), - ]), - "span_begin_line": Uint64(8), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/method_parameter_count_changed.output.ron b/test_outputs/method_parameter_count_changed.output.ron deleted file mode 100644 index d2f4b1dc..00000000 --- a/test_outputs/method_parameter_count_changed.output.ron +++ /dev/null @@ -1,114 +0,0 @@ -{ - "./test_crates/parameter_count_changed/": [ - { - "current_parameter_count": List([ - Uint64(1), - ]), - "method_name": String("associated_function_with_a_parameter_added"), - "method_visibility": String("public"), - "name": String("StructWithMethods"), - "non_matching_span_begin_line": List([ - Uint64(10), - ]), - "non_matching_span_filename": List([ - String("src/lib.rs"), - ]), - "old_parameter_count": Uint64(0), - "path": List([ - String("parameter_count_changed"), - String("StructWithMethods"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "current_parameter_count": List([ - Uint64(2), - ]), - "method_name": String("method_with_a_parameter_added"), - "method_visibility": String("public"), - "name": String("StructWithMethods"), - "non_matching_span_begin_line": List([ - Uint64(12), - ]), - "non_matching_span_filename": List([ - String("src/lib.rs"), - ]), - "old_parameter_count": Uint64(1), - "path": List([ - String("parameter_count_changed"), - String("StructWithMethods"), - ]), - "span_begin_line": Uint64(12), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "current_parameter_count": List([ - Uint64(3), - ]), - "method_name": String("method_with_a_parameter_removed"), - "method_visibility": String("public"), - "name": String("StructWithMethods"), - "non_matching_span_begin_line": List([ - Uint64(14), - ]), - "non_matching_span_filename": List([ - String("src/lib.rs"), - ]), - "old_parameter_count": Uint64(4), - "path": List([ - String("parameter_count_changed"), - String("StructWithMethods"), - ]), - "span_begin_line": Uint64(14), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "current_parameter_count": List([ - Uint64(3), - ]), - "method_name": String("moved_trait_provided_method"), - "method_visibility": String("public"), - "name": String("StructWithMethods"), - "non_matching_span_begin_line": List([ - Uint64(18), - ]), - "non_matching_span_filename": List([ - String("src/lib.rs"), - ]), - "old_parameter_count": Uint64(2), - "path": List([ - String("parameter_count_changed"), - String("StructWithMethods"), - ]), - "span_begin_line": Uint64(16), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "current_parameter_count": List([ - Uint64(1), - ]), - "method_name": String("moved_method"), - "method_visibility": String("public"), - "name": String("StructWithMethods"), - "non_matching_span_begin_line": List([ - Uint64(28), - ]), - "non_matching_span_filename": List([ - String("src/lib.rs"), - ]), - "old_parameter_count": Uint64(2), - "path": List([ - String("parameter_count_changed"), - String("StructWithMethods"), - ]), - "span_begin_line": Uint64(20), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/module_missing.output.ron b/test_outputs/module_missing.output.ron deleted file mode 100644 index a658bf04..00000000 --- a/test_outputs/module_missing.output.ron +++ /dev/null @@ -1,49 +0,0 @@ -{ - "./test_crates/module_missing/": [ - { - "name": String("will_remove"), - "path": List([ - String("module_missing"), - String("bb"), - String("will_remove"), - ]), - "span_begin_line": Uint64(8), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("will_make_private"), - "path": List([ - String("module_missing"), - String("will_make_private"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_missing/": [ - { - "name": String("my_pub_mod"), - "path": List([ - String("trait_missing"), - String("my_pub_mod"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_missing_with_major_bump/": [ - { - "name": String("my_pub_mod"), - "path": List([ - String("trait_missing_with_major_bump"), - String("my_pub_mod"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/pub_module_level_const_missing.output.ron b/test_outputs/pub_module_level_const_missing.output.ron deleted file mode 100644 index 45d06bb8..00000000 --- a/test_outputs/pub_module_level_const_missing.output.ron +++ /dev/null @@ -1,192 +0,0 @@ -{ - "./test_crates/pub_module_level_const_missing/": [ - { - "name": String("PUB_CONST_IN_GLOBAL_WILL_REMOVE"), - "path": List([ - String("pub_module_level_const_missing"), - String("PUB_CONST_IN_GLOBAL_WILL_REMOVE"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_GLOBAL_WILL_RENAME"), - "path": List([ - String("pub_module_level_const_missing"), - String("PUB_CONST_IN_GLOBAL_WILL_RENAME"), - ]), - "span_begin_line": Uint64(3), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_GLOBAL_WILL_BE_STATIC"), - "path": List([ - String("pub_module_level_const_missing"), - String("PUB_CONST_IN_GLOBAL_WILL_BE_STATIC"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_GLOBAL_WILL_BE_PRIVATE_CONST"), - "path": List([ - String("pub_module_level_const_missing"), - String("PUB_CONST_IN_GLOBAL_WILL_BE_PRIVATE_CONST"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_GLOBAL_WILL_BE_PRIVATE_STATIC"), - "path": List([ - String("pub_module_level_const_missing"), - String("PUB_CONST_IN_GLOBAL_WILL_BE_PRIVATE_STATIC"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_MODULE_WILL_REMOVE"), - "path": List([ - String("pub_module_level_const_missing"), - String("my_module"), - String("PUB_CONST_IN_MODULE_WILL_REMOVE"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_MODULE_WILL_RENAME"), - "path": List([ - String("pub_module_level_const_missing"), - String("my_module"), - String("PUB_CONST_IN_MODULE_WILL_RENAME"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_MODULE_WILL_BE_STATIC"), - "path": List([ - String("pub_module_level_const_missing"), - String("my_module"), - String("PUB_CONST_IN_MODULE_WILL_BE_STATIC"), - ]), - "span_begin_line": Uint64(12), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_MODULE_WILL_BE_PRIVATE_CONST"), - "path": List([ - String("pub_module_level_const_missing"), - String("my_module"), - String("PUB_CONST_IN_MODULE_WILL_BE_PRIVATE_CONST"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_MODULE_WILL_BE_PRIVATE_STATIC"), - "path": List([ - String("pub_module_level_const_missing"), - String("my_module"), - String("PUB_CONST_IN_MODULE_WILL_BE_PRIVATE_STATIC"), - ]), - "span_begin_line": Uint64(14), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_MODULE_WILL_RE_EXPORT_STATIC"), - "path": List([ - String("pub_module_level_const_missing"), - String("my_module"), - String("PUB_CONST_IN_MODULE_WILL_RE_EXPORT_STATIC"), - ]), - "span_begin_line": Uint64(16), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_NESTED_MODULE_WILL_REMOVE"), - "path": List([ - String("pub_module_level_const_missing"), - String("my_module"), - String("my_module_nested"), - String("PUB_CONST_IN_NESTED_MODULE_WILL_REMOVE"), - ]), - "span_begin_line": Uint64(20), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_NESTED_MODULE_WILL_RENAME"), - "path": List([ - String("pub_module_level_const_missing"), - String("my_module"), - String("my_module_nested"), - String("PUB_CONST_IN_NESTED_MODULE_WILL_RENAME"), - ]), - "span_begin_line": Uint64(21), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_NESTED_MODULE_WILL_BE_STATIC"), - "path": List([ - String("pub_module_level_const_missing"), - String("my_module"), - String("my_module_nested"), - String("PUB_CONST_IN_NESTED_MODULE_WILL_BE_STATIC"), - ]), - "span_begin_line": Uint64(22), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_NESTED_MODULE_WILL_BE_PRIVATE_CONST"), - "path": List([ - String("pub_module_level_const_missing"), - String("my_module"), - String("my_module_nested"), - String("PUB_CONST_IN_NESTED_MODULE_WILL_BE_PRIVATE_CONST"), - ]), - "span_begin_line": Uint64(23), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_NESTED_MODULE_WILL_BE_PRIVATE_STATIC"), - "path": List([ - String("pub_module_level_const_missing"), - String("my_module"), - String("my_module_nested"), - String("PUB_CONST_IN_NESTED_MODULE_WILL_BE_PRIVATE_STATIC"), - ]), - "span_begin_line": Uint64(24), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_CONST_IN_NESTED_MODULE_WILL_RE_EXPORT_STATIC"), - "path": List([ - String("pub_module_level_const_missing"), - String("my_module"), - String("my_module_nested"), - String("PUB_CONST_IN_NESTED_MODULE_WILL_RE_EXPORT_STATIC"), - ]), - "span_begin_line": Uint64(26), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/pub_module_level_const_now_doc_hidden.output.ron b/test_outputs/pub_module_level_const_now_doc_hidden.output.ron deleted file mode 100644 index df203293..00000000 --- a/test_outputs/pub_module_level_const_now_doc_hidden.output.ron +++ /dev/null @@ -1,34 +0,0 @@ -{ - "./test_crates/function_now_doc_hidden/": [ - { - "constant_name": String("MY_FN"), - "path": List([ - String("function_now_doc_hidden"), - String("MY_FN"), - ]), - "span_begin_line": Uint64(61), - "span_filename": String("src/lib.rs"), - }, - ], - "./test_crates/pub_module_level_const_now_doc_hidden/": [ - { - "constant_name": String("GlobalConstantB"), - "path": List([ - String("pub_module_level_const_now_doc_hidden"), - String("GlobalConstantB"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - }, - { - "constant_name": String("PublicModuleConstantB"), - "path": List([ - String("pub_module_level_const_now_doc_hidden"), - String("PublicModule"), - String("PublicModuleConstantB"), - ]), - "span_begin_line": Uint64(18), - "span_filename": String("src/lib.rs"), - }, - ], -} diff --git a/test_outputs/pub_static_missing.output.ron b/test_outputs/pub_static_missing.output.ron deleted file mode 100644 index e0e2e4e1..00000000 --- a/test_outputs/pub_static_missing.output.ron +++ /dev/null @@ -1,148 +0,0 @@ -{ - "./test_crates/pub_static_missing/": [ - { - "name": String("PUB_STATIC_IN_GLOBAL_WILL_REMOVE"), - "path": List([ - String("pub_static_missing"), - String("PUB_STATIC_IN_GLOBAL_WILL_REMOVE"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_STATIC_IN_GLOBAL_WILL_RENAME"), - "path": List([ - String("pub_static_missing"), - String("PUB_STATIC_IN_GLOBAL_WILL_RENAME"), - ]), - "span_begin_line": Uint64(3), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_STATIC_IN_GLOBAL_WILL_BE_PRIVATE_CONST"), - "path": List([ - String("pub_static_missing"), - String("PUB_STATIC_IN_GLOBAL_WILL_BE_PRIVATE_CONST"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_STATIC_IN_GLOBAL_WILL_BE_PRIVATE_STATIC"), - "path": List([ - String("pub_static_missing"), - String("PUB_STATIC_IN_GLOBAL_WILL_BE_PRIVATE_STATIC"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_STATIC_IN_MODULE_WILL_REMOVE"), - "path": List([ - String("pub_static_missing"), - String("my_module"), - String("PUB_STATIC_IN_MODULE_WILL_REMOVE"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_STATIC_IN_MODULE_WILL_RENAME"), - "path": List([ - String("pub_static_missing"), - String("my_module"), - String("PUB_STATIC_IN_MODULE_WILL_RENAME"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_STATIC_IN_MODULE_WILL_BE_PRIVATE_CONST"), - "path": List([ - String("pub_static_missing"), - String("my_module"), - String("PUB_STATIC_IN_MODULE_WILL_BE_PRIVATE_CONST"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_STATIC_IN_MODULE_WILL_BE_PRIVATE_STATIC"), - "path": List([ - String("pub_static_missing"), - String("my_module"), - String("PUB_STATIC_IN_MODULE_WILL_BE_PRIVATE_STATIC"), - ]), - "span_begin_line": Uint64(14), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_STATIC_IN_NESTED_MODULE_WILL_REMOVE"), - "path": List([ - String("pub_static_missing"), - String("my_module"), - String("my_module_nested"), - String("PUB_STATIC_IN_NESTED_MODULE_WILL_REMOVE"), - ]), - "span_begin_line": Uint64(20), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_STATIC_IN_NESTED_MODULE_WILL_RENAME"), - "path": List([ - String("pub_static_missing"), - String("my_module"), - String("my_module_nested"), - String("PUB_STATIC_IN_NESTED_MODULE_WILL_RENAME"), - ]), - "span_begin_line": Uint64(21), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_STATIC_IN_NESTED_MODULE_WILL_BE_PRIVATE_CONST"), - "path": List([ - String("pub_static_missing"), - String("my_module"), - String("my_module_nested"), - String("PUB_STATIC_IN_NESTED_MODULE_WILL_BE_PRIVATE_CONST"), - ]), - "span_begin_line": Uint64(23), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PUB_STATIC_IN_NESTED_MODULE_WILL_BE_PRIVATE_STATIC"), - "path": List([ - String("pub_static_missing"), - String("my_module"), - String("my_module_nested"), - String("PUB_STATIC_IN_NESTED_MODULE_WILL_BE_PRIVATE_STATIC"), - ]), - "span_begin_line": Uint64(24), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/pub_static_mut_now_immutable/": [ - { - "name": String("STATIC_RENAME"), - "path": List([ - String("pub_static_mut_now_immutable"), - String("STATIC_RENAME"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/pub_static_mut_now_immutable.output.ron b/test_outputs/pub_static_mut_now_immutable.output.ron deleted file mode 100644 index c305bd16..00000000 --- a/test_outputs/pub_static_mut_now_immutable.output.ron +++ /dev/null @@ -1,13 +0,0 @@ -{ - "./test_crates/pub_static_mut_now_immutable/": [ - { - "path": List([ - String("pub_static_mut_now_immutable"), - String("STATIC_A"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "static_name": String("STATIC_A"), - }, - ], -} diff --git a/test_outputs/pub_static_now_doc_hidden.output.ron b/test_outputs/pub_static_now_doc_hidden.output.ron deleted file mode 100644 index a59d226d..00000000 --- a/test_outputs/pub_static_now_doc_hidden.output.ron +++ /dev/null @@ -1,34 +0,0 @@ -{ - "./test_crates/pub_static_mut_now_immutable/": [ - { - "path": List([ - String("pub_static_mut_now_immutable"), - String("DOC_HIDDEN_STATIC_B"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/lib.rs"), - "static_name": String("DOC_HIDDEN_STATIC_B"), - }, - ], - "./test_crates/pub_static_now_doc_hidden/": [ - { - "path": List([ - String("pub_static_now_doc_hidden"), - String("GlobalStaticB"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "static_name": String("GlobalStaticB"), - }, - { - "path": List([ - String("pub_static_now_doc_hidden"), - String("PublicModule"), - String("PublicModuleStaticB"), - ]), - "span_begin_line": Uint64(18), - "span_filename": String("src/lib.rs"), - "static_name": String("PublicModuleStaticB"), - }, - ], -} diff --git a/test_outputs/query_execution/auto_trait_impl_removed.snap b/test_outputs/query_execution/auto_trait_impl_removed.snap new file mode 100644 index 00000000..b1f1a59e --- /dev/null +++ b/test_outputs/query_execution/auto_trait_impl_removed.snap @@ -0,0 +1,90 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/auto_trait_impl_removed/": [ + { + "auto_trait": String("Sync"), + "auto_trait_path": List([ + String("core"), + String("marker"), + String("Sync"), + ]), + "name": String("SyncStruct"), + "path": List([ + String("auto_trait_impl_removed"), + String("SyncStruct"), + ]), + "span_begin_line": Uint64(8), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "auto_trait": String("Send"), + "auto_trait_path": List([ + String("core"), + String("marker"), + String("Send"), + ]), + "name": String("SendStruct"), + "path": List([ + String("auto_trait_impl_removed"), + String("SendStruct"), + ]), + "span_begin_line": Uint64(15), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "auto_trait": String("UnwindSafe"), + "auto_trait_path": List([ + String("core"), + String("panic"), + String("unwind_safe"), + String("UnwindSafe"), + ]), + "name": String("UnwindSafeStruct"), + "path": List([ + String("auto_trait_impl_removed"), + String("UnwindSafeStruct"), + ]), + "span_begin_line": Uint64(21), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "auto_trait": String("RefUnwindSafe"), + "auto_trait_path": List([ + String("core"), + String("panic"), + String("unwind_safe"), + String("RefUnwindSafe"), + ]), + "name": String("RefUnwindSafeStruct"), + "path": List([ + String("auto_trait_impl_removed"), + String("RefUnwindSafeStruct"), + ]), + "span_begin_line": Uint64(26), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "auto_trait": String("Unpin"), + "auto_trait_path": List([ + String("core"), + String("marker"), + String("Unpin"), + ]), + "name": String("UnpinStruct"), + "path": List([ + String("auto_trait_impl_removed"), + String("UnpinStruct"), + ]), + "span_begin_line": Uint64(39), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/constructible_struct_adds_field.snap b/test_outputs/query_execution/constructible_struct_adds_field.snap new file mode 100644 index 00000000..d5ecffb8 --- /dev/null +++ b/test_outputs/query_execution/constructible_struct_adds_field.snap @@ -0,0 +1,76 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/constructible_struct_adds_field/": [ + { + "field_name": String("new_field"), + "path": List([ + String("constructible_struct_adds_field"), + String("ExhaustiveEmptyPlainStruct"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "struct_name": String("ExhaustiveEmptyPlainStruct"), + "struct_type": String("plain"), + }, + { + "field_name": String("new_field"), + "path": List([ + String("constructible_struct_adds_field"), + String("ExhaustivePlainStruct"), + ]), + "span_begin_line": Uint64(8), + "span_filename": String("src/lib.rs"), + "struct_name": String("ExhaustivePlainStruct"), + "struct_type": String("plain"), + }, + { + "field_name": String("0"), + "path": List([ + String("constructible_struct_adds_field"), + String("ExhaustiveEmptyTupleStruct"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + "struct_name": String("ExhaustiveEmptyTupleStruct"), + "struct_type": String("tuple"), + }, + { + "field_name": String("2"), + "path": List([ + String("constructible_struct_adds_field"), + String("ExhaustiveTupleStruct"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/lib.rs"), + "struct_name": String("ExhaustiveTupleStruct"), + "struct_type": String("tuple"), + }, + ], + "./test_crates/constructible_struct_adds_private_field/": [ + { + "field_name": String("new_field"), + "path": List([ + String("constructible_struct_adds_private_field"), + String("PlainStructGainsPublicField"), + ]), + "span_begin_line": Uint64(42), + "span_filename": String("src/lib.rs"), + "struct_name": String("PlainStructGainsPublicField"), + "struct_type": String("plain"), + }, + { + "field_name": String("2"), + "path": List([ + String("constructible_struct_adds_private_field"), + String("TupleStructGainsPublicField"), + ]), + "span_begin_line": Uint64(47), + "span_filename": String("src/lib.rs"), + "struct_name": String("TupleStructGainsPublicField"), + "struct_type": String("tuple"), + }, + ], +} diff --git a/test_outputs/query_execution/constructible_struct_adds_private_field.snap b/test_outputs/query_execution/constructible_struct_adds_private_field.snap new file mode 100644 index 00000000..b27d0558 --- /dev/null +++ b/test_outputs/query_execution/constructible_struct_adds_private_field.snap @@ -0,0 +1,76 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/constructible_struct_adds_field/": [ + { + "field_name": String("new_field"), + "path": List([ + String("constructible_struct_adds_field"), + String("PlainStructGainsPrivateField"), + ]), + "span_begin_line": Uint64(42), + "span_filename": String("src/lib.rs"), + "struct_name": String("PlainStructGainsPrivateField"), + "struct_type": String("plain"), + }, + { + "field_name": String("2"), + "path": List([ + String("constructible_struct_adds_field"), + String("TupleStructGainsPrivateField"), + ]), + "span_begin_line": Uint64(47), + "span_filename": String("src/lib.rs"), + "struct_name": String("TupleStructGainsPrivateField"), + "struct_type": String("tuple"), + }, + ], + "./test_crates/constructible_struct_adds_private_field/": [ + { + "field_name": String("new_field"), + "path": List([ + String("constructible_struct_adds_private_field"), + String("ExhaustiveEmptyPlainStruct"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "struct_name": String("ExhaustiveEmptyPlainStruct"), + "struct_type": String("plain"), + }, + { + "field_name": String("new_field"), + "path": List([ + String("constructible_struct_adds_private_field"), + String("ExhaustivePlainStruct"), + ]), + "span_begin_line": Uint64(8), + "span_filename": String("src/lib.rs"), + "struct_name": String("ExhaustivePlainStruct"), + "struct_type": String("plain"), + }, + { + "field_name": String("0"), + "path": List([ + String("constructible_struct_adds_private_field"), + String("ExhaustiveEmptyTupleStruct"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + "struct_name": String("ExhaustiveEmptyTupleStruct"), + "struct_type": String("tuple"), + }, + { + "field_name": String("2"), + "path": List([ + String("constructible_struct_adds_private_field"), + String("ExhaustiveTupleStruct"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/lib.rs"), + "struct_name": String("ExhaustiveTupleStruct"), + "struct_type": String("tuple"), + }, + ], +} diff --git a/test_outputs/query_execution/constructible_struct_changed_type.snap b/test_outputs/query_execution/constructible_struct_changed_type.snap new file mode 100644 index 00000000..b038adb5 --- /dev/null +++ b/test_outputs/query_execution/constructible_struct_changed_type.snap @@ -0,0 +1,47 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/struct_becomes_enum/": [ + { + "current_typename": String("Enum"), + "name": String("ConstructibleFieldlessUnit"), + "path": List([ + String("struct_becomes_enum"), + String("ConstructibleFieldlessUnit"), + ]), + "span_begin_line": Uint64(29), + "span_filename": String("src/lib.rs"), + "struct_type": String("unit"), + "struct_typename": String("Struct"), + "visibility_limit": String("public"), + }, + { + "current_typename": String("Enum"), + "name": String("ConstructibleFieldlessTuple"), + "path": List([ + String("struct_becomes_enum"), + String("ConstructibleFieldlessTuple"), + ]), + "span_begin_line": Uint64(31), + "span_filename": String("src/lib.rs"), + "struct_type": String("tuple"), + "struct_typename": String("Struct"), + "visibility_limit": String("public"), + }, + { + "current_typename": String("Enum"), + "name": String("ConstructibleFieldlessStruct"), + "path": List([ + String("struct_becomes_enum"), + String("ConstructibleFieldlessStruct"), + ]), + "span_begin_line": Uint64(35), + "span_filename": String("src/lib.rs"), + "struct_type": String("plain"), + "struct_typename": String("Struct"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/derive_trait_impl_removed.snap b/test_outputs/query_execution/derive_trait_impl_removed.snap new file mode 100644 index 00000000..ded1fc89 --- /dev/null +++ b/test_outputs/query_execution/derive_trait_impl_removed.snap @@ -0,0 +1,56 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/derive_trait_impl_removed/": [ + { + "name": String("DebugFoo"), + "path": List([ + String("derive_trait_impl_removed"), + String("DebugFoo"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "trait_name": String("Debug"), + "trait_path": List([ + String("core"), + String("fmt"), + String("Debug"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("CopyBar"), + "path": List([ + String("derive_trait_impl_removed"), + String("CopyBar"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "trait_name": String("Copy"), + "trait_path": List([ + String("core"), + String("marker"), + String("Copy"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("EqFoo"), + "path": List([ + String("derive_trait_impl_removed"), + String("EqFoo"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/lib.rs"), + "trait_name": String("Eq"), + "trait_path": List([ + String("core"), + String("cmp"), + String("Eq"), + ]), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_marked_non_exhaustive.snap b/test_outputs/query_execution/enum_marked_non_exhaustive.snap new file mode 100644 index 00000000..c4d7362b --- /dev/null +++ b/test_outputs/query_execution/enum_marked_non_exhaustive.snap @@ -0,0 +1,18 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/non_exhaustive/": [ + { + "name": String("SimpleEnum"), + "path": List([ + String("non_exhaustive"), + String("SimpleEnum"), + ]), + "span_begin_line": Uint64(48), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_missing.snap b/test_outputs/query_execution/enum_missing.snap new file mode 100644 index 00000000..57a19292 --- /dev/null +++ b/test_outputs/query_execution/enum_missing.snap @@ -0,0 +1,100 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_missing/": [ + { + "name": String("WillBeRemovedEnum"), + "path": List([ + String("enum_missing"), + String("WillBeRemovedEnum"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PubUseRemovedEnum"), + "path": List([ + String("enum_missing"), + String("PubUseRemovedEnum"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/enum_tuple_variant_field_added/": [ + { + "name": String("BecomesPrivateEnum"), + "path": List([ + String("enum_tuple_variant_field_added"), + String("BecomesPrivateEnum"), + ]), + "span_begin_line": Uint64(29), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/enum_tuple_variant_field_missing/": [ + { + "name": String("BecomesPrivateEnum"), + "path": List([ + String("enum_tuple_variant_field_missing"), + String("BecomesPrivateEnum"), + ]), + "span_begin_line": Uint64(21), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/enum_variant_missing/": [ + { + "name": String("ShouldNotMatch"), + "path": List([ + String("enum_variant_missing"), + String("ShouldNotMatch"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/inherent_method_must_use_added/": [ + { + "name": String("EnumToStructWithMustUseMethods"), + "path": List([ + String("inherent_method_must_use_added"), + String("item_type_changed_inherent_method_must_use_added"), + String("EnumToStructWithMustUseMethods"), + ]), + "span_begin_line": Uint64(8), + "span_filename": String("src/item_type_changed_inherent_method_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("EnumToUnionWithMustUseMethods"), + "path": List([ + String("inherent_method_must_use_added"), + String("item_type_changed_inherent_method_must_use_added"), + String("EnumToUnionWithMustUseMethods"), + ]), + "span_begin_line": Uint64(35), + "span_filename": String("src/item_type_changed_inherent_method_must_use_added.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/switch_to_reexport_as_underscore/": [ + { + "name": String("Enum"), + "path": List([ + String("switch_to_reexport_as_underscore"), + String("Enum"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_must_use_added.snap b/test_outputs/query_execution/enum_must_use_added.snap new file mode 100644 index 00000000..cd78c33a --- /dev/null +++ b/test_outputs/query_execution/enum_must_use_added.snap @@ -0,0 +1,30 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_must_use_added/": [ + { + "name": String("EnumToMustUseEnum"), + "new_attr": String("#[must_use]"), + "path": List([ + String("enum_must_use_added"), + String("EnumToMustUseEnum"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("EnumToMustUseMessageEnum"), + "new_attr": String("#[must_use = \"Foo\"]"), + "path": List([ + String("enum_must_use_added"), + String("EnumToMustUseMessageEnum"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_no_repr_variant_discriminant_changed.snap b/test_outputs/query_execution/enum_no_repr_variant_discriminant_changed.snap new file mode 100644 index 00000000..b62f0302 --- /dev/null +++ b/test_outputs/query_execution/enum_no_repr_variant_discriminant_changed.snap @@ -0,0 +1,60 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_no_repr_variant_discriminant_changed/": [ + { + "enum_name": String("ExplicitAndImplicitDiscriminantsAreChanged"), + "new_value": String("2"), + "old_value": String("1"), + "path": List([ + String("enum_no_repr_variant_discriminant_changed"), + String("ExplicitAndImplicitDiscriminantsAreChanged"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + "variant_name": String("First"), + "visibility_limit": String("public"), + }, + { + "enum_name": String("ExplicitAndImplicitDiscriminantsAreChanged"), + "new_value": String("3"), + "old_value": String("2"), + "path": List([ + String("enum_no_repr_variant_discriminant_changed"), + String("ExplicitAndImplicitDiscriminantsAreChanged"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "variant_name": String("Second"), + "visibility_limit": String("public"), + }, + { + "enum_name": String("DiscriminantIsChanged"), + "new_value": String("1"), + "old_value": String("0"), + "path": List([ + String("enum_no_repr_variant_discriminant_changed"), + String("DiscriminantIsChanged"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/lib.rs"), + "variant_name": String("First"), + "visibility_limit": String("public"), + }, + { + "enum_name": String("DiscriminantBecomesDocHiddenAndExplicit"), + "new_value": String("2"), + "old_value": String("1"), + "path": List([ + String("enum_no_repr_variant_discriminant_changed"), + String("DiscriminantBecomesDocHiddenAndExplicit"), + ]), + "span_begin_line": Uint64(42), + "span_filename": String("src/lib.rs"), + "variant_name": String("Second"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_now_doc_hidden.snap b/test_outputs/query_execution/enum_now_doc_hidden.snap new file mode 100644 index 00000000..cd2eaefc --- /dev/null +++ b/test_outputs/query_execution/enum_now_doc_hidden.snap @@ -0,0 +1,49 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_now_doc_hidden/": [ + { + "enum_name": String("MyEnum"), + "path": List([ + String("enum_now_doc_hidden"), + String("MyPublicMod"), + String("MyEnum"), + ]), + "span_begin_line": Uint64(15), + "span_filename": String("src/lib.rs"), + }, + { + "enum_name": String("MyEnum"), + "path": List([ + String("enum_now_doc_hidden"), + String("MyNestedPublicMod"), + String("PublicInnerMod"), + String("MyEnum"), + ]), + "span_begin_line": Uint64(46), + "span_filename": String("src/lib.rs"), + }, + { + "enum_name": String("Example"), + "path": List([ + String("enum_now_doc_hidden"), + String("Example"), + ]), + "span_begin_line": Uint64(59), + "span_filename": String("src/lib.rs"), + }, + ], + "./test_crates/type_hidden_from_public_api/": [ + { + "enum_name": String("ExampleEnum"), + "path": List([ + String("type_hidden_from_public_api"), + String("ExampleEnum"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/lib.rs"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_repr_int_changed.snap b/test_outputs/query_execution/enum_repr_int_changed.snap new file mode 100644 index 00000000..b9e910b6 --- /dev/null +++ b/test_outputs/query_execution/enum_repr_int_changed.snap @@ -0,0 +1,262 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_repr_int_changed/": [ + { + "name": String("U8ToU16Enum"), + "new_attr": List([ + String("#[repr(u16)]"), + ]), + "old_attr": String("#[repr(u8)]"), + "path": List([ + String("enum_repr_int_changed"), + String("U8ToU16Enum"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("I32ToI8Enum"), + "new_attr": List([ + String("#[repr(i8)]"), + ]), + "old_attr": String("#[repr(i32)]"), + "path": List([ + String("enum_repr_int_changed"), + String("I32ToI8Enum"), + ]), + "span_begin_line": Uint64(8), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("I32ToU32Enum"), + "new_attr": List([ + String("#[repr(u32)]"), + ]), + "old_attr": String("#[repr(i32)]"), + "path": List([ + String("enum_repr_int_changed"), + String("I32ToU32Enum"), + ]), + "span_begin_line": Uint64(14), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("U8CToU16CEnum"), + "new_attr": List([ + String("#[repr(u16, C)]"), + ]), + "old_attr": String("#[repr(u8, C)]"), + "path": List([ + String("enum_repr_int_changed"), + String("U8CToU16CEnum"), + ]), + "span_begin_line": Uint64(20), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("CU8ToCU16Enum"), + "new_attr": List([ + String("#[repr(C, u16)]"), + ]), + "old_attr": String("#[repr(C, u8)]"), + "path": List([ + String("enum_repr_int_changed"), + String("CU8ToCU16Enum"), + ]), + "span_begin_line": Uint64(26), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("U8CToSeparateU16CEnum"), + "new_attr": List([ + String("#[repr(u16)]"), + ]), + "old_attr": String("#[repr(u8, C)]"), + "path": List([ + String("enum_repr_int_changed"), + String("U8CToSeparateU16CEnum"), + ]), + "span_begin_line": Uint64(33), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("U64ToUsizeEnum"), + "new_attr": List([ + String("#[repr(usize)]"), + ]), + "old_attr": String("#[repr(u64)]"), + "path": List([ + String("enum_repr_int_changed"), + String("U64ToUsizeEnum"), + ]), + "span_begin_line": Uint64(44), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("UsizeToU64Enum"), + "new_attr": List([ + String("#[repr(u64)]"), + ]), + "old_attr": String("#[repr(usize)]"), + "path": List([ + String("enum_repr_int_changed"), + String("UsizeToU64Enum"), + ]), + "span_begin_line": Uint64(50), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("I64ToIsizeEnum"), + "new_attr": List([ + String("#[repr(isize)]"), + ]), + "old_attr": String("#[repr(i64)]"), + "path": List([ + String("enum_repr_int_changed"), + String("I64ToIsizeEnum"), + ]), + "span_begin_line": Uint64(56), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("IsizeToI64Enum"), + "new_attr": List([ + String("#[repr(i64)]"), + ]), + "old_attr": String("#[repr(isize)]"), + "path": List([ + String("enum_repr_int_changed"), + String("IsizeToI64Enum"), + ]), + "span_begin_line": Uint64(62), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("UsizeToIsizeEnum"), + "new_attr": List([ + String("#[repr(isize)]"), + ]), + "old_attr": String("#[repr(usize)]"), + "path": List([ + String("enum_repr_int_changed"), + String("UsizeToIsizeEnum"), + ]), + "span_begin_line": Uint64(68), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("IsizeToUsizeEnum"), + "new_attr": List([ + String("#[repr(usize)]"), + ]), + "old_attr": String("#[repr(isize)]"), + "path": List([ + String("enum_repr_int_changed"), + String("IsizeToUsizeEnum"), + ]), + "span_begin_line": Uint64(74), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/enum_repr_int_removed/": [ + { + "name": String("U8ToU16Enum"), + "new_attr": List([ + String("#[repr(u16)]"), + ]), + "old_attr": String("#[repr(u8)]"), + "path": List([ + String("enum_repr_int_removed"), + String("U8ToU16Enum"), + ]), + "span_begin_line": Uint64(108), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("I32ToI8Enum"), + "new_attr": List([ + String("#[repr(i8)]"), + ]), + "old_attr": String("#[repr(i32)]"), + "path": List([ + String("enum_repr_int_removed"), + String("I32ToI8Enum"), + ]), + "span_begin_line": Uint64(114), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("I32ToU32Enum"), + "new_attr": List([ + String("#[repr(u32)]"), + ]), + "old_attr": String("#[repr(i32)]"), + "path": List([ + String("enum_repr_int_removed"), + String("I32ToU32Enum"), + ]), + "span_begin_line": Uint64(120), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("U8CToU16CEnum"), + "new_attr": List([ + String("#[repr(u16, C)]"), + ]), + "old_attr": String("#[repr(u8, C)]"), + "path": List([ + String("enum_repr_int_removed"), + String("U8CToU16CEnum"), + ]), + "span_begin_line": Uint64(126), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("CU8ToCU16Enum"), + "new_attr": List([ + String("#[repr(C, u16)]"), + ]), + "old_attr": String("#[repr(C, u8)]"), + "path": List([ + String("enum_repr_int_removed"), + String("CU8ToCU16Enum"), + ]), + "span_begin_line": Uint64(132), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("U8CToSeparateU16CEnum"), + "new_attr": List([ + String("#[repr(u16)]"), + ]), + "old_attr": String("#[repr(u8, C)]"), + "path": List([ + String("enum_repr_int_removed"), + String("U8CToSeparateU16CEnum"), + ]), + "span_begin_line": Uint64(139), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_repr_int_removed.snap b/test_outputs/query_execution/enum_repr_int_removed.snap new file mode 100644 index 00000000..11c3e3f0 --- /dev/null +++ b/test_outputs/query_execution/enum_repr_int_removed.snap @@ -0,0 +1,186 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_repr_int_changed/": [ + { + "name": String("U8EnumToEnum"), + "old_attr": String("#[repr(u8)]"), + "path": List([ + String("enum_repr_int_changed"), + String("U8EnumToEnum"), + ]), + "span_begin_line": Uint64(148), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("I32EnumToEnum"), + "old_attr": String("#[repr(i32)]"), + "path": List([ + String("enum_repr_int_changed"), + String("I32EnumToEnum"), + ]), + "span_begin_line": Uint64(153), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("IsizeEnumToEnum"), + "old_attr": String("#[repr(isize)]"), + "path": List([ + String("enum_repr_int_changed"), + String("IsizeEnumToEnum"), + ]), + "span_begin_line": Uint64(158), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("UsizeEnumToEnum"), + "old_attr": String("#[repr(usize)]"), + "path": List([ + String("enum_repr_int_changed"), + String("UsizeEnumToEnum"), + ]), + "span_begin_line": Uint64(163), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("U8CEnumToCEnum"), + "old_attr": String("#[repr(u8, C)]"), + "path": List([ + String("enum_repr_int_changed"), + String("U8CEnumToCEnum"), + ]), + "span_begin_line": Uint64(169), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("SeparateU8CEnumToCEnum"), + "old_attr": String("#[repr(u8)]"), + "path": List([ + String("enum_repr_int_changed"), + String("SeparateU8CEnumToCEnum"), + ]), + "span_begin_line": Uint64(175), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("CU8EnumToCEnum"), + "old_attr": String("#[repr(C, u8)]"), + "path": List([ + String("enum_repr_int_changed"), + String("CU8EnumToCEnum"), + ]), + "span_begin_line": Uint64(181), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("SeparateCU8EnumToCEnum"), + "old_attr": String("#[repr(u8)]"), + "path": List([ + String("enum_repr_int_changed"), + String("SeparateCU8EnumToCEnum"), + ]), + "span_begin_line": Uint64(187), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/enum_repr_int_removed/": [ + { + "name": String("U8EnumToEnum"), + "old_attr": String("#[repr(u8)]"), + "path": List([ + String("enum_repr_int_removed"), + String("U8EnumToEnum"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("I32EnumToEnum"), + "old_attr": String("#[repr(i32)]"), + "path": List([ + String("enum_repr_int_removed"), + String("I32EnumToEnum"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("IsizeEnumToEnum"), + "old_attr": String("#[repr(isize)]"), + "path": List([ + String("enum_repr_int_removed"), + String("IsizeEnumToEnum"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("UsizeEnumToEnum"), + "old_attr": String("#[repr(usize)]"), + "path": List([ + String("enum_repr_int_removed"), + String("UsizeEnumToEnum"), + ]), + "span_begin_line": Uint64(16), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("U8CEnumToCEnum"), + "old_attr": String("#[repr(u8, C)]"), + "path": List([ + String("enum_repr_int_removed"), + String("U8CEnumToCEnum"), + ]), + "span_begin_line": Uint64(22), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("SeparateU8CEnumToCEnum"), + "old_attr": String("#[repr(u8)]"), + "path": List([ + String("enum_repr_int_removed"), + String("SeparateU8CEnumToCEnum"), + ]), + "span_begin_line": Uint64(28), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("CU8EnumToCEnum"), + "old_attr": String("#[repr(C, u8)]"), + "path": List([ + String("enum_repr_int_removed"), + String("CU8EnumToCEnum"), + ]), + "span_begin_line": Uint64(34), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("SeparateCU8EnumToCEnum"), + "old_attr": String("#[repr(u8)]"), + "path": List([ + String("enum_repr_int_removed"), + String("SeparateCU8EnumToCEnum"), + ]), + "span_begin_line": Uint64(40), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_repr_transparent_removed.snap b/test_outputs/query_execution/enum_repr_transparent_removed.snap new file mode 100644 index 00000000..bf1e9700 --- /dev/null +++ b/test_outputs/query_execution/enum_repr_transparent_removed.snap @@ -0,0 +1,204 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_repr_transparent_removed/": [ + { + "name": String("Foo"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("enum_repr_transparent_removed"), + String("Foo"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "transparent_variant_name": List([ + String("Bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("Bar"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("enum_repr_transparent_removed"), + String("Bar"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "transparent_variant_name": List([ + String("Baz"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("StructStyleWithZeroSizedData"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("enum_repr_transparent_removed"), + String("StructStyleWithZeroSizedData"), + ]), + "span_begin_line": Uint64(9), + "span_filename": String("src/lib.rs"), + "transparent_variant_name": List([ + String("Bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("TupleStyleWithZeroSizedData"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("enum_repr_transparent_removed"), + String("TupleStyleWithZeroSizedData"), + ]), + "span_begin_line": Uint64(16), + "span_filename": String("src/lib.rs"), + "transparent_variant_name": List([ + String("Bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("StructStyleWithFoo"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("enum_repr_transparent_removed"), + String("StructStyleWithFoo"), + ]), + "span_begin_line": Uint64(20), + "span_filename": String("src/lib.rs"), + "transparent_variant_name": List([ + String("Bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("TupleStyleWithFoo"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("enum_repr_transparent_removed"), + String("TupleStyleWithFoo"), + ]), + "span_begin_line": Uint64(27), + "span_filename": String("src/lib.rs"), + "transparent_variant_name": List([ + String("Bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("StructStyleWithRef"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("enum_repr_transparent_removed"), + String("StructStyleWithRef"), + ]), + "span_begin_line": Uint64(31), + "span_filename": String("src/lib.rs"), + "transparent_variant_name": List([ + String("Bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("TupleStyleWithRef"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("enum_repr_transparent_removed"), + String("TupleStyleWithRef"), + ]), + "span_begin_line": Uint64(38), + "span_filename": String("src/lib.rs"), + "transparent_variant_name": List([ + String("Bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("StructStyleWithTupleStyle"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("enum_repr_transparent_removed"), + String("StructStyleWithTupleStyle"), + ]), + "span_begin_line": Uint64(42), + "span_filename": String("src/lib.rs"), + "transparent_variant_name": List([ + String("Bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("TupleStyleWithTuple"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("enum_repr_transparent_removed"), + String("TupleStyleWithTuple"), + ]), + "span_begin_line": Uint64(49), + "span_filename": String("src/lib.rs"), + "transparent_variant_name": List([ + String("Bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("StructStyleWithGeneric"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("enum_repr_transparent_removed"), + String("StructStyleWithGeneric"), + ]), + "span_begin_line": Uint64(53), + "span_filename": String("src/lib.rs"), + "transparent_variant_name": List([ + String("Bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("TupleStyleWithGeneric"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("enum_repr_transparent_removed"), + String("TupleStyleWithGeneric"), + ]), + "span_begin_line": Uint64(60), + "span_filename": String("src/lib.rs"), + "transparent_variant_name": List([ + String("Bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("StructStyleWithSpecificZeroSizedData"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("enum_repr_transparent_removed"), + String("StructStyleWithSpecificZeroSizedData"), + ]), + "span_begin_line": Uint64(67), + "span_filename": String("src/lib.rs"), + "transparent_variant_name": List([ + String("Bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("TupleStyleWithSpecificZeroSizedData"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("enum_repr_transparent_removed"), + String("TupleStyleWithSpecificZeroSizedData"), + ]), + "span_begin_line": Uint64(74), + "span_filename": String("src/lib.rs"), + "transparent_variant_name": List([ + String("Bar"), + ]), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_struct_variant_field_added.snap b/test_outputs/query_execution/enum_struct_variant_field_added.snap new file mode 100644 index 00000000..cc7cde5e --- /dev/null +++ b/test_outputs/query_execution/enum_struct_variant_field_added.snap @@ -0,0 +1,45 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_no_repr_variant_discriminant_changed/": [ + { + "enum_name": String("UnitOnlyBecomesUndefined"), + "field_name": String("a"), + "path": List([ + String("enum_no_repr_variant_discriminant_changed"), + String("UnitOnlyBecomesUndefined"), + ]), + "span_begin_line": Uint64(77), + "span_filename": String("src/lib.rs"), + "variant_name": String("Struct"), + }, + ], + "./test_crates/enum_struct_field_hidden_from_public_api/": [ + { + "enum_name": String("AddedVariantField"), + "field_name": String("y"), + "path": List([ + String("enum_struct_field_hidden_from_public_api"), + String("AddedVariantField"), + ]), + "span_begin_line": Uint64(38), + "span_filename": String("src/lib.rs"), + "variant_name": String("StructVariant"), + }, + ], + "./test_crates/enum_struct_variant_field_added/": [ + { + "enum_name": String("PubEnum"), + "field_name": String("y"), + "path": List([ + String("enum_struct_variant_field_added"), + String("PubEnum"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + "variant_name": String("Foo"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_struct_variant_field_missing.snap b/test_outputs/query_execution/enum_struct_variant_field_missing.snap new file mode 100644 index 00000000..b9350076 --- /dev/null +++ b/test_outputs/query_execution/enum_struct_variant_field_missing.snap @@ -0,0 +1,19 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_struct_variant_field_missing/": [ + { + "enum_name": String("Enum"), + "field_name": String("bar"), + "path": List([ + String("enum_struct_variant_field_missing"), + String("Enum"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "variant_name": String("FieldWillBeMissing"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_struct_variant_field_now_doc_hidden.snap b/test_outputs/query_execution/enum_struct_variant_field_now_doc_hidden.snap new file mode 100644 index 00000000..0c51a4c1 --- /dev/null +++ b/test_outputs/query_execution/enum_struct_variant_field_now_doc_hidden.snap @@ -0,0 +1,32 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_now_doc_hidden/": [ + { + "enum_name": String("PublicEnumHiddenStructFieldOnVariant"), + "field_name": String("a"), + "path": List([ + String("enum_now_doc_hidden"), + String("PublicEnumHiddenStructFieldOnVariant"), + ]), + "span_begin_line": Uint64(78), + "span_filename": String("src/lib.rs"), + "variant_name": String("A"), + }, + ], + "./test_crates/enum_struct_variant_field_now_doc_hidden/": [ + { + "enum_name": String("PublicEnumA"), + "field_name": String("x"), + "path": List([ + String("enum_struct_variant_field_now_doc_hidden"), + String("PublicEnumA"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/lib.rs"), + "variant_name": String("StructVariant"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_tuple_variant_changed_kind.snap b/test_outputs/query_execution/enum_tuple_variant_changed_kind.snap new file mode 100644 index 00000000..e28898be --- /dev/null +++ b/test_outputs/query_execution/enum_tuple_variant_changed_kind.snap @@ -0,0 +1,106 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_tuple_variant_changed_kind/": [ + { + "enum_name": String("TestStruct"), + "kind": String("TupleVariant"), + "new_kind": String("StructVariant"), + "path": List([ + String("enum_tuple_variant_changed_kind"), + String("TestStruct"), + ]), + "span_begin_line": Uint64(3), + "span_filename": String("src/lib.rs"), + "variant_name": String("WillBecomeStructLike"), + }, + { + "enum_name": String("TestUnit"), + "kind": String("TupleVariant"), + "new_kind": String("PlainVariant"), + "path": List([ + String("enum_tuple_variant_changed_kind"), + String("TestUnit"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/lib.rs"), + "variant_name": String("WillBecomeUnitLike"), + }, + { + "enum_name": String("MultipleTest"), + "kind": String("TupleVariant"), + "new_kind": String("StructVariant"), + "path": List([ + String("enum_tuple_variant_changed_kind"), + String("MultipleTest"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + "variant_name": String("WillBecomeStructLike"), + }, + { + "enum_name": String("MultipleTest"), + "kind": String("TupleVariant"), + "new_kind": String("PlainVariant"), + "path": List([ + String("enum_tuple_variant_changed_kind"), + String("MultipleTest"), + ]), + "span_begin_line": Uint64(12), + "span_filename": String("src/lib.rs"), + "variant_name": String("WillBecomeUnitLike"), + }, + { + "enum_name": String("TestBecomeDocHidden"), + "kind": String("TupleVariant"), + "new_kind": String("StructVariant"), + "path": List([ + String("enum_tuple_variant_changed_kind"), + String("TestBecomeDocHidden"), + ]), + "span_begin_line": Uint64(18), + "span_filename": String("src/lib.rs"), + "variant_name": String("WillBecomeStructLike"), + }, + { + "enum_name": String("TestBecomeNonExhaustive"), + "kind": String("TupleVariant"), + "new_kind": String("StructVariant"), + "path": List([ + String("enum_tuple_variant_changed_kind"), + String("TestBecomeNonExhaustive"), + ]), + "span_begin_line": Uint64(23), + "span_filename": String("src/lib.rs"), + "variant_name": String("WillBecomeStructLike"), + }, + ], + "./test_crates/enum_tuple_variant_field_missing/": [ + { + "enum_name": String("PublicEnum"), + "kind": String("TupleVariant"), + "new_kind": String("PlainVariant"), + "path": List([ + String("enum_tuple_variant_field_missing"), + String("PublicEnum"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "variant_name": String("TupleVariantBecomesPlain"), + }, + { + "enum_name": String("PublicEnum"), + "kind": String("TupleVariant"), + "new_kind": String("StructVariant"), + "path": List([ + String("enum_tuple_variant_field_missing"), + String("PublicEnum"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/lib.rs"), + "variant_name": String("TupleVariantBecomesStruct"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_tuple_variant_field_added.snap b/test_outputs/query_execution/enum_tuple_variant_field_added.snap new file mode 100644 index 00000000..29dc3dea --- /dev/null +++ b/test_outputs/query_execution/enum_tuple_variant_field_added.snap @@ -0,0 +1,32 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_struct_field_hidden_from_public_api/": [ + { + "enum_name": String("AddedVariantField"), + "field_name": String("1"), + "path": List([ + String("enum_struct_field_hidden_from_public_api"), + String("AddedVariantField"), + ]), + "span_begin_line": Uint64(41), + "span_filename": String("src/lib.rs"), + "variant_name": String("TupleVariant"), + }, + ], + "./test_crates/enum_tuple_variant_field_added/": [ + { + "enum_name": String("PublicEnum"), + "field_name": String("2"), + "path": List([ + String("enum_tuple_variant_field_added"), + String("PublicEnum"), + ]), + "span_begin_line": Uint64(3), + "span_filename": String("src/lib.rs"), + "variant_name": String("TupleVariantWithFieldAdded"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_tuple_variant_field_missing.snap b/test_outputs/query_execution/enum_tuple_variant_field_missing.snap new file mode 100644 index 00000000..36fc0005 --- /dev/null +++ b/test_outputs/query_execution/enum_tuple_variant_field_missing.snap @@ -0,0 +1,32 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_struct_field_hidden_from_public_api/": [ + { + "enum_name": String("RemovedHiddenFieldFromVariant"), + "field_name": String("3"), + "path": List([ + String("enum_struct_field_hidden_from_public_api"), + String("RemovedHiddenFieldFromVariant"), + ]), + "span_begin_line": Uint64(36), + "span_filename": String("src/lib.rs"), + "variant_name": String("VisibleTupleVariantBreaking"), + }, + ], + "./test_crates/enum_tuple_variant_field_missing/": [ + { + "enum_name": String("PublicEnum"), + "field_name": String("2"), + "path": List([ + String("enum_tuple_variant_field_missing"), + String("PublicEnum"), + ]), + "span_begin_line": Uint64(3), + "span_filename": String("src/lib.rs"), + "variant_name": String("TupleVariantWithMissingField"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_tuple_variant_field_now_doc_hidden.snap b/test_outputs/query_execution/enum_tuple_variant_field_now_doc_hidden.snap new file mode 100644 index 00000000..ce0fdad3 --- /dev/null +++ b/test_outputs/query_execution/enum_tuple_variant_field_now_doc_hidden.snap @@ -0,0 +1,19 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_tuple_variant_field_now_doc_hidden/": [ + { + "enum_name": String("PulicEnumA"), + "field_name": String("0"), + "path": List([ + String("enum_tuple_variant_field_now_doc_hidden"), + String("PulicEnumA"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/lib.rs"), + "variant_name": String("TupleVariantWithPublicField"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_unit_variant_changed_kind.snap b/test_outputs/query_execution/enum_unit_variant_changed_kind.snap new file mode 100644 index 00000000..276988cc --- /dev/null +++ b/test_outputs/query_execution/enum_unit_variant_changed_kind.snap @@ -0,0 +1,94 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_tuple_variant_field_added/": [ + { + "enum_name": String("PublicEnum"), + "kind": String("PlainVariant"), + "new_kind": String("TupleVariant"), + "path": List([ + String("enum_tuple_variant_field_added"), + String("PublicEnum"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/lib.rs"), + "variant_name": String("PlainVariantBecomesTuple"), + }, + ], + "./test_crates/enum_unit_variant_changed_kind/": [ + { + "enum_name": String("TestStruct"), + "kind": String("PlainVariant"), + "new_kind": String("StructVariant"), + "path": List([ + String("enum_unit_variant_changed_kind"), + String("TestStruct"), + ]), + "span_begin_line": Uint64(3), + "span_filename": String("src/lib.rs"), + "variant_name": String("WillBecomeStructLike"), + }, + { + "enum_name": String("TestTuple"), + "kind": String("PlainVariant"), + "new_kind": String("TupleVariant"), + "path": List([ + String("enum_unit_variant_changed_kind"), + String("TestTuple"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/lib.rs"), + "variant_name": String("WillBecomeTupleLike"), + }, + { + "enum_name": String("MultipleTest"), + "kind": String("PlainVariant"), + "new_kind": String("StructVariant"), + "path": List([ + String("enum_unit_variant_changed_kind"), + String("MultipleTest"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + "variant_name": String("WillBecomeStructLike"), + }, + { + "enum_name": String("MultipleTest"), + "kind": String("PlainVariant"), + "new_kind": String("TupleVariant"), + "path": List([ + String("enum_unit_variant_changed_kind"), + String("MultipleTest"), + ]), + "span_begin_line": Uint64(12), + "span_filename": String("src/lib.rs"), + "variant_name": String("WillBecomeTupleLike"), + }, + { + "enum_name": String("TestBecomeDocHidden"), + "kind": String("PlainVariant"), + "new_kind": String("StructVariant"), + "path": List([ + String("enum_unit_variant_changed_kind"), + String("TestBecomeDocHidden"), + ]), + "span_begin_line": Uint64(18), + "span_filename": String("src/lib.rs"), + "variant_name": String("WillBecomeStructLike"), + }, + { + "enum_name": String("TestBecomeNonExhaustive"), + "kind": String("PlainVariant"), + "new_kind": String("StructVariant"), + "path": List([ + String("enum_unit_variant_changed_kind"), + String("TestBecomeNonExhaustive"), + ]), + "span_begin_line": Uint64(23), + "span_filename": String("src/lib.rs"), + "variant_name": String("WillBecomeStructLike"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_variant_added.snap b/test_outputs/query_execution/enum_variant_added.snap new file mode 100644 index 00000000..8afad3bb --- /dev/null +++ b/test_outputs/query_execution/enum_variant_added.snap @@ -0,0 +1,32 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_variant_added/": [ + { + "enum_name": String("EnumWithNewVariant"), + "path": List([ + String("enum_variant_added"), + String("EnumWithNewVariant"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + "variant_name": String("NewVariant"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/enum_variant_hidden_from_public_api/": [ + { + "enum_name": String("AddedVariant"), + "path": List([ + String("enum_variant_hidden_from_public_api"), + String("AddedVariant"), + ]), + "span_begin_line": Uint64(16), + "span_filename": String("src/lib.rs"), + "variant_name": String("Added"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_variant_marked_non_exhaustive.snap b/test_outputs/query_execution/enum_variant_marked_non_exhaustive.snap new file mode 100644 index 00000000..fd0698cb --- /dev/null +++ b/test_outputs/query_execution/enum_variant_marked_non_exhaustive.snap @@ -0,0 +1,106 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_no_repr_variant_discriminant_changed/": [ + { + "name": String("DiscriminantIsChangedAndMarkedNonExhaustive"), + "path": List([ + String("enum_no_repr_variant_discriminant_changed"), + String("DiscriminantIsChangedAndMarkedNonExhaustive"), + ]), + "span_begin_line": Uint64(24), + "span_filename": String("src/lib.rs"), + "variant_name": String("Second"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/enum_struct_variant_field_added/": [ + { + "name": String("EnumWithExhaustiveVariant"), + "path": List([ + String("enum_struct_variant_field_added"), + String("EnumWithExhaustiveVariant"), + ]), + "span_begin_line": Uint64(32), + "span_filename": String("src/lib.rs"), + "variant_name": String("ExhaustiveVariant"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/enum_tuple_variant_changed_kind/": [ + { + "name": String("TestBecomeNonExhaustive"), + "path": List([ + String("enum_tuple_variant_changed_kind"), + String("TestBecomeNonExhaustive"), + ]), + "span_begin_line": Uint64(23), + "span_filename": String("src/lib.rs"), + "variant_name": String("WillBecomeStructLike"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/enum_tuple_variant_field_added/": [ + { + "name": String("PublicEnum"), + "path": List([ + String("enum_tuple_variant_field_added"), + String("PublicEnum"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + "variant_name": String("TupleVariantWithFieldAddedBecomesNonExhaustive"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/enum_unit_variant_changed_kind/": [ + { + "name": String("TestBecomeNonExhaustive"), + "path": List([ + String("enum_unit_variant_changed_kind"), + String("TestBecomeNonExhaustive"), + ]), + "span_begin_line": Uint64(23), + "span_filename": String("src/lib.rs"), + "variant_name": String("WillBecomeStructLike"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/non_exhaustive/": [ + { + "name": String("MyEnum"), + "path": List([ + String("non_exhaustive"), + String("MyEnum"), + ]), + "span_begin_line": Uint64(38), + "span_filename": String("src/lib.rs"), + "variant_name": String("UnitVariant"), + "visibility_limit": String("public"), + }, + { + "name": String("MyEnum"), + "path": List([ + String("non_exhaustive"), + String("MyEnum"), + ]), + "span_begin_line": Uint64(41), + "span_filename": String("src/lib.rs"), + "variant_name": String("TupleVariant"), + "visibility_limit": String("public"), + }, + { + "name": String("MyEnum"), + "path": List([ + String("non_exhaustive"), + String("MyEnum"), + ]), + "span_begin_line": Uint64(44), + "span_filename": String("src/lib.rs"), + "variant_name": String("StructVariant"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/enum_variant_missing.snap b/test_outputs/query_execution/enum_variant_missing.snap new file mode 100644 index 00000000..88533788 --- /dev/null +++ b/test_outputs/query_execution/enum_variant_missing.snap @@ -0,0 +1,32 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/enum_struct_variant_field_missing/": [ + { + "enum_name": String("IgnoredEnum"), + "path": List([ + String("enum_struct_variant_field_missing"), + String("IgnoredEnum"), + ]), + "span_begin_line": Uint64(14), + "span_filename": String("src/lib.rs"), + "variant_name": String("StructVariantWillBeMissing"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/enum_variant_missing/": [ + { + "enum_name": String("VariantWillBeRemoved"), + "path": List([ + String("enum_variant_missing"), + String("VariantWillBeRemoved"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "variant_name": String("Bar"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/exported_function_changed_abi.snap b/test_outputs/query_execution/exported_function_changed_abi.snap new file mode 100644 index 00000000..4fb8ce73 --- /dev/null +++ b/test_outputs/query_execution/exported_function_changed_abi.snap @@ -0,0 +1,72 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/exported_function_changed_abi/": [ + { + "abi_raw_name": String("Rust"), + "export_name": String("public_null_export_name_func_will_become_c"), + "name": String("public_null_export_name_func_will_become_c"), + "new_abi_raw_name": String("C"), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + }, + { + "abi_raw_name": String("Rust"), + "export_name": String("private_null_export_name_func"), + "name": String("private_null_export_name_func"), + "new_abi_raw_name": String("C"), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + }, + { + "abi_raw_name": String("C"), + "export_name": String("exported_c_func_that_will_become_c_unwind"), + "name": String("exported_c_func_that_will_become_c_unwind"), + "new_abi_raw_name": String("C-unwind"), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + }, + { + "abi_raw_name": String("C-unwind"), + "export_name": String("exported_c_unwind_func_that_will_become_c"), + "name": String("exported_c_unwind_func_that_will_become_c"), + "new_abi_raw_name": String("C"), + "span_begin_line": Uint64(14), + "span_filename": String("src/lib.rs"), + }, + { + "abi_raw_name": String("Rust"), + "export_name": String("exported_rust_func_that_will_become_c"), + "name": String("exported_rust_func_that_will_become_c"), + "new_abi_raw_name": String("C"), + "span_begin_line": Uint64(17), + "span_filename": String("src/lib.rs"), + }, + { + "abi_raw_name": String("Rust"), + "export_name": String("exported_rust_func_that_will_become_c_unwind"), + "name": String("exported_rust_func_that_will_become_c_unwind"), + "new_abi_raw_name": String("C-unwind"), + "span_begin_line": Uint64(20), + "span_filename": String("src/lib.rs"), + }, + { + "abi_raw_name": String("Rust"), + "export_name": String("different_exported_name"), + "name": String("actual_function_name_that_will_become_c"), + "new_abi_raw_name": String("C"), + "span_begin_line": Uint64(23), + "span_filename": String("src/lib.rs"), + }, + { + "abi_raw_name": String("Rust"), + "export_name": String("different_exported_name2"), + "name": String("actual_function_name_that_will_become_c_unwind"), + "new_abi_raw_name": String("C-unwind"), + "span_begin_line": Uint64(26), + "span_filename": String("src/lib.rs"), + }, + ], +} diff --git a/test_outputs/query_execution/function_abi_no_longer_unwind.snap b/test_outputs/query_execution/function_abi_no_longer_unwind.snap new file mode 100644 index 00000000..a32d7a54 --- /dev/null +++ b/test_outputs/query_execution/function_abi_no_longer_unwind.snap @@ -0,0 +1,15 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/function_abi_no_longer_unwind/": [ + { + "abi_raw_name": String("C-unwind"), + "name": String("unwind_function_becomes_non_unwind"), + "new_abi_raw_name": String("C"), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + }, + ], +} diff --git a/test_outputs/query_execution/function_changed_abi.snap b/test_outputs/query_execution/function_changed_abi.snap new file mode 100644 index 00000000..3bf52acc --- /dev/null +++ b/test_outputs/query_execution/function_changed_abi.snap @@ -0,0 +1,94 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/exported_function_changed_abi/": [ + { + "abi_name": String("Rust"), + "name": String("public_null_export_name_func_will_become_c"), + "new_abi_name": String("C"), + "path": List([ + String("exported_function_changed_abi"), + String("public_null_export_name_func_will_become_c"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/function_changed_abi/": [ + { + "abi_name": String("C"), + "name": String("c_function_becomes_rust"), + "new_abi_name": String("Rust"), + "path": List([ + String("function_changed_abi"), + String("c_function_becomes_rust"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "abi_name": String("C"), + "name": String("c_function_becomes_rust_implicitly"), + "new_abi_name": String("Rust"), + "path": List([ + String("function_changed_abi"), + String("c_function_becomes_rust_implicitly"), + ]), + "span_begin_line": Uint64(3), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "abi_name": String("Rust"), + "name": String("rust_function_becomes_c"), + "new_abi_name": String("C"), + "path": List([ + String("function_changed_abi"), + String("rust_function_becomes_c"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "abi_name": String("Rust"), + "name": String("implicit_rust_function_becomes_c"), + "new_abi_name": String("C"), + "path": List([ + String("function_changed_abi"), + String("implicit_rust_function_becomes_c"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "abi_name": String("C"), + "name": String("implicit_c_function_becomes_rust"), + "new_abi_name": String("Rust"), + "path": List([ + String("function_changed_abi"), + String("implicit_c_function_becomes_rust"), + ]), + "span_begin_line": Uint64(9), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "abi_name": String("system"), + "name": String("system_function_becomes_c"), + "new_abi_name": String("C"), + "path": List([ + String("function_changed_abi"), + String("system_function_becomes_c"), + ]), + "span_begin_line": Uint64(15), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/function_const_removed.snap b/test_outputs/query_execution/function_const_removed.snap new file mode 100644 index 00000000..f05735a8 --- /dev/null +++ b/test_outputs/query_execution/function_const_removed.snap @@ -0,0 +1,18 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/function_const_removed/": [ + { + "name": String("add"), + "path": List([ + String("function_const_removed"), + String("add"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/function_export_name_changed.snap b/test_outputs/query_execution/function_export_name_changed.snap new file mode 100644 index 00000000..1003a8ca --- /dev/null +++ b/test_outputs/query_execution/function_export_name_changed.snap @@ -0,0 +1,86 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/function_export_name_changed/": [ + { + "export_name": String("export_name_changed_old"), + "name": String("export_name_changed"), + "new_export_name": String("export_name_changed_new"), + "path": List([ + String("function_export_name_changed"), + String("export_name_changed"), + ]), + "span_begin_line": Uint64(3), + "span_filename": String("src/lib.rs"), + }, + { + "export_name": String("no_mangle_changed_to_other_export_name"), + "name": String("no_mangle_changed_to_other_export_name"), + "new_export_name": String("no_mangle_changed_to_other_export_name_new"), + "path": List([ + String("function_export_name_changed"), + String("no_mangle_changed_to_other_export_name"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/lib.rs"), + }, + { + "export_name": String("export_name_changed_to_other_no_mangle_old"), + "name": String("export_name_changed_to_other_no_mangle"), + "new_export_name": String("export_name_changed_to_other_no_mangle"), + "path": List([ + String("function_export_name_changed"), + String("export_name_changed_to_other_no_mangle"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + }, + { + "export_name": String("no_mangle_removed"), + "name": String("no_mangle_removed"), + "new_export_name": Null, + "path": List([ + String("function_export_name_changed"), + String("no_mangle_removed"), + ]), + "span_begin_line": Uint64(22), + "span_filename": String("src/lib.rs"), + }, + { + "export_name": String("export_name_removed"), + "name": String("export_name_removed"), + "new_export_name": Null, + "path": List([ + String("function_export_name_changed"), + String("export_name_removed"), + ]), + "span_begin_line": Uint64(25), + "span_filename": String("src/lib.rs"), + }, + { + "export_name": String("private_export_name_changed_old"), + "name": String("private_export_name_changed"), + "new_export_name": String("private_export_name_changed_new"), + "path": List([ + String("function_export_name_changed"), + String("private_export_name_changed"), + ]), + "span_begin_line": Uint64(29), + "span_filename": String("src/lib.rs"), + }, + { + "export_name": String("export_name_moved"), + "name": String("export_name_moved_1"), + "new_export_name": Null, + "path": List([ + String("function_export_name_changed"), + String("export_name_moved"), + String("export_name_moved_1"), + ]), + "span_begin_line": Uint64(35), + "span_filename": String("src/lib.rs"), + }, + ], +} diff --git a/test_outputs/query_execution/function_missing.snap b/test_outputs/query_execution/function_missing.snap new file mode 100644 index 00000000..3b93ccd9 --- /dev/null +++ b/test_outputs/query_execution/function_missing.snap @@ -0,0 +1,86 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/feature_flags_validation/": [ + { + "name": String("foo_becomes_gated"), + "path": List([ + String("feature_flags_validation"), + String("foo_becomes_gated"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("bar_becomes_gated"), + "path": List([ + String("feature_flags_validation"), + String("bar_becomes_gated"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/features_simple/": [ + { + "name": String("feature_dependent_function"), + "path": List([ + String("features_simple"), + String("feature_dependent_function"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/function_const_removed/": [ + { + "name": String("fn_removed"), + "path": List([ + String("function_const_removed"), + String("fn_removed"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/function_feature_changed/": [ + { + "name": String("moving_from_feature_A_to_feature_B"), + "path": List([ + String("function_feature_changed"), + String("moving_from_feature_A_to_feature_B"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/function_missing/": [ + { + "name": String("will_be_removed_fn"), + "path": List([ + String("function_missing"), + String("will_be_removed_fn"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("pub_use_removed_fn"), + "path": List([ + String("function_missing"), + String("pub_use_removed_fn"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/function_must_use_added.snap b/test_outputs/query_execution/function_must_use_added.snap new file mode 100644 index 00000000..f4b67d40 --- /dev/null +++ b/test_outputs/query_execution/function_must_use_added.snap @@ -0,0 +1,30 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/function_must_use_added/": [ + { + "name": String("FunctionToMustUseFunction"), + "new_attr": String("#[must_use]"), + "path": List([ + String("function_must_use_added"), + String("FunctionToMustUseFunction"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("FunctionToMustUseMessageFunction"), + "new_attr": String("#[must_use = \"Foo\"]"), + "path": List([ + String("function_must_use_added"), + String("FunctionToMustUseMessageFunction"), + ]), + "span_begin_line": Uint64(8), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/function_now_doc_hidden.snap b/test_outputs/query_execution/function_now_doc_hidden.snap new file mode 100644 index 00000000..d01f8948 --- /dev/null +++ b/test_outputs/query_execution/function_now_doc_hidden.snap @@ -0,0 +1,47 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/function_now_doc_hidden/": [ + { + "function_name": String("my_function"), + "path": List([ + String("function_now_doc_hidden"), + String("MyPublicMod"), + String("my_function"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/lib.rs"), + }, + { + "function_name": String("my_function"), + "path": List([ + String("function_now_doc_hidden"), + String("MyNestedPublicMod"), + String("PublicInnerMod"), + String("my_function"), + ]), + "span_begin_line": Uint64(38), + "span_filename": String("src/lib.rs"), + }, + { + "function_name": String("my_function"), + "path": List([ + String("function_now_doc_hidden"), + String("my_function"), + ]), + "span_begin_line": Uint64(47), + "span_filename": String("src/lib.rs"), + }, + { + "function_name": String("my_function_with_types"), + "path": List([ + String("function_now_doc_hidden"), + String("my_function_with_types"), + ]), + "span_begin_line": Uint64(50), + "span_filename": String("src/lib.rs"), + }, + ], +} diff --git a/test_outputs/query_execution/function_parameter_count_changed.snap b/test_outputs/query_execution/function_parameter_count_changed.snap new file mode 100644 index 00000000..42639ea6 --- /dev/null +++ b/test_outputs/query_execution/function_parameter_count_changed.snap @@ -0,0 +1,32 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/parameter_count_changed/": [ + { + "current_parameter_count": Uint64(2), + "name": String("function_with_a_parameter_added"), + "old_parameter_count": Uint64(1), + "path": List([ + String("parameter_count_changed"), + String("function_with_a_parameter_added"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "current_parameter_count": Uint64(0), + "name": String("function_with_parameters_removed"), + "old_parameter_count": Uint64(2), + "path": List([ + String("parameter_count_changed"), + String("function_with_parameters_removed"), + ]), + "span_begin_line": Uint64(3), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/function_unsafe_added.snap b/test_outputs/query_execution/function_unsafe_added.snap new file mode 100644 index 00000000..6d69e5e3 --- /dev/null +++ b/test_outputs/query_execution/function_unsafe_added.snap @@ -0,0 +1,18 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/function_unsafe_added/": [ + { + "name": String("add"), + "path": List([ + String("function_unsafe_added"), + String("add"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/inherent_associated_const_now_doc_hidden.snap b/test_outputs/query_execution/inherent_associated_const_now_doc_hidden.snap new file mode 100644 index 00000000..fd3b2b26 --- /dev/null +++ b/test_outputs/query_execution/inherent_associated_const_now_doc_hidden.snap @@ -0,0 +1,38 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/inherent_associated_const_now_doc_hidden/": [ + { + "associated_constant": String("DocHiddenConstantA"), + "name": String("StructA"), + "path": List([ + String("inherent_associated_const_now_doc_hidden"), + String("StructA"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/lib.rs"), + }, + { + "associated_constant": String("DocHiddenConstantA"), + "name": String("EnumA"), + "path": List([ + String("inherent_associated_const_now_doc_hidden"), + String("EnumA"), + ]), + "span_begin_line": Uint64(27), + "span_filename": String("src/lib.rs"), + }, + { + "associated_constant": String("DocHiddenConstantA"), + "name": String("UnionA"), + "path": List([ + String("inherent_associated_const_now_doc_hidden"), + String("UnionA"), + ]), + "span_begin_line": Uint64(39), + "span_filename": String("src/lib.rs"), + }, + ], +} diff --git a/test_outputs/query_execution/inherent_associated_pub_const_missing.snap b/test_outputs/query_execution/inherent_associated_pub_const_missing.snap new file mode 100644 index 00000000..33e86e2c --- /dev/null +++ b/test_outputs/query_execution/inherent_associated_pub_const_missing.snap @@ -0,0 +1,52 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/inherent_associated_pub_const_missing/": [ + { + "associated_constant": String("PublicConstantA"), + "name": String("StructA"), + "path": List([ + String("inherent_associated_pub_const_missing"), + String("StructA"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "associated_constant": String("PublicConstantRenameA"), + "name": String("StructA"), + "path": List([ + String("inherent_associated_pub_const_missing"), + String("StructA"), + ]), + "span_begin_line": Uint64(12), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "associated_constant": String("PublicConstantI"), + "name": String("StructE"), + "path": List([ + String("inherent_associated_pub_const_missing"), + String("StructE"), + ]), + "span_begin_line": Uint64(52), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "associated_constant": String("N_C"), + "name": String("ExampleC"), + "path": List([ + String("inherent_associated_pub_const_missing"), + String("ExampleC"), + ]), + "span_begin_line": Uint64(118), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/inherent_method_const_removed.snap b/test_outputs/query_execution/inherent_method_const_removed.snap new file mode 100644 index 00000000..fd47b2fc --- /dev/null +++ b/test_outputs/query_execution/inherent_method_const_removed.snap @@ -0,0 +1,44 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/inherent_method_const_removed/": [ + { + "method_name": String("associated_fn"), + "method_visibility": String("public"), + "name": String("Foo"), + "non_matching_span_begin_line": List([ + Uint64(4), + ]), + "non_matching_span_filename": List([ + String("src/lib.rs"), + ]), + "path": List([ + String("inherent_method_const_removed"), + String("Foo"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("method"), + "method_visibility": String("public"), + "name": String("Foo"), + "non_matching_span_begin_line": List([ + Uint64(8), + ]), + "non_matching_span_filename": List([ + String("src/lib.rs"), + ]), + "path": List([ + String("inherent_method_const_removed"), + String("Foo"), + ]), + "span_begin_line": Uint64(8), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/inherent_method_missing.snap b/test_outputs/query_execution/inherent_method_missing.snap new file mode 100644 index 00000000..1b6446c3 --- /dev/null +++ b/test_outputs/query_execution/inherent_method_missing.snap @@ -0,0 +1,146 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/inherent_method_const_removed/": [ + { + "method_name": String("associated_fn_removed"), + "method_visibility": String("public"), + "name": String("Foo"), + "path": List([ + String("inherent_method_const_removed"), + String("Foo"), + ]), + "span_begin_line": Uint64(12), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("method_removed"), + "method_visibility": String("public"), + "name": String("Foo"), + "path": List([ + String("inherent_method_const_removed"), + String("Foo"), + ]), + "span_begin_line": Uint64(14), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/inherent_method_missing/": [ + { + "method_name": String("will_be_removed_associated_fn"), + "method_visibility": String("public"), + "name": String("Foo"), + "path": List([ + String("inherent_method_missing"), + String("Foo"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("will_be_removed_method"), + "method_visibility": String("public"), + "name": String("Foo"), + "path": List([ + String("inherent_method_missing"), + String("Foo"), + ]), + "span_begin_line": Uint64(9), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("next"), + "method_visibility": String("public"), + "name": String("SecretlyIter"), + "path": List([ + String("inherent_method_missing"), + String("SecretlyIter"), + ]), + "span_begin_line": Uint64(41), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/inherent_method_unsafe_added/": [ + { + "method_name": String("associated_fn_removed"), + "method_visibility": String("public"), + "name": String("Foo"), + "path": List([ + String("inherent_method_unsafe_added"), + String("Foo"), + ]), + "span_begin_line": Uint64(12), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("method_removed"), + "method_visibility": String("public"), + "name": String("Foo"), + "path": List([ + String("inherent_method_unsafe_added"), + String("Foo"), + ]), + "span_begin_line": Uint64(14), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/struct_becomes_enum/": [ + { + "method_name": String("will_be_removed_associated_fn"), + "method_visibility": String("public"), + "name": String("TupleToEnum"), + "path": List([ + String("struct_becomes_enum"), + String("TupleToEnum"), + ]), + "span_begin_line": Uint64(53), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("will_be_removed_method"), + "method_visibility": String("public"), + "name": String("TupleToEnum"), + "path": List([ + String("struct_becomes_enum"), + String("TupleToEnum"), + ]), + "span_begin_line": Uint64(55), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("will_be_removed_associated_fn"), + "method_visibility": String("public"), + "name": String("StructToEnum"), + "path": List([ + String("struct_becomes_enum"), + String("StructToEnum"), + ]), + "span_begin_line": Uint64(72), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("will_be_removed_method"), + "method_visibility": String("public"), + "name": String("StructToEnum"), + "path": List([ + String("struct_becomes_enum"), + String("StructToEnum"), + ]), + "span_begin_line": Uint64(74), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/inherent_method_must_use_added.snap b/test_outputs/query_execution/inherent_method_must_use_added.snap new file mode 100644 index 00000000..69556dd7 --- /dev/null +++ b/test_outputs/query_execution/inherent_method_must_use_added.snap @@ -0,0 +1,188 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/inherent_method_must_use_added/": [ + { + "method_name": String("AssociatedFnToMustUse"), + "method_visibility": String("public"), + "name": String("EnumWithMustUseMethods"), + "new_attr": String("#[must_use]"), + "owner_type": String("Enum"), + "path": List([ + String("inherent_method_must_use_added"), + String("enum_inherent_method_must_use_added"), + String("EnumWithMustUseMethods"), + ]), + "span_begin_line": Uint64(9), + "span_filename": String("src/enum_inherent_method_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("AssociatedFnToMustUseMessage"), + "method_visibility": String("public"), + "name": String("EnumWithMustUseMethods"), + "new_attr": String("#[must_use = \"Foo\"]"), + "owner_type": String("Enum"), + "path": List([ + String("inherent_method_must_use_added"), + String("enum_inherent_method_must_use_added"), + String("EnumWithMustUseMethods"), + ]), + "span_begin_line": Uint64(12), + "span_filename": String("src/enum_inherent_method_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MethodToMustUseMethod"), + "method_visibility": String("public"), + "name": String("EnumWithMustUseMethods"), + "new_attr": String("#[must_use]"), + "owner_type": String("Enum"), + "path": List([ + String("inherent_method_must_use_added"), + String("enum_inherent_method_must_use_added"), + String("EnumWithMustUseMethods"), + ]), + "span_begin_line": Uint64(15), + "span_filename": String("src/enum_inherent_method_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MethodToMustUseMessageMethod"), + "method_visibility": String("public"), + "name": String("EnumWithMustUseMethods"), + "new_attr": String("#[must_use = \"Foo\"]"), + "owner_type": String("Enum"), + "path": List([ + String("inherent_method_must_use_added"), + String("enum_inherent_method_must_use_added"), + String("EnumWithMustUseMethods"), + ]), + "span_begin_line": Uint64(18), + "span_filename": String("src/enum_inherent_method_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("AssociatedFnToMustUse"), + "method_visibility": String("public"), + "name": String("StructWithMustUseMethods"), + "new_attr": String("#[must_use]"), + "owner_type": String("Struct"), + "path": List([ + String("inherent_method_must_use_added"), + String("struct_inherent_method_must_use_added"), + String("StructWithMustUseMethods"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/struct_inherent_method_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("AssociatedFnToMustUseMessage"), + "method_visibility": String("public"), + "name": String("StructWithMustUseMethods"), + "new_attr": String("#[must_use = \"Foo\"]"), + "owner_type": String("Struct"), + "path": List([ + String("inherent_method_must_use_added"), + String("struct_inherent_method_must_use_added"), + String("StructWithMustUseMethods"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/struct_inherent_method_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MethodToMustUseMethod"), + "method_visibility": String("public"), + "name": String("StructWithMustUseMethods"), + "new_attr": String("#[must_use]"), + "owner_type": String("Struct"), + "path": List([ + String("inherent_method_must_use_added"), + String("struct_inherent_method_must_use_added"), + String("StructWithMustUseMethods"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/struct_inherent_method_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MethodToMustUseMessageMethod"), + "method_visibility": String("public"), + "name": String("StructWithMustUseMethods"), + "new_attr": String("#[must_use = \"Foo\"]"), + "owner_type": String("Struct"), + "path": List([ + String("inherent_method_must_use_added"), + String("struct_inherent_method_must_use_added"), + String("StructWithMustUseMethods"), + ]), + "span_begin_line": Uint64(16), + "span_filename": String("src/struct_inherent_method_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("AssociatedFnToMustUse"), + "method_visibility": String("public"), + "name": String("UnionWithMustUseMethods"), + "new_attr": String("#[must_use]"), + "owner_type": String("Union"), + "path": List([ + String("inherent_method_must_use_added"), + String("union_inherent_method_must_use_added"), + String("UnionWithMustUseMethods"), + ]), + "span_begin_line": Uint64(9), + "span_filename": String("src/union_inherent_method_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("AssociatedFnToMustUseMessage"), + "method_visibility": String("public"), + "name": String("UnionWithMustUseMethods"), + "new_attr": String("#[must_use = \"Foo\"]"), + "owner_type": String("Union"), + "path": List([ + String("inherent_method_must_use_added"), + String("union_inherent_method_must_use_added"), + String("UnionWithMustUseMethods"), + ]), + "span_begin_line": Uint64(12), + "span_filename": String("src/union_inherent_method_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MethodToMustUseMethod"), + "method_visibility": String("public"), + "name": String("UnionWithMustUseMethods"), + "new_attr": String("#[must_use]"), + "owner_type": String("Union"), + "path": List([ + String("inherent_method_must_use_added"), + String("union_inherent_method_must_use_added"), + String("UnionWithMustUseMethods"), + ]), + "span_begin_line": Uint64(15), + "span_filename": String("src/union_inherent_method_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MethodToMustUseMessageMethod"), + "method_visibility": String("public"), + "name": String("UnionWithMustUseMethods"), + "new_attr": String("#[must_use = \"Foo\"]"), + "owner_type": String("Union"), + "path": List([ + String("inherent_method_must_use_added"), + String("union_inherent_method_must_use_added"), + String("UnionWithMustUseMethods"), + ]), + "span_begin_line": Uint64(18), + "span_filename": String("src/union_inherent_method_must_use_added.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/inherent_method_now_doc_hidden.snap b/test_outputs/query_execution/inherent_method_now_doc_hidden.snap new file mode 100644 index 00000000..84e0fff5 --- /dev/null +++ b/test_outputs/query_execution/inherent_method_now_doc_hidden.snap @@ -0,0 +1,86 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/inherent_method_now_doc_hidden/": [ + { + "method_name": String("associated_fn"), + "method_visibility": String("public"), + "name": String("Foo"), + "path": List([ + String("inherent_method_now_doc_hidden"), + String("enum_inherent_method_now_doc_hidden"), + String("Foo"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/enum_inherent_method_now_doc_hidden.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("method"), + "method_visibility": String("public"), + "name": String("Foo"), + "path": List([ + String("inherent_method_now_doc_hidden"), + String("enum_inherent_method_now_doc_hidden"), + String("Foo"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/enum_inherent_method_now_doc_hidden.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("associated_fn"), + "method_visibility": String("public"), + "name": String("Foo"), + "path": List([ + String("inherent_method_now_doc_hidden"), + String("struct_inherent_method_now_doc_hidden"), + String("Foo"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/struct_inherent_method_now_doc_hidden.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("method"), + "method_visibility": String("public"), + "name": String("Foo"), + "path": List([ + String("inherent_method_now_doc_hidden"), + String("struct_inherent_method_now_doc_hidden"), + String("Foo"), + ]), + "span_begin_line": Uint64(8), + "span_filename": String("src/struct_inherent_method_now_doc_hidden.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("associated_fn"), + "method_visibility": String("public"), + "name": String("Foo"), + "path": List([ + String("inherent_method_now_doc_hidden"), + String("union_inherent_method_now_doc_hidden"), + String("Foo"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/union_inherent_method_now_doc_hidden.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("method"), + "method_visibility": String("public"), + "name": String("Foo"), + "path": List([ + String("inherent_method_now_doc_hidden"), + String("union_inherent_method_now_doc_hidden"), + String("Foo"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/union_inherent_method_now_doc_hidden.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/inherent_method_unsafe_added.snap b/test_outputs/query_execution/inherent_method_unsafe_added.snap new file mode 100644 index 00000000..76f1ca84 --- /dev/null +++ b/test_outputs/query_execution/inherent_method_unsafe_added.snap @@ -0,0 +1,44 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/inherent_method_unsafe_added/": [ + { + "method_name": String("associated_fn"), + "method_visibility": String("public"), + "name": String("Foo"), + "non_matching_span_begin_line": List([ + Uint64(4), + ]), + "non_matching_span_filename": List([ + String("src/lib.rs"), + ]), + "path": List([ + String("inherent_method_unsafe_added"), + String("Foo"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("method"), + "method_visibility": String("public"), + "name": String("Foo"), + "non_matching_span_begin_line": List([ + Uint64(8), + ]), + "non_matching_span_filename": List([ + String("src/lib.rs"), + ]), + "path": List([ + String("inherent_method_unsafe_added"), + String("Foo"), + ]), + "span_begin_line": Uint64(8), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/method_parameter_count_changed.snap b/test_outputs/query_execution/method_parameter_count_changed.snap new file mode 100644 index 00000000..e661037f --- /dev/null +++ b/test_outputs/query_execution/method_parameter_count_changed.snap @@ -0,0 +1,118 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/parameter_count_changed/": [ + { + "current_parameter_count": List([ + Uint64(1), + ]), + "method_name": String("associated_function_with_a_parameter_added"), + "method_visibility": String("public"), + "name": String("StructWithMethods"), + "non_matching_span_begin_line": List([ + Uint64(10), + ]), + "non_matching_span_filename": List([ + String("src/lib.rs"), + ]), + "old_parameter_count": Uint64(0), + "path": List([ + String("parameter_count_changed"), + String("StructWithMethods"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "current_parameter_count": List([ + Uint64(2), + ]), + "method_name": String("method_with_a_parameter_added"), + "method_visibility": String("public"), + "name": String("StructWithMethods"), + "non_matching_span_begin_line": List([ + Uint64(12), + ]), + "non_matching_span_filename": List([ + String("src/lib.rs"), + ]), + "old_parameter_count": Uint64(1), + "path": List([ + String("parameter_count_changed"), + String("StructWithMethods"), + ]), + "span_begin_line": Uint64(12), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "current_parameter_count": List([ + Uint64(3), + ]), + "method_name": String("method_with_a_parameter_removed"), + "method_visibility": String("public"), + "name": String("StructWithMethods"), + "non_matching_span_begin_line": List([ + Uint64(14), + ]), + "non_matching_span_filename": List([ + String("src/lib.rs"), + ]), + "old_parameter_count": Uint64(4), + "path": List([ + String("parameter_count_changed"), + String("StructWithMethods"), + ]), + "span_begin_line": Uint64(14), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "current_parameter_count": List([ + Uint64(3), + ]), + "method_name": String("moved_trait_provided_method"), + "method_visibility": String("public"), + "name": String("StructWithMethods"), + "non_matching_span_begin_line": List([ + Uint64(18), + ]), + "non_matching_span_filename": List([ + String("src/lib.rs"), + ]), + "old_parameter_count": Uint64(2), + "path": List([ + String("parameter_count_changed"), + String("StructWithMethods"), + ]), + "span_begin_line": Uint64(16), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "current_parameter_count": List([ + Uint64(1), + ]), + "method_name": String("moved_method"), + "method_visibility": String("public"), + "name": String("StructWithMethods"), + "non_matching_span_begin_line": List([ + Uint64(28), + ]), + "non_matching_span_filename": List([ + String("src/lib.rs"), + ]), + "old_parameter_count": Uint64(2), + "path": List([ + String("parameter_count_changed"), + String("StructWithMethods"), + ]), + "span_begin_line": Uint64(20), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/module_missing.snap b/test_outputs/query_execution/module_missing.snap new file mode 100644 index 00000000..96c0703b --- /dev/null +++ b/test_outputs/query_execution/module_missing.snap @@ -0,0 +1,53 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/module_missing/": [ + { + "name": String("will_remove"), + "path": List([ + String("module_missing"), + String("bb"), + String("will_remove"), + ]), + "span_begin_line": Uint64(8), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("will_make_private"), + "path": List([ + String("module_missing"), + String("will_make_private"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_missing/": [ + { + "name": String("my_pub_mod"), + "path": List([ + String("trait_missing"), + String("my_pub_mod"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_missing_with_major_bump/": [ + { + "name": String("my_pub_mod"), + "path": List([ + String("trait_missing_with_major_bump"), + String("my_pub_mod"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/pub_module_level_const_missing.snap b/test_outputs/query_execution/pub_module_level_const_missing.snap new file mode 100644 index 00000000..0d3866b9 --- /dev/null +++ b/test_outputs/query_execution/pub_module_level_const_missing.snap @@ -0,0 +1,196 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/pub_module_level_const_missing/": [ + { + "name": String("PUB_CONST_IN_GLOBAL_WILL_REMOVE"), + "path": List([ + String("pub_module_level_const_missing"), + String("PUB_CONST_IN_GLOBAL_WILL_REMOVE"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_GLOBAL_WILL_RENAME"), + "path": List([ + String("pub_module_level_const_missing"), + String("PUB_CONST_IN_GLOBAL_WILL_RENAME"), + ]), + "span_begin_line": Uint64(3), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_GLOBAL_WILL_BE_STATIC"), + "path": List([ + String("pub_module_level_const_missing"), + String("PUB_CONST_IN_GLOBAL_WILL_BE_STATIC"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_GLOBAL_WILL_BE_PRIVATE_CONST"), + "path": List([ + String("pub_module_level_const_missing"), + String("PUB_CONST_IN_GLOBAL_WILL_BE_PRIVATE_CONST"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_GLOBAL_WILL_BE_PRIVATE_STATIC"), + "path": List([ + String("pub_module_level_const_missing"), + String("PUB_CONST_IN_GLOBAL_WILL_BE_PRIVATE_STATIC"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_MODULE_WILL_REMOVE"), + "path": List([ + String("pub_module_level_const_missing"), + String("my_module"), + String("PUB_CONST_IN_MODULE_WILL_REMOVE"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_MODULE_WILL_RENAME"), + "path": List([ + String("pub_module_level_const_missing"), + String("my_module"), + String("PUB_CONST_IN_MODULE_WILL_RENAME"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_MODULE_WILL_BE_STATIC"), + "path": List([ + String("pub_module_level_const_missing"), + String("my_module"), + String("PUB_CONST_IN_MODULE_WILL_BE_STATIC"), + ]), + "span_begin_line": Uint64(12), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_MODULE_WILL_BE_PRIVATE_CONST"), + "path": List([ + String("pub_module_level_const_missing"), + String("my_module"), + String("PUB_CONST_IN_MODULE_WILL_BE_PRIVATE_CONST"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_MODULE_WILL_BE_PRIVATE_STATIC"), + "path": List([ + String("pub_module_level_const_missing"), + String("my_module"), + String("PUB_CONST_IN_MODULE_WILL_BE_PRIVATE_STATIC"), + ]), + "span_begin_line": Uint64(14), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_MODULE_WILL_RE_EXPORT_STATIC"), + "path": List([ + String("pub_module_level_const_missing"), + String("my_module"), + String("PUB_CONST_IN_MODULE_WILL_RE_EXPORT_STATIC"), + ]), + "span_begin_line": Uint64(16), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_NESTED_MODULE_WILL_REMOVE"), + "path": List([ + String("pub_module_level_const_missing"), + String("my_module"), + String("my_module_nested"), + String("PUB_CONST_IN_NESTED_MODULE_WILL_REMOVE"), + ]), + "span_begin_line": Uint64(20), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_NESTED_MODULE_WILL_RENAME"), + "path": List([ + String("pub_module_level_const_missing"), + String("my_module"), + String("my_module_nested"), + String("PUB_CONST_IN_NESTED_MODULE_WILL_RENAME"), + ]), + "span_begin_line": Uint64(21), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_NESTED_MODULE_WILL_BE_STATIC"), + "path": List([ + String("pub_module_level_const_missing"), + String("my_module"), + String("my_module_nested"), + String("PUB_CONST_IN_NESTED_MODULE_WILL_BE_STATIC"), + ]), + "span_begin_line": Uint64(22), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_NESTED_MODULE_WILL_BE_PRIVATE_CONST"), + "path": List([ + String("pub_module_level_const_missing"), + String("my_module"), + String("my_module_nested"), + String("PUB_CONST_IN_NESTED_MODULE_WILL_BE_PRIVATE_CONST"), + ]), + "span_begin_line": Uint64(23), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_NESTED_MODULE_WILL_BE_PRIVATE_STATIC"), + "path": List([ + String("pub_module_level_const_missing"), + String("my_module"), + String("my_module_nested"), + String("PUB_CONST_IN_NESTED_MODULE_WILL_BE_PRIVATE_STATIC"), + ]), + "span_begin_line": Uint64(24), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_CONST_IN_NESTED_MODULE_WILL_RE_EXPORT_STATIC"), + "path": List([ + String("pub_module_level_const_missing"), + String("my_module"), + String("my_module_nested"), + String("PUB_CONST_IN_NESTED_MODULE_WILL_RE_EXPORT_STATIC"), + ]), + "span_begin_line": Uint64(26), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/pub_module_level_const_now_doc_hidden.snap b/test_outputs/query_execution/pub_module_level_const_now_doc_hidden.snap new file mode 100644 index 00000000..1874d238 --- /dev/null +++ b/test_outputs/query_execution/pub_module_level_const_now_doc_hidden.snap @@ -0,0 +1,38 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/function_now_doc_hidden/": [ + { + "constant_name": String("MY_FN"), + "path": List([ + String("function_now_doc_hidden"), + String("MY_FN"), + ]), + "span_begin_line": Uint64(61), + "span_filename": String("src/lib.rs"), + }, + ], + "./test_crates/pub_module_level_const_now_doc_hidden/": [ + { + "constant_name": String("GlobalConstantB"), + "path": List([ + String("pub_module_level_const_now_doc_hidden"), + String("GlobalConstantB"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + }, + { + "constant_name": String("PublicModuleConstantB"), + "path": List([ + String("pub_module_level_const_now_doc_hidden"), + String("PublicModule"), + String("PublicModuleConstantB"), + ]), + "span_begin_line": Uint64(18), + "span_filename": String("src/lib.rs"), + }, + ], +} diff --git a/test_outputs/query_execution/pub_static_missing.snap b/test_outputs/query_execution/pub_static_missing.snap new file mode 100644 index 00000000..b8e60c0e --- /dev/null +++ b/test_outputs/query_execution/pub_static_missing.snap @@ -0,0 +1,152 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/pub_static_missing/": [ + { + "name": String("PUB_STATIC_IN_GLOBAL_WILL_REMOVE"), + "path": List([ + String("pub_static_missing"), + String("PUB_STATIC_IN_GLOBAL_WILL_REMOVE"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_STATIC_IN_GLOBAL_WILL_RENAME"), + "path": List([ + String("pub_static_missing"), + String("PUB_STATIC_IN_GLOBAL_WILL_RENAME"), + ]), + "span_begin_line": Uint64(3), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_STATIC_IN_GLOBAL_WILL_BE_PRIVATE_CONST"), + "path": List([ + String("pub_static_missing"), + String("PUB_STATIC_IN_GLOBAL_WILL_BE_PRIVATE_CONST"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_STATIC_IN_GLOBAL_WILL_BE_PRIVATE_STATIC"), + "path": List([ + String("pub_static_missing"), + String("PUB_STATIC_IN_GLOBAL_WILL_BE_PRIVATE_STATIC"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_STATIC_IN_MODULE_WILL_REMOVE"), + "path": List([ + String("pub_static_missing"), + String("my_module"), + String("PUB_STATIC_IN_MODULE_WILL_REMOVE"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_STATIC_IN_MODULE_WILL_RENAME"), + "path": List([ + String("pub_static_missing"), + String("my_module"), + String("PUB_STATIC_IN_MODULE_WILL_RENAME"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_STATIC_IN_MODULE_WILL_BE_PRIVATE_CONST"), + "path": List([ + String("pub_static_missing"), + String("my_module"), + String("PUB_STATIC_IN_MODULE_WILL_BE_PRIVATE_CONST"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_STATIC_IN_MODULE_WILL_BE_PRIVATE_STATIC"), + "path": List([ + String("pub_static_missing"), + String("my_module"), + String("PUB_STATIC_IN_MODULE_WILL_BE_PRIVATE_STATIC"), + ]), + "span_begin_line": Uint64(14), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_STATIC_IN_NESTED_MODULE_WILL_REMOVE"), + "path": List([ + String("pub_static_missing"), + String("my_module"), + String("my_module_nested"), + String("PUB_STATIC_IN_NESTED_MODULE_WILL_REMOVE"), + ]), + "span_begin_line": Uint64(20), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_STATIC_IN_NESTED_MODULE_WILL_RENAME"), + "path": List([ + String("pub_static_missing"), + String("my_module"), + String("my_module_nested"), + String("PUB_STATIC_IN_NESTED_MODULE_WILL_RENAME"), + ]), + "span_begin_line": Uint64(21), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_STATIC_IN_NESTED_MODULE_WILL_BE_PRIVATE_CONST"), + "path": List([ + String("pub_static_missing"), + String("my_module"), + String("my_module_nested"), + String("PUB_STATIC_IN_NESTED_MODULE_WILL_BE_PRIVATE_CONST"), + ]), + "span_begin_line": Uint64(23), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PUB_STATIC_IN_NESTED_MODULE_WILL_BE_PRIVATE_STATIC"), + "path": List([ + String("pub_static_missing"), + String("my_module"), + String("my_module_nested"), + String("PUB_STATIC_IN_NESTED_MODULE_WILL_BE_PRIVATE_STATIC"), + ]), + "span_begin_line": Uint64(24), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/pub_static_mut_now_immutable/": [ + { + "name": String("STATIC_RENAME"), + "path": List([ + String("pub_static_mut_now_immutable"), + String("STATIC_RENAME"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/pub_static_mut_now_immutable.snap b/test_outputs/query_execution/pub_static_mut_now_immutable.snap new file mode 100644 index 00000000..b9b4da21 --- /dev/null +++ b/test_outputs/query_execution/pub_static_mut_now_immutable.snap @@ -0,0 +1,17 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/pub_static_mut_now_immutable/": [ + { + "path": List([ + String("pub_static_mut_now_immutable"), + String("STATIC_A"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "static_name": String("STATIC_A"), + }, + ], +} diff --git a/test_outputs/query_execution/pub_static_now_doc_hidden.snap b/test_outputs/query_execution/pub_static_now_doc_hidden.snap new file mode 100644 index 00000000..cf95c095 --- /dev/null +++ b/test_outputs/query_execution/pub_static_now_doc_hidden.snap @@ -0,0 +1,38 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/pub_static_mut_now_immutable/": [ + { + "path": List([ + String("pub_static_mut_now_immutable"), + String("DOC_HIDDEN_STATIC_B"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/lib.rs"), + "static_name": String("DOC_HIDDEN_STATIC_B"), + }, + ], + "./test_crates/pub_static_now_doc_hidden/": [ + { + "path": List([ + String("pub_static_now_doc_hidden"), + String("GlobalStaticB"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + "static_name": String("GlobalStaticB"), + }, + { + "path": List([ + String("pub_static_now_doc_hidden"), + String("PublicModule"), + String("PublicModuleStaticB"), + ]), + "span_begin_line": Uint64(18), + "span_filename": String("src/lib.rs"), + "static_name": String("PublicModuleStaticB"), + }, + ], +} diff --git a/test_outputs/query_execution/repr_c_removed.snap b/test_outputs/query_execution/repr_c_removed.snap new file mode 100644 index 00000000..2ffd4cc2 --- /dev/null +++ b/test_outputs/query_execution/repr_c_removed.snap @@ -0,0 +1,164 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/repr_c_removed/": [ + { + "name": String("CEnumToEnum"), + "old_attr": String("#[repr(C)]"), + "owner_type": String("Enum"), + "path": List([ + String("repr_c_removed"), + String("CEnumToEnum"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("U8CEnumToU8Enum"), + "old_attr": String("#[repr(u8, C)]"), + "owner_type": String("Enum"), + "path": List([ + String("repr_c_removed"), + String("U8CEnumToU8Enum"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("SeparateU8CEnumToU8Enum"), + "old_attr": String("#[repr(C)]"), + "owner_type": String("Enum"), + "path": List([ + String("repr_c_removed"), + String("SeparateU8CEnumToU8Enum"), + ]), + "span_begin_line": Uint64(12), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("CU8EnumToU8Enum"), + "old_attr": String("#[repr(C, u8)]"), + "owner_type": String("Enum"), + "path": List([ + String("repr_c_removed"), + String("CU8EnumToU8Enum"), + ]), + "span_begin_line": Uint64(18), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("SeparateCU8EnumToU8Enum"), + "old_attr": String("#[repr(C)]"), + "owner_type": String("Enum"), + "path": List([ + String("repr_c_removed"), + String("SeparateCU8EnumToU8Enum"), + ]), + "span_begin_line": Uint64(24), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("CStructToStruct"), + "old_attr": String("#[repr(C)]"), + "owner_type": String("Struct"), + "path": List([ + String("repr_c_removed"), + String("CStructToStruct"), + ]), + "span_begin_line": Uint64(86), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("Align16CStructToAlign16Struct"), + "old_attr": String("#[repr(align(16), C)]"), + "owner_type": String("Struct"), + "path": List([ + String("repr_c_removed"), + String("Align16CStructToAlign16Struct"), + ]), + "span_begin_line": Uint64(91), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("SeparateAlign16CStructToAlign16Struct"), + "old_attr": String("#[repr(C)]"), + "owner_type": String("Struct"), + "path": List([ + String("repr_c_removed"), + String("SeparateAlign16CStructToAlign16Struct"), + ]), + "span_begin_line": Uint64(96), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("CAlign16StructToAlign16Struct"), + "old_attr": String("#[repr(C, align(16))]"), + "owner_type": String("Struct"), + "path": List([ + String("repr_c_removed"), + String("CAlign16StructToAlign16Struct"), + ]), + "span_begin_line": Uint64(101), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("CUnionToUnion"), + "old_attr": String("#[repr(C)]"), + "owner_type": String("Union"), + "path": List([ + String("repr_c_removed"), + String("CUnionToUnion"), + ]), + "span_begin_line": Uint64(105), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("Align16CUnionToAlign16Union"), + "old_attr": String("#[repr(align(16), C)]"), + "owner_type": String("Union"), + "path": List([ + String("repr_c_removed"), + String("Align16CUnionToAlign16Union"), + ]), + "span_begin_line": Uint64(110), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("SeparateAlign16CUnionToAlign16Union"), + "old_attr": String("#[repr(C)]"), + "owner_type": String("Union"), + "path": List([ + String("repr_c_removed"), + String("SeparateAlign16CUnionToAlign16Union"), + ]), + "span_begin_line": Uint64(115), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("CAlign16UnionToAlign16Union"), + "old_attr": String("#[repr(C, align(16))]"), + "owner_type": String("Union"), + "path": List([ + String("repr_c_removed"), + String("CAlign16UnionToAlign16Union"), + ]), + "span_begin_line": Uint64(120), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/repr_packed_added.snap b/test_outputs/query_execution/repr_packed_added.snap new file mode 100644 index 00000000..244ccc1e --- /dev/null +++ b/test_outputs/query_execution/repr_packed_added.snap @@ -0,0 +1,28 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/repr_packed_added_removed/": [ + { + "name": String("StructBecomesPacked"), + "path": List([ + String("repr_packed_added_removed"), + String("StructBecomesPacked"), + ]), + "span_begin_line": Uint64(3), + "span_filename": String("src/lib.rs"), + "type": String("Struct"), + }, + { + "name": String("UnionBecomesPacked"), + "path": List([ + String("repr_packed_added_removed"), + String("UnionBecomesPacked"), + ]), + "span_begin_line": Uint64(31), + "span_filename": String("src/lib.rs"), + "type": String("Union"), + }, + ], +} diff --git a/test_outputs/query_execution/repr_packed_removed.snap b/test_outputs/query_execution/repr_packed_removed.snap new file mode 100644 index 00000000..f2011669 --- /dev/null +++ b/test_outputs/query_execution/repr_packed_removed.snap @@ -0,0 +1,28 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/repr_packed_added_removed/": [ + { + "name": String("StructBecomesUnpacked"), + "path": List([ + String("repr_packed_added_removed"), + String("StructBecomesUnpacked"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "type": String("Struct"), + }, + { + "name": String("UnionBecomesUnpacked"), + "path": List([ + String("repr_packed_added_removed"), + String("UnionBecomesUnpacked"), + ]), + "span_begin_line": Uint64(36), + "span_filename": String("src/lib.rs"), + "type": String("Union"), + }, + ], +} diff --git a/test_outputs/query_execution/sized_impl_removed.snap b/test_outputs/query_execution/sized_impl_removed.snap new file mode 100644 index 00000000..bead90df --- /dev/null +++ b/test_outputs/query_execution/sized_impl_removed.snap @@ -0,0 +1,18 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/sized_impl_removed/": [ + { + "name": String("SizedStruct"), + "path": List([ + String("sized_impl_removed"), + String("SizedStruct"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/struct_marked_non_exhaustive.snap b/test_outputs/query_execution/struct_marked_non_exhaustive.snap new file mode 100644 index 00000000..b727145a --- /dev/null +++ b/test_outputs/query_execution/struct_marked_non_exhaustive.snap @@ -0,0 +1,54 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/non_exhaustive/": [ + { + "name": String("UnitStruct"), + "path": List([ + String("non_exhaustive"), + String("UnitStruct"), + ]), + "span_begin_line": Uint64(12), + "span_filename": String("src/lib.rs"), + "struct_type": String("unit"), + "visibility_limit": String("public"), + }, + { + "name": String("TupleStruct"), + "path": List([ + String("non_exhaustive"), + String("TupleStruct"), + ]), + "span_begin_line": Uint64(15), + "span_filename": String("src/lib.rs"), + "struct_type": String("tuple"), + "visibility_limit": String("public"), + }, + { + "name": String("ExternallyConstructibleStruct"), + "path": List([ + String("non_exhaustive"), + String("ExternallyConstructibleStruct"), + ]), + "span_begin_line": Uint64(18), + "span_filename": String("src/lib.rs"), + "struct_type": String("plain"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/tuple_struct_to_plain_struct/": [ + { + "name": String("TupleToNonExhaustivePlainStruct"), + "path": List([ + String("tuple_struct_to_plain_struct"), + String("TupleToNonExhaustivePlainStruct"), + ]), + "span_begin_line": Uint64(41), + "span_filename": String("src/lib.rs"), + "struct_type": String("plain"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/struct_missing.snap b/test_outputs/query_execution/struct_missing.snap new file mode 100644 index 00000000..067854c8 --- /dev/null +++ b/test_outputs/query_execution/struct_missing.snap @@ -0,0 +1,139 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/move_item_and_reexport/": [ + { + "name": String("NonEquivalentReorderedGenerics"), + "path": List([ + String("move_item_and_reexport"), + String("NonEquivalentReorderedGenerics"), + ]), + "span_begin_line": Uint64(38), + "span_filename": String("src/lib.rs"), + "struct_type": String("plain"), + "visibility_limit": String("public"), + }, + { + "name": String("NonEquivalentRemovedLifetime"), + "path": List([ + String("move_item_and_reexport"), + String("NonEquivalentRemovedLifetime"), + ]), + "span_begin_line": Uint64(42), + "span_filename": String("src/lib.rs"), + "struct_type": String("plain"), + "visibility_limit": String("public"), + }, + { + "name": String("NonEquivalentRemovedConst"), + "path": List([ + String("move_item_and_reexport"), + String("NonEquivalentRemovedConst"), + ]), + "span_begin_line": Uint64(46), + "span_filename": String("src/lib.rs"), + "struct_type": String("plain"), + "visibility_limit": String("public"), + }, + { + "name": String("NonEquivalentRemovedType"), + "path": List([ + String("move_item_and_reexport"), + String("NonEquivalentRemovedType"), + ]), + "span_begin_line": Uint64(50), + "span_filename": String("src/lib.rs"), + "struct_type": String("plain"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/repr_packed_added_removed/": [ + { + "name": String("StructBecomesPackedAndPrivate"), + "path": List([ + String("repr_packed_added_removed"), + String("StructBecomesPackedAndPrivate"), + ]), + "span_begin_line": Uint64(9), + "span_filename": String("src/lib.rs"), + "struct_type": String("unit"), + "visibility_limit": String("public"), + }, + { + "name": String("StructBecomesUnpackedAndPrivate"), + "path": List([ + String("repr_packed_added_removed"), + String("StructBecomesUnpackedAndPrivate"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/lib.rs"), + "struct_type": String("unit"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/struct_missing/": [ + { + "name": String("WillBeRemovedStruct"), + "path": List([ + String("struct_missing"), + String("WillBeRemovedStruct"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "struct_type": String("unit"), + "visibility_limit": String("public"), + }, + { + "name": String("PubUseRemovedStruct"), + "path": List([ + String("struct_missing"), + String("PubUseRemovedStruct"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + "struct_type": String("unit"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/struct_now_doc_hidden/": [ + { + "name": String("PublicStructThatGoesPrivate"), + "path": List([ + String("struct_now_doc_hidden"), + String("PublicStructThatGoesPrivate"), + ]), + "span_begin_line": Uint64(34), + "span_filename": String("src/lib.rs"), + "struct_type": String("unit"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/struct_pub_field_missing/": [ + { + "name": String("StructRemoved"), + "path": List([ + String("struct_pub_field_missing"), + String("StructRemoved"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + "struct_type": String("plain"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/switch_to_reexport_as_underscore/": [ + { + "name": String("Struct"), + "path": List([ + String("switch_to_reexport_as_underscore"), + String("Struct"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + "struct_type": String("plain"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/struct_must_use_added.snap b/test_outputs/query_execution/struct_must_use_added.snap new file mode 100644 index 00000000..107b988e --- /dev/null +++ b/test_outputs/query_execution/struct_must_use_added.snap @@ -0,0 +1,30 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/struct_must_use_added/": [ + { + "name": String("StructToMustUseStruct"), + "new_attr": String("#[must_use]"), + "path": List([ + String("struct_must_use_added"), + String("StructToMustUseStruct"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("StructToMustUseMessageStruct"), + "new_attr": String("#[must_use = \"Foo\"]"), + "path": List([ + String("struct_must_use_added"), + String("StructToMustUseMessageStruct"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/struct_now_doc_hidden.snap b/test_outputs/query_execution/struct_now_doc_hidden.snap new file mode 100644 index 00000000..61223ca3 --- /dev/null +++ b/test_outputs/query_execution/struct_now_doc_hidden.snap @@ -0,0 +1,101 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/inherent_associated_pub_const_missing/": [ + { + "path": List([ + String("inherent_associated_pub_const_missing"), + String("StructF"), + ]), + "span_begin_line": Uint64(41), + "span_filename": String("src/lib.rs"), + "struct_name": String("StructF"), + }, + ], + "./test_crates/inherent_method_now_doc_hidden/": [ + { + "path": List([ + String("inherent_method_now_doc_hidden"), + String("struct_and_inherent_method_now_doc_hidden"), + String("Foo"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/struct_and_inherent_method_now_doc_hidden.rs"), + "struct_name": String("Foo"), + }, + ], + "./test_crates/struct_now_doc_hidden/": [ + { + "path": List([ + String("struct_now_doc_hidden"), + String("MyPublicMod"), + String("MyStruct"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/lib.rs"), + "struct_name": String("MyStruct"), + }, + { + "path": List([ + String("struct_now_doc_hidden"), + String("MyNestedPublicMod"), + String("PublicInnerMod"), + String("MyStruct"), + ]), + "span_begin_line": Uint64(38), + "span_filename": String("src/lib.rs"), + "struct_name": String("MyStruct"), + }, + { + "path": List([ + String("struct_now_doc_hidden"), + String("Example"), + ]), + "span_begin_line": Uint64(47), + "span_filename": String("src/lib.rs"), + "struct_name": String("Example"), + }, + ], + "./test_crates/struct_pub_field_now_doc_hidden/": [ + { + "path": List([ + String("struct_pub_field_now_doc_hidden"), + String("BothBecomeHidden"), + ]), + "span_begin_line": Uint64(15), + "span_filename": String("src/lib.rs"), + "struct_name": String("BothBecomeHidden"), + }, + ], + "./test_crates/type_hidden_from_public_api/": [ + { + "path": List([ + String("type_hidden_from_public_api"), + String("ExamplePlainStruct"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "struct_name": String("ExamplePlainStruct"), + }, + { + "path": List([ + String("type_hidden_from_public_api"), + String("ExampleTupleStruct"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/lib.rs"), + "struct_name": String("ExampleTupleStruct"), + }, + { + "path": List([ + String("type_hidden_from_public_api"), + String("ExampleUnitStruct"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/lib.rs"), + "struct_name": String("ExampleUnitStruct"), + }, + ], +} diff --git a/test_outputs/query_execution/struct_pub_field_missing.snap b/test_outputs/query_execution/struct_pub_field_missing.snap new file mode 100644 index 00000000..ffa84418 --- /dev/null +++ b/test_outputs/query_execution/struct_pub_field_missing.snap @@ -0,0 +1,19 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/struct_pub_field_missing/": [ + { + "field_name": String("bar"), + "path": List([ + String("struct_pub_field_missing"), + String("FieldWillBeRemoved"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "struct_name": String("FieldWillBeRemoved"), + "struct_type": String("plain"), + }, + ], +} diff --git a/test_outputs/query_execution/struct_pub_field_now_doc_hidden.snap b/test_outputs/query_execution/struct_pub_field_now_doc_hidden.snap new file mode 100644 index 00000000..feb78f38 --- /dev/null +++ b/test_outputs/query_execution/struct_pub_field_now_doc_hidden.snap @@ -0,0 +1,50 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/struct_now_doc_hidden/": [ + { + "field_name": String("my_field"), + "path": List([ + String("struct_now_doc_hidden"), + String("PublicStructHiddenField"), + ]), + "span_begin_line": Uint64(49), + "span_filename": String("src/lib.rs"), + "struct_name": String("PublicStructHiddenField"), + }, + ], + "./test_crates/struct_pub_field_now_doc_hidden/": [ + { + "field_name": String("field"), + "path": List([ + String("struct_pub_field_now_doc_hidden"), + String("Plain"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "struct_name": String("Plain"), + }, + { + "field_name": String("0"), + "path": List([ + String("struct_pub_field_now_doc_hidden"), + String("Tuple"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "struct_name": String("Tuple"), + }, + { + "field_name": String("field"), + "path": List([ + String("struct_pub_field_now_doc_hidden"), + String("BothBecomeHidden"), + ]), + "span_begin_line": Uint64(15), + "span_filename": String("src/lib.rs"), + "struct_name": String("BothBecomeHidden"), + }, + ], +} diff --git a/test_outputs/query_execution/struct_repr_transparent_removed.snap b/test_outputs/query_execution/struct_repr_transparent_removed.snap new file mode 100644 index 00000000..8b70eed5 --- /dev/null +++ b/test_outputs/query_execution/struct_repr_transparent_removed.snap @@ -0,0 +1,148 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/struct_repr_transparent_removed/": [ + { + "name": String("Foo"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("struct_repr_transparent_removed"), + String("Foo"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "transparent_field_name": List([ + String("bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("Bar"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("struct_repr_transparent_removed"), + String("Bar"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "transparent_field_name": List([ + String("0"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("WithZeroSizedData"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("struct_repr_transparent_removed"), + String("WithZeroSizedData"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/lib.rs"), + "transparent_field_name": List([ + String("bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("TupleWithZeroSizedData"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("struct_repr_transparent_removed"), + String("TupleWithZeroSizedData"), + ]), + "span_begin_line": Uint64(12), + "span_filename": String("src/lib.rs"), + "transparent_field_name": List([ + String("0"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("WithPubZeroSizedData"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("struct_repr_transparent_removed"), + String("WithPubZeroSizedData"), + ]), + "span_begin_line": Uint64(14), + "span_filename": String("src/lib.rs"), + "transparent_field_name": List([ + String("bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("WithSpecificZeroSizedData"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("struct_repr_transparent_removed"), + String("WithSpecificZeroSizedData"), + ]), + "span_begin_line": Uint64(19), + "span_filename": String("src/lib.rs"), + "transparent_field_name": List([ + String("bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("WithFoo"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("struct_repr_transparent_removed"), + String("WithFoo"), + ]), + "span_begin_line": Uint64(24), + "span_filename": String("src/lib.rs"), + "transparent_field_name": List([ + String("bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("WithRef"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("struct_repr_transparent_removed"), + String("WithRef"), + ]), + "span_begin_line": Uint64(29), + "span_filename": String("src/lib.rs"), + "transparent_field_name": List([ + String("bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("WithTuple"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("struct_repr_transparent_removed"), + String("WithTuple"), + ]), + "span_begin_line": Uint64(34), + "span_filename": String("src/lib.rs"), + "transparent_field_name": List([ + String("bar"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("WithGeneric"), + "old_attr": String("#[repr(transparent)]"), + "path": List([ + String("struct_repr_transparent_removed"), + String("WithGeneric"), + ]), + "span_begin_line": Uint64(39), + "span_filename": String("src/lib.rs"), + "transparent_field_name": List([ + String("bar"), + ]), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/struct_with_pub_fields_changed_type.snap b/test_outputs/query_execution/struct_with_pub_fields_changed_type.snap new file mode 100644 index 00000000..6497355e --- /dev/null +++ b/test_outputs/query_execution/struct_with_pub_fields_changed_type.snap @@ -0,0 +1,34 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/struct_becomes_enum/": [ + { + "current_typename": String("Enum"), + "name": String("PubFieldTuple"), + "path": List([ + String("struct_becomes_enum"), + String("PubFieldTuple"), + ]), + "span_begin_line": Uint64(14), + "span_filename": String("src/lib.rs"), + "struct_type": String("tuple"), + "struct_typename": String("Struct"), + "visibility_limit": String("public"), + }, + { + "current_typename": String("Enum"), + "name": String("PubFieldStruct"), + "path": List([ + String("struct_becomes_enum"), + String("PubFieldStruct"), + ]), + "span_begin_line": Uint64(18), + "span_filename": String("src/lib.rs"), + "struct_type": String("plain"), + "struct_typename": String("Struct"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_added_supertrait.snap b/test_outputs/query_execution/trait_added_supertrait.snap new file mode 100644 index 00000000..10921578 --- /dev/null +++ b/test_outputs/query_execution/trait_added_supertrait.snap @@ -0,0 +1,106 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_added_supertrait/": [ + { + "path": List([ + String("trait_added_supertrait"), + String("WillGainOne"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + "supertrait": String("TraitOne"), + "visibility_limit": String("public"), + }, + { + "path": List([ + String("trait_added_supertrait"), + String("WillGainAnotherOne"), + ]), + "span_begin_line": Uint64(14), + "span_filename": String("src/lib.rs"), + "supertrait": String("TraitTwo"), + "visibility_limit": String("public"), + }, + { + "path": List([ + String("trait_added_supertrait"), + String("WillGainStdOne"), + ]), + "span_begin_line": Uint64(17), + "span_filename": String("src/lib.rs"), + "supertrait": String("Sync"), + "visibility_limit": String("public"), + }, + { + "path": List([ + String("trait_added_supertrait"), + String("WillGainStdTwo"), + ]), + "span_begin_line": Uint64(18), + "span_filename": String("src/lib.rs"), + "supertrait": String("Debug"), + "visibility_limit": String("public"), + }, + { + "path": List([ + String("trait_added_supertrait"), + String("WillGainStdThree"), + ]), + "span_begin_line": Uint64(19), + "span_filename": String("src/lib.rs"), + "supertrait": String("PartialEq"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_associated_const_added/": [ + { + "path": List([ + String("trait_associated_const_added"), + String("WillGainConstWithoutDefaultAndSeal"), + ]), + "span_begin_line": Uint64(16), + "span_filename": String("src/lib.rs"), + "supertrait": String("Sealed"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_associated_type_added/": [ + { + "path": List([ + String("trait_associated_type_added"), + String("WillGainTypeWithoutDefaultAndSeal"), + ]), + "span_begin_line": Uint64(19), + "span_filename": String("src/lib.rs"), + "supertrait": String("Sealed"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_method_added/": [ + { + "path": List([ + String("trait_method_added"), + String("WillGainMethodWithoutDefaultAndSeal"), + ]), + "span_begin_line": Uint64(20), + "span_filename": String("src/lib.rs"), + "supertrait": String("Sealed"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_newly_sealed/": [ + { + "path": List([ + String("trait_newly_sealed"), + String("TraitBecomesSealed"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/lib.rs"), + "supertrait": String("Sealed"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_associated_const_added.snap b/test_outputs/query_execution/trait_associated_const_added.snap new file mode 100644 index 00000000..1d80ffa0 --- /dev/null +++ b/test_outputs/query_execution/trait_associated_const_added.snap @@ -0,0 +1,65 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/inherent_associated_pub_const_missing/": [ + { + "associated_constant": String("N_B"), + "default": Null, + "path": List([ + String("inherent_associated_pub_const_missing"), + String("TraitB"), + ]), + "span_begin_line": Uint64(69), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_associated_const_added/": [ + { + "associated_constant": String("BAR"), + "default": Null, + "path": List([ + String("trait_associated_const_added"), + String("WillGainConstWithoutDefault"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "associated_constant": String("BAR"), + "default": Null, + "path": List([ + String("trait_associated_const_added"), + String("WillGainConstWithoutDefaultAndSeal"), + ]), + "span_begin_line": Uint64(17), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "associated_constant": String("TWO"), + "default": Null, + "path": List([ + String("trait_associated_const_added"), + String("WillGainAnotherConstWithoutDefault"), + ]), + "span_begin_line": Uint64(35), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "associated_constant": String("BAR"), + "default": Null, + "path": List([ + String("trait_associated_const_added"), + String("WillGainADocHiddenConst"), + ]), + "span_begin_line": Uint64(48), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_associated_const_default_removed.snap b/test_outputs/query_execution/trait_associated_const_default_removed.snap new file mode 100644 index 00000000..e86baaf4 --- /dev/null +++ b/test_outputs/query_execution/trait_associated_const_default_removed.snap @@ -0,0 +1,32 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_associated_const_default_removed/": [ + { + "associated_constant": String("ONE"), + "default": Null, + "path": List([ + String("trait_associated_const_default_removed"), + String("WillLoseDefault"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_items_hidden_from_public_api/": [ + { + "associated_constant": String("DEFAULT_REMOVED"), + "default": Null, + "path": List([ + String("trait_items_hidden_from_public_api"), + String("NonSealed"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_associated_const_now_doc_hidden.snap b/test_outputs/query_execution/trait_associated_const_now_doc_hidden.snap new file mode 100644 index 00000000..643c6a4d --- /dev/null +++ b/test_outputs/query_execution/trait_associated_const_now_doc_hidden.snap @@ -0,0 +1,18 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_associated_const_now_doc_hidden/": [ + { + "associated_constant": String("CONST_A"), + "path": List([ + String("trait_associated_const_now_doc_hidden"), + String("PubTraitA"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + "trait_name": String("PubTraitA"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_associated_type_added.snap b/test_outputs/query_execution/trait_associated_type_added.snap new file mode 100644 index 00000000..a7cb0124 --- /dev/null +++ b/test_outputs/query_execution/trait_associated_type_added.snap @@ -0,0 +1,52 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_associated_type_added/": [ + { + "associated_type": String("Bar"), + "has_default": Boolean(false), + "path": List([ + String("trait_associated_type_added"), + String("WillGainTypeWithoutDefault"), + ]), + "span_begin_line": Uint64(8), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "associated_type": String("Bar"), + "has_default": Boolean(false), + "path": List([ + String("trait_associated_type_added"), + String("WillGainTypeWithoutDefaultAndSeal"), + ]), + "span_begin_line": Uint64(20), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "associated_type": String("Two"), + "has_default": Boolean(false), + "path": List([ + String("trait_associated_type_added"), + String("WillGainAnotherTypeWithoutDefault"), + ]), + "span_begin_line": Uint64(39), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "associated_type": String("Bar"), + "has_default": Boolean(false), + "path": List([ + String("trait_associated_type_added"), + String("WillGainADocHiddenType"), + ]), + "span_begin_line": Uint64(53), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_associated_type_default_removed.snap b/test_outputs/query_execution/trait_associated_type_default_removed.snap new file mode 100644 index 00000000..37f72007 --- /dev/null +++ b/test_outputs/query_execution/trait_associated_type_default_removed.snap @@ -0,0 +1,19 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_associated_type_default_removed/": [ + { + "associated_type": String("Foo"), + "has_default": Boolean(false), + "path": List([ + String("trait_associated_type_default_removed"), + String("WillLoseDefault"), + ]), + "span_begin_line": Uint64(8), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_associated_type_now_doc_hidden.snap b/test_outputs/query_execution/trait_associated_type_now_doc_hidden.snap new file mode 100644 index 00000000..dac25f7a --- /dev/null +++ b/test_outputs/query_execution/trait_associated_type_now_doc_hidden.snap @@ -0,0 +1,18 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_associated_type_now_doc_hidden/": [ + { + "associated_type": String("TypeA"), + "path": List([ + String("trait_associated_type_now_doc_hidden"), + String("PubTraitA"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + "trait_name": String("PubTraitA"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_method_added.snap b/test_outputs/query_execution/trait_method_added.snap new file mode 100644 index 00000000..59457ff6 --- /dev/null +++ b/test_outputs/query_execution/trait_method_added.snap @@ -0,0 +1,364 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/method_moved_to_trait_must_use_added/": [ + { + "method_name": String("MethodToMovedDeclaredMustUseMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("enum_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(49), + "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MethodToMovedDeclaredMustUseMessageMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("enum_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(52), + "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MustUseMethodToMovedDeclaredMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("enum_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(54), + "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MustUseMethodToMovedDeclaredMustUseMessageMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("enum_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(57), + "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MustUseMessageMethodToMovedDeclaredMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("enum_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(59), + "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MustUseMessageMethodToMovedDeclaredMustUseMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("enum_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(62), + "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MustUseMessageMethodToMovedDeclaredMustUseMessageMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("enum_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(65), + "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MethodToMovedImplDeclaredMustUseMethod"), + "name": String("TraitWithMovedImplMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("enum_method_moved_to_trait_must_use_added"), + String("TraitWithMovedImplMustUseMethods"), + ]), + "span_begin_line": Uint64(135), + "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MethodToMovedDeclaredMustUseMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("struct_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(45), + "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MethodToMovedDeclaredMustUseMessageMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("struct_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(48), + "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MustUseMethodToMovedDeclaredMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("struct_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(50), + "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MustUseMethodToMovedDeclaredMustUseMessageMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("struct_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(53), + "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MustUseMessageMethodToMovedDeclaredMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("struct_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(55), + "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MustUseMessageMethodToMovedDeclaredMustUseMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("struct_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(58), + "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MustUseMessageMethodToMovedDeclaredMustUseMessageMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("struct_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(61), + "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MethodToMovedImplDeclaredMustUseMethod"), + "name": String("TraitWithMovedImplMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("struct_method_moved_to_trait_must_use_added"), + String("TraitWithMovedImplMustUseMethods"), + ]), + "span_begin_line": Uint64(127), + "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MethodToMovedDeclaredMustUseMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("union_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(49), + "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MethodToMovedDeclaredMustUseMessageMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("union_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(52), + "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MustUseMethodToMovedDeclaredMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("union_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(54), + "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MustUseMethodToMovedDeclaredMustUseMessageMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("union_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(57), + "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MustUseMessageMethodToMovedDeclaredMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("union_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(59), + "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MustUseMessageMethodToMovedDeclaredMustUseMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("union_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(62), + "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MustUseMessageMethodToMovedDeclaredMustUseMessageMethod"), + "name": String("TraitWithMovedDeclaredMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("union_method_moved_to_trait_must_use_added"), + String("TraitWithMovedDeclaredMustUseMethods"), + ]), + "span_begin_line": Uint64(65), + "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("MethodToMovedImplDeclaredMustUseMethod"), + "name": String("TraitWithMovedImplMustUseMethods"), + "path": List([ + String("method_moved_to_trait_must_use_added"), + String("union_method_moved_to_trait_must_use_added"), + String("TraitWithMovedImplMustUseMethods"), + ]), + "span_begin_line": Uint64(135), + "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_method_added/": [ + { + "method_name": String("one_method"), + "name": String("WillGainMethodWithoutDefault"), + "path": List([ + String("trait_method_added"), + String("WillGainMethodWithoutDefault"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("two_method"), + "name": String("WillGainAnotherMethodWithoutDefault"), + "path": List([ + String("trait_method_added"), + String("WillGainAnotherMethodWithoutDefault"), + ]), + "span_begin_line": Uint64(12), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("one_method"), + "name": String("WillGainMultipleMethodsWithoutDefault"), + "path": List([ + String("trait_method_added"), + String("WillGainMultipleMethodsWithoutDefault"), + ]), + "span_begin_line": Uint64(16), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("two_method"), + "name": String("WillGainMultipleMethodsWithoutDefault"), + "path": List([ + String("trait_method_added"), + String("WillGainMultipleMethodsWithoutDefault"), + ]), + "span_begin_line": Uint64(17), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("one_method"), + "name": String("WillGainMethodWithoutDefaultAndSeal"), + "path": List([ + String("trait_method_added"), + String("WillGainMethodWithoutDefaultAndSeal"), + ]), + "span_begin_line": Uint64(21), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("one_method"), + "name": String("WIllGainDocHiddenMethodWithoutDefault"), + "path": List([ + String("trait_method_added"), + String("WIllGainDocHiddenMethodWithoutDefault"), + ]), + "span_begin_line": Uint64(26), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_method_default_impl_removed.snap b/test_outputs/query_execution/trait_method_default_impl_removed.snap new file mode 100644 index 00000000..8007a930 --- /dev/null +++ b/test_outputs/query_execution/trait_method_default_impl_removed.snap @@ -0,0 +1,65 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_method_default_impl_removed/": [ + { + "method_name": String("method_default_impl_removed"), + "name": String("TraitA"), + "path": List([ + String("trait_method_default_impl_removed"), + String("TraitA"), + ]), + "span_begin_line": Uint64(8), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("method_default_impl_removed_and_becomes_non_obj_safe"), + "name": String("TraitD"), + "path": List([ + String("trait_method_default_impl_removed"), + String("TraitD"), + ]), + "span_begin_line": Uint64(22), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("method_default_impl_removed_and_becomes_sealed"), + "name": String("TraitE"), + "path": List([ + String("trait_method_default_impl_removed"), + String("TraitE"), + ]), + "span_begin_line": Uint64(27), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("method_partially_sealed_has_default_impl_removed"), + "name": String("TraitF"), + "path": List([ + String("trait_method_default_impl_removed"), + String("TraitF"), + ]), + "span_begin_line": Uint64(32), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_no_longer_object_safe/": [ + { + "method_name": String("by_ref"), + "name": String("RefTrait"), + "path": List([ + String("trait_no_longer_object_safe"), + String("RefTrait"), + ]), + "span_begin_line": Uint64(3), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_method_missing.snap b/test_outputs/query_execution/trait_method_missing.snap new file mode 100644 index 00000000..e4571e80 --- /dev/null +++ b/test_outputs/query_execution/trait_method_missing.snap @@ -0,0 +1,32 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_method_default_impl_removed/": [ + { + "method_name": String("method_becomes_removed"), + "name": String("TraitB"), + "path": List([ + String("trait_method_default_impl_removed"), + String("TraitB"), + ]), + "span_begin_line": Uint64(14), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_method_missing/": [ + { + "method_name": String("fooA"), + "name": String("RemovedTraitMethod"), + "path": List([ + String("trait_method_missing"), + String("RemovedTraitMethod"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_method_now_doc_hidden.snap b/test_outputs/query_execution/trait_method_now_doc_hidden.snap new file mode 100644 index 00000000..3ba37a8f --- /dev/null +++ b/test_outputs/query_execution/trait_method_now_doc_hidden.snap @@ -0,0 +1,37 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_method_now_doc_hidden/": [ + { + "name": String("assoc_function"), + "path": List([ + String("trait_method_now_doc_hidden"), + String("PublicTrait"), + ]), + "span_begin_line": Uint64(14), + "span_filename": String("src/lib.rs"), + }, + { + "name": String("method"), + "path": List([ + String("trait_method_now_doc_hidden"), + String("PublicTrait"), + ]), + "span_begin_line": Uint64(16), + "span_filename": String("src/lib.rs"), + }, + ], + "./test_crates/trait_now_doc_hidden/": [ + { + "name": String("my_trait_fn"), + "path": List([ + String("trait_now_doc_hidden"), + String("PublicTraitHiddenVariant"), + ]), + "span_begin_line": Uint64(54), + "span_filename": String("src/lib.rs"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_method_unsafe_added.snap b/test_outputs/query_execution/trait_method_unsafe_added.snap new file mode 100644 index 00000000..809daf95 --- /dev/null +++ b/test_outputs/query_execution/trait_method_unsafe_added.snap @@ -0,0 +1,38 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_method_unsafe_added/": [ + { + "method_name": String("becomes_unsafe"), + "path": List([ + String("trait_method_unsafe_added"), + String("PubTrait"), + ]), + "span_begin_line": Uint64(3), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("becomes_unsafe"), + "path": List([ + String("trait_method_unsafe_added"), + String("TraitBecomesUnsafe"), + ]), + "span_begin_line": Uint64(24), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("becomes_unsafe"), + "path": List([ + String("trait_method_unsafe_added"), + String("SealedTrait"), + ]), + "span_begin_line": Uint64(35), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_method_unsafe_removed.snap b/test_outputs/query_execution/trait_method_unsafe_removed.snap new file mode 100644 index 00000000..917d0646 --- /dev/null +++ b/test_outputs/query_execution/trait_method_unsafe_removed.snap @@ -0,0 +1,48 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_method_unsafe_removed/": [ + { + "method_name": String("becomes_safe"), + "path": List([ + String("trait_method_unsafe_removed"), + String("PubTrait"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("becomes_safe"), + "path": List([ + String("trait_method_unsafe_removed"), + String("TraitBecomesSafe"), + ]), + "span_begin_line": Uint64(26), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("becomes_safe"), + "path": List([ + String("trait_method_unsafe_removed"), + String("UnsealedTrait"), + ]), + "span_begin_line": Uint64(48), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "method_name": String("becomes_safe"), + "path": List([ + String("trait_method_unsafe_removed"), + String("TraitWithStdSupertrait"), + ]), + "span_begin_line": Uint64(60), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_missing.snap b/test_outputs/query_execution/trait_missing.snap new file mode 100644 index 00000000..beead592 --- /dev/null +++ b/test_outputs/query_execution/trait_missing.snap @@ -0,0 +1,200 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/switch_to_reexport_as_underscore/": [ + { + "name": String("Trait"), + "path": List([ + String("switch_to_reexport_as_underscore"), + String("Trait"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_associated_type_removed/": [ + { + "name": String("RemovedTrait"), + "path": List([ + String("trait_associated_type_removed"), + String("RemovedTrait"), + ]), + "span_begin_line": Uint64(22), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_method_missing/": [ + { + "name": String("RemovedTraitWithMethod"), + "path": List([ + String("trait_method_missing"), + String("RemovedTraitWithMethod"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_method_unsafe_added/": [ + { + "name": String("TraitBecomesPrivate"), + "path": List([ + String("trait_method_unsafe_added"), + String("TraitBecomesPrivate"), + ]), + "span_begin_line": Uint64(17), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_method_unsafe_removed/": [ + { + "name": String("TraitBecomesPrivate"), + "path": List([ + String("trait_method_unsafe_removed"), + String("TraitBecomesPrivate"), + ]), + "span_begin_line": Uint64(19), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_missing/": [ + { + "name": String("RemovedTrait"), + "path": List([ + String("trait_missing"), + String("RemovedTrait"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("RemovedUnsafeTrait"), + "path": List([ + String("trait_missing"), + String("RemovedUnsafeTrait"), + ]), + "span_begin_line": Uint64(3), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PubUseRemovedTrait"), + "path": List([ + String("trait_missing"), + String("my_pub_mod"), + String("PubUseRemovedTrait"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PubUseRemovedTrait"), + "path": List([ + String("trait_missing"), + String("PubUseRemovedTrait"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_missing_with_major_bump/": [ + { + "name": String("RemovedTrait"), + "path": List([ + String("trait_missing_with_major_bump"), + String("RemovedTrait"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("RemovedUnsafeTrait"), + "path": List([ + String("trait_missing_with_major_bump"), + String("RemovedUnsafeTrait"), + ]), + "span_begin_line": Uint64(3), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PubUseRemovedTrait"), + "path": List([ + String("trait_missing_with_major_bump"), + String("my_pub_mod"), + String("PubUseRemovedTrait"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PubUseRemovedTrait"), + "path": List([ + String("trait_missing_with_major_bump"), + String("PubUseRemovedTrait"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_newly_sealed/": [ + { + "name": String("TraitBecomesPrivateAndSealed"), + "path": List([ + String("trait_newly_sealed"), + String("TraitBecomesPrivateAndSealed"), + ]), + "span_begin_line": Uint64(18), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_removed_associated_constant/": [ + { + "name": String("RemovedTrait"), + "path": List([ + String("trait_removed_associated_constant"), + String("RemovedTrait"), + ]), + "span_begin_line": Uint64(21), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_unsafe_added/": [ + { + "name": String("TraitBecomesPrivateAndUnsafe"), + "path": List([ + String("trait_unsafe_added"), + String("TraitBecomesPrivateAndUnsafe"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_unsafe_removed/": [ + { + "name": String("TraitBecomesPrivateAndSafe"), + "path": List([ + String("trait_unsafe_removed"), + String("TraitBecomesPrivateAndSafe"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_must_use_added.snap b/test_outputs/query_execution/trait_must_use_added.snap new file mode 100644 index 00000000..e3e5de97 --- /dev/null +++ b/test_outputs/query_execution/trait_must_use_added.snap @@ -0,0 +1,30 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_must_use_added/": [ + { + "name": String("TraitToMustUseTrait"), + "new_attr": String("#[must_use]"), + "path": List([ + String("trait_must_use_added"), + String("TraitToMustUseTrait"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("TraitToMustUseMessageTrait"), + "new_attr": String("#[must_use = \"Foo\"]"), + "path": List([ + String("trait_must_use_added"), + String("TraitToMustUseMessageTrait"), + ]), + "span_begin_line": Uint64(8), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_newly_sealed.snap b/test_outputs/query_execution/trait_newly_sealed.snap new file mode 100644 index 00000000..8ae47133 --- /dev/null +++ b/test_outputs/query_execution/trait_newly_sealed.snap @@ -0,0 +1,86 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_associated_const_added/": [ + { + "name": String("WillGainConstWithoutDefaultAndSeal"), + "path": List([ + String("trait_associated_const_added"), + String("WillGainConstWithoutDefaultAndSeal"), + ]), + "span_begin_line": Uint64(16), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_associated_type_added/": [ + { + "name": String("WillGainTypeWithoutDefaultAndSeal"), + "path": List([ + String("trait_associated_type_added"), + String("WillGainTypeWithoutDefaultAndSeal"), + ]), + "span_begin_line": Uint64(19), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_method_added/": [ + { + "name": String("WillGainMethodWithoutDefaultAndSeal"), + "path": List([ + String("trait_method_added"), + String("WillGainMethodWithoutDefaultAndSeal"), + ]), + "span_begin_line": Uint64(20), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_method_default_impl_removed/": [ + { + "name": String("TraitE"), + "path": List([ + String("trait_method_default_impl_removed"), + String("TraitE"), + ]), + "span_begin_line": Uint64(26), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("TraitF"), + "path": List([ + String("trait_method_default_impl_removed"), + String("TraitF"), + ]), + "span_begin_line": Uint64(31), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_newly_sealed/": [ + { + "name": String("TraitBecomesSealed"), + "path": List([ + String("trait_newly_sealed"), + String("TraitBecomesSealed"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("TraitMethodBecomesSealed"), + "path": List([ + String("trait_newly_sealed"), + String("TraitMethodBecomesSealed"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_no_longer_object_safe.snap b/test_outputs/query_execution/trait_no_longer_object_safe.snap new file mode 100644 index 00000000..ad02b054 --- /dev/null +++ b/test_outputs/query_execution/trait_no_longer_object_safe.snap @@ -0,0 +1,52 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/inherent_associated_pub_const_missing/": [ + { + "name": String("TraitA"), + "path": List([ + String("inherent_associated_pub_const_missing"), + String("TraitA"), + ]), + "span_begin_line": Uint64(59), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("TraitB"), + "path": List([ + String("inherent_associated_pub_const_missing"), + String("TraitB"), + ]), + "span_begin_line": Uint64(68), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_method_default_impl_removed/": [ + { + "name": String("TraitD"), + "path": List([ + String("trait_method_default_impl_removed"), + String("TraitD"), + ]), + "span_begin_line": Uint64(21), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_no_longer_object_safe/": [ + { + "name": String("RefTrait"), + "path": List([ + String("trait_no_longer_object_safe"), + String("RefTrait"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_now_doc_hidden.snap b/test_outputs/query_execution/trait_now_doc_hidden.snap new file mode 100644 index 00000000..e28c4fbd --- /dev/null +++ b/test_outputs/query_execution/trait_now_doc_hidden.snap @@ -0,0 +1,60 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_associated_const_now_doc_hidden/": [ + { + "path": List([ + String("trait_associated_const_now_doc_hidden"), + String("PubTraitB"), + ]), + "span_begin_line": Uint64(18), + "span_filename": String("src/lib.rs"), + "trait_name": String("PubTraitB"), + }, + ], + "./test_crates/trait_associated_type_now_doc_hidden/": [ + { + "path": List([ + String("trait_associated_type_now_doc_hidden"), + String("PubTraitB"), + ]), + "span_begin_line": Uint64(18), + "span_filename": String("src/lib.rs"), + "trait_name": String("PubTraitB"), + }, + ], + "./test_crates/trait_now_doc_hidden/": [ + { + "path": List([ + String("trait_now_doc_hidden"), + String("MyPublicMod"), + String("MyTrait"), + ]), + "span_begin_line": Uint64(13), + "span_filename": String("src/lib.rs"), + "trait_name": String("MyTrait"), + }, + { + "path": List([ + String("trait_now_doc_hidden"), + String("MyNestedPublicMod"), + String("PublicInnerMod"), + String("MyTrait"), + ]), + "span_begin_line": Uint64(38), + "span_filename": String("src/lib.rs"), + "trait_name": String("MyTrait"), + }, + { + "path": List([ + String("trait_now_doc_hidden"), + String("Example"), + ]), + "span_begin_line": Uint64(47), + "span_filename": String("src/lib.rs"), + "trait_name": String("Example"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_removed_associated_constant.snap b/test_outputs/query_execution/trait_removed_associated_constant.snap new file mode 100644 index 00000000..4d7a7607 --- /dev/null +++ b/test_outputs/query_execution/trait_removed_associated_constant.snap @@ -0,0 +1,30 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_removed_associated_constant/": [ + { + "associated_constant": String("APPLE"), + "path": List([ + String("trait_removed_associated_constant"), + String("RemovedAssociatedConstantFromTrait"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "trait_name": String("RemovedAssociatedConstantFromTrait"), + "visibility_limit": String("public"), + }, + { + "associated_constant": String("APPLE"), + "path": List([ + String("trait_removed_associated_constant"), + String("RemovedAssociatedConstantDefaultFromTrait"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/lib.rs"), + "trait_name": String("RemovedAssociatedConstantDefaultFromTrait"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_removed_associated_type.snap b/test_outputs/query_execution/trait_removed_associated_type.snap new file mode 100644 index 00000000..98c3d929 --- /dev/null +++ b/test_outputs/query_execution/trait_removed_associated_type.snap @@ -0,0 +1,30 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_associated_type_removed/": [ + { + "associated_type": String("Apple"), + "path": List([ + String("trait_associated_type_removed"), + String("RemovedTypeFromTrait"), + ]), + "span_begin_line": Uint64(3), + "span_filename": String("src/lib.rs"), + "trait_name": String("RemovedTypeFromTrait"), + "visibility_limit": String("public"), + }, + { + "associated_type": String("MyType"), + "path": List([ + String("trait_associated_type_removed"), + String("RemovedTypeDefaultFromTrait"), + ]), + "span_begin_line": Uint64(11), + "span_filename": String("src/lib.rs"), + "trait_name": String("RemovedTypeDefaultFromTrait"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_removed_supertrait.snap b/test_outputs/query_execution/trait_removed_supertrait.snap new file mode 100644 index 00000000..cff51d13 --- /dev/null +++ b/test_outputs/query_execution/trait_removed_supertrait.snap @@ -0,0 +1,106 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_removed_supertrait/": [ + { + "name": String("RemovingSingleTrait"), + "path": List([ + String("trait_removed_supertrait"), + String("RemovingSingleTrait"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "trait_path": List([ + String("trait_removed_supertrait"), + String("SuperTrait"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("RemovingOneTraitOfMultiple"), + "path": List([ + String("trait_removed_supertrait"), + String("RemovingOneTraitOfMultiple"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "trait_path": List([ + String("trait_removed_supertrait"), + String("SuperTrait2"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("RemovingOneWithGenerics"), + "path": List([ + String("trait_removed_supertrait"), + String("RemovingOneWithGenerics"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/lib.rs"), + "trait_path": List([ + String("trait_removed_supertrait"), + String("SuperTrait2"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("RemovingOneWithGenericsOnTheSuperTrait"), + "path": List([ + String("trait_removed_supertrait"), + String("RemovingOneWithGenericsOnTheSuperTrait"), + ]), + "span_begin_line": Uint64(8), + "span_filename": String("src/lib.rs"), + "trait_path": List([ + String("trait_removed_supertrait"), + String("GenericSuperTrait"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("RemovingTraitAndLifetime"), + "path": List([ + String("trait_removed_supertrait"), + String("RemovingTraitAndLifetime"), + ]), + "span_begin_line": Uint64(9), + "span_filename": String("src/lib.rs"), + "trait_path": List([ + String("trait_removed_supertrait"), + String("SuperTrait2"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("RemovingMultiple"), + "path": List([ + String("trait_removed_supertrait"), + String("RemovingMultiple"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/lib.rs"), + "trait_path": List([ + String("trait_removed_supertrait"), + String("SuperTrait"), + ]), + "visibility_limit": String("public"), + }, + { + "name": String("RemovingMultiple"), + "path": List([ + String("trait_removed_supertrait"), + String("RemovingMultiple"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/lib.rs"), + "trait_path": List([ + String("trait_removed_supertrait"), + String("SuperTrait2"), + ]), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_unsafe_added.snap b/test_outputs/query_execution/trait_unsafe_added.snap new file mode 100644 index 00000000..ac9224b6 --- /dev/null +++ b/test_outputs/query_execution/trait_unsafe_added.snap @@ -0,0 +1,54 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_method_unsafe_added/": [ + { + "name": String("TraitBecomesUnsafe"), + "path": List([ + String("trait_method_unsafe_added"), + String("TraitBecomesUnsafe"), + ]), + "span_begin_line": Uint64(23), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_missing/": [ + { + "name": String("TraitBecomesUnsafe"), + "path": List([ + String("trait_missing"), + String("TraitBecomesUnsafe"), + ]), + "span_begin_line": Uint64(9), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_missing_with_major_bump/": [ + { + "name": String("TraitBecomesUnsafe"), + "path": List([ + String("trait_missing_with_major_bump"), + String("TraitBecomesUnsafe"), + ]), + "span_begin_line": Uint64(9), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_unsafe_added/": [ + { + "name": String("TraitBecomesUnsafe"), + "path": List([ + String("trait_unsafe_added"), + String("TraitBecomesUnsafe"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/trait_unsafe_removed.snap b/test_outputs/query_execution/trait_unsafe_removed.snap new file mode 100644 index 00000000..44d693b0 --- /dev/null +++ b/test_outputs/query_execution/trait_unsafe_removed.snap @@ -0,0 +1,54 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/trait_method_unsafe_removed/": [ + { + "name": String("TraitBecomesSafe"), + "path": List([ + String("trait_method_unsafe_removed"), + String("TraitBecomesSafe"), + ]), + "span_begin_line": Uint64(25), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_missing/": [ + { + "name": String("TraitStopsBeingUnsafe"), + "path": List([ + String("trait_missing"), + String("TraitStopsBeingUnsafe"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_missing_with_major_bump/": [ + { + "name": String("TraitStopsBeingUnsafe"), + "path": List([ + String("trait_missing_with_major_bump"), + String("TraitStopsBeingUnsafe"), + ]), + "span_begin_line": Uint64(6), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/trait_unsafe_removed/": [ + { + "name": String("TraitBecomesSafe"), + "path": List([ + String("trait_unsafe_removed"), + String("TraitBecomesSafe"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/tuple_struct_to_plain_struct.snap b/test_outputs/query_execution/tuple_struct_to_plain_struct.snap new file mode 100644 index 00000000..95aefc7f --- /dev/null +++ b/test_outputs/query_execution/tuple_struct_to_plain_struct.snap @@ -0,0 +1,52 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/constructible_struct_adds_field/": [ + { + "name": String("TupleToPlainStruct"), + "path": List([ + String("constructible_struct_adds_field"), + String("TupleToPlainStruct"), + ]), + "span_begin_line": Uint64(59), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/constructible_struct_adds_private_field/": [ + { + "name": String("TupleToPlainStruct"), + "path": List([ + String("constructible_struct_adds_private_field"), + String("TupleToPlainStruct"), + ]), + "span_begin_line": Uint64(59), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/tuple_struct_to_plain_struct/": [ + { + "name": String("TupleToPlainStructPublicFields"), + "path": List([ + String("tuple_struct_to_plain_struct"), + String("TupleToPlainStructPublicFields"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("TupleToPlainStructEmpty"), + "path": List([ + String("tuple_struct_to_plain_struct"), + String("TupleToPlainStructEmpty"), + ]), + "span_begin_line": Uint64(24), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/type_marked_deprecated.snap b/test_outputs/query_execution/type_marked_deprecated.snap new file mode 100644 index 00000000..75490194 --- /dev/null +++ b/test_outputs/query_execution/type_marked_deprecated.snap @@ -0,0 +1,80 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/type_marked_deprecated/": [ + { + "name": String("EnumToDeprecatedEnum"), + "owner_type": String("Enum"), + "path": List([ + String("type_marked_deprecated"), + String("enums"), + String("EnumToDeprecatedEnum"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/enums.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("EnumToDeprecatedMessageEnum"), + "owner_type": String("Enum"), + "path": List([ + String("type_marked_deprecated"), + String("enums"), + String("EnumToDeprecatedMessageEnum"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/enums.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("StructToDeprecatedStruct"), + "owner_type": String("Struct"), + "path": List([ + String("type_marked_deprecated"), + String("structs"), + String("StructToDeprecatedStruct"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/structs.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("StructToDeprecatedMessageStruct"), + "owner_type": String("Struct"), + "path": List([ + String("type_marked_deprecated"), + String("structs"), + String("StructToDeprecatedMessageStruct"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/structs.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("UnionToDeprecatedUnion"), + "owner_type": String("Union"), + "path": List([ + String("type_marked_deprecated"), + String("unions"), + String("UnionToDeprecatedUnion"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/unions.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("UnionToDeprecatedMessageUnion"), + "owner_type": String("Union"), + "path": List([ + String("type_marked_deprecated"), + String("unions"), + String("UnionToDeprecatedMessageUnion"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/unions.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/union_field_missing.snap b/test_outputs/query_execution/union_field_missing.snap new file mode 100644 index 00000000..74207c85 --- /dev/null +++ b/test_outputs/query_execution/union_field_missing.snap @@ -0,0 +1,28 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/union_field_missing/": [ + { + "field_name": String("f2"), + "path": List([ + String("union_field_missing"), + String("PubUnionPubFieldRenamed"), + ]), + "span_begin_line": Uint64(16), + "span_filename": String("src/lib.rs"), + "union_name": String("PubUnionPubFieldRenamed"), + }, + { + "field_name": String("f2"), + "path": List([ + String("union_field_missing"), + String("PubUnionPubFieldRemoved"), + ]), + "span_begin_line": Uint64(22), + "span_filename": String("src/lib.rs"), + "union_name": String("PubUnionPubFieldRemoved"), + }, + ], +} diff --git a/test_outputs/query_execution/union_missing.snap b/test_outputs/query_execution/union_missing.snap new file mode 100644 index 00000000..dd3abb80 --- /dev/null +++ b/test_outputs/query_execution/union_missing.snap @@ -0,0 +1,72 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/repr_packed_added_removed/": [ + { + "name": String("UnionBecomesPackedAndPrivate"), + "path": List([ + String("repr_packed_added_removed"), + String("UnionBecomesPackedAndPrivate"), + ]), + "span_begin_line": Uint64(41), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("UnionBecomesUnpackedAndPrivate"), + "path": List([ + String("repr_packed_added_removed"), + String("UnionBecomesUnpackedAndPrivate"), + ]), + "span_begin_line": Uint64(47), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/union_field_missing/": [ + { + "name": String("PubUnionBecomesPrivateAndPubFieldRemoved"), + "path": List([ + String("union_field_missing"), + String("PubUnionBecomesPrivateAndPubFieldRemoved"), + ]), + "span_begin_line": Uint64(26), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], + "./test_crates/union_missing/": [ + { + "name": String("PubUnionRemoved"), + "path": List([ + String("union_missing"), + String("PubUnionRemoved"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PubUnionBecomesPrivate"), + "path": List([ + String("union_missing"), + String("PubUnionBecomesPrivate"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("PubUnion"), + "path": List([ + String("union_missing"), + String("PubUseUnionRemoved"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/union_must_use_added.snap b/test_outputs/query_execution/union_must_use_added.snap new file mode 100644 index 00000000..6420c17a --- /dev/null +++ b/test_outputs/query_execution/union_must_use_added.snap @@ -0,0 +1,30 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/union_must_use_added/": [ + { + "name": String("UnionToMustUseUnion"), + "new_attr": String("#[must_use]"), + "path": List([ + String("union_must_use_added"), + String("UnionToMustUseUnion"), + ]), + "span_begin_line": Uint64(5), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + { + "name": String("UnionToMustUseMessageUnion"), + "new_attr": String("#[must_use = \"Foo\"]"), + "path": List([ + String("union_must_use_added"), + String("UnionToMustUseMessageUnion"), + ]), + "span_begin_line": Uint64(10), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/query_execution/union_now_doc_hidden.snap b/test_outputs/query_execution/union_now_doc_hidden.snap new file mode 100644 index 00000000..e9fbcd6f --- /dev/null +++ b/test_outputs/query_execution/union_now_doc_hidden.snap @@ -0,0 +1,48 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/type_hidden_from_public_api/": [ + { + "path": List([ + String("type_hidden_from_public_api"), + String("ExampleUnion"), + ]), + "span_begin_line": Uint64(19), + "span_filename": String("src/lib.rs"), + "union_name": String("ExampleUnion"), + }, + ], + "./test_crates/union_now_doc_hidden/": [ + { + "path": List([ + String("union_now_doc_hidden"), + String("MyUnion"), + ]), + "span_begin_line": Uint64(2), + "span_filename": String("src/lib.rs"), + "union_name": String("MyUnion"), + }, + ], + "./test_crates/union_pub_field_now_doc_hidden/": [ + { + "path": List([ + String("union_pub_field_now_doc_hidden"), + String("MyUnion"), + ]), + "span_begin_line": Uint64(4), + "span_filename": String("src/lib.rs"), + "union_name": String("MyUnion"), + }, + { + "path": List([ + String("union_pub_field_now_doc_hidden"), + String("PublicUnionBothFieldAndUnionDocHidden"), + ]), + "span_begin_line": Uint64(30), + "span_filename": String("src/lib.rs"), + "union_name": String("PublicUnionBothFieldAndUnionDocHidden"), + }, + ], +} diff --git a/test_outputs/query_execution/union_pub_field_now_doc_hidden.snap b/test_outputs/query_execution/union_pub_field_now_doc_hidden.snap new file mode 100644 index 00000000..fec06005 --- /dev/null +++ b/test_outputs/query_execution/union_pub_field_now_doc_hidden.snap @@ -0,0 +1,40 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/union_now_doc_hidden/": [ + { + "field_name": String("my_field"), + "path": List([ + String("union_now_doc_hidden"), + String("PublicUnionHiddenField"), + ]), + "span_begin_line": Uint64(7), + "span_filename": String("src/lib.rs"), + "union_name": String("PublicUnionHiddenField"), + }, + ], + "./test_crates/union_pub_field_now_doc_hidden/": [ + { + "field_name": String("my_field"), + "path": List([ + String("union_pub_field_now_doc_hidden"), + String("PublicUnionDocHiddenField"), + ]), + "span_begin_line": Uint64(9), + "span_filename": String("src/lib.rs"), + "union_name": String("PublicUnionDocHiddenField"), + }, + { + "field_name": String("f1"), + "path": List([ + String("union_pub_field_now_doc_hidden"), + String("PublicUnionBothFieldAndUnionDocHidden"), + ]), + "span_begin_line": Uint64(30), + "span_filename": String("src/lib.rs"), + "union_name": String("PublicUnionBothFieldAndUnionDocHidden"), + }, + ], +} diff --git a/test_outputs/query_execution/unit_struct_changed_kind.snap b/test_outputs/query_execution/unit_struct_changed_kind.snap new file mode 100644 index 00000000..6647558b --- /dev/null +++ b/test_outputs/query_execution/unit_struct_changed_kind.snap @@ -0,0 +1,18 @@ +--- +source: src/query.rs +expression: "&query_execution_results" +--- +{ + "./test_crates/unit_struct_changed_kind/": [ + { + "name": String("UnitStructToPlain"), + "path": List([ + String("unit_struct_changed_kind"), + String("UnitStructToPlain"), + ]), + "span_begin_line": Uint64(1), + "span_filename": String("src/lib.rs"), + "visibility_limit": String("public"), + }, + ], +} diff --git a/test_outputs/repr_c_removed.output.ron b/test_outputs/repr_c_removed.output.ron deleted file mode 100644 index ae30cf29..00000000 --- a/test_outputs/repr_c_removed.output.ron +++ /dev/null @@ -1,160 +0,0 @@ -{ - "./test_crates/repr_c_removed/": [ - { - "name": String("CEnumToEnum"), - "old_attr": String("#[repr(C)]"), - "owner_type": String("Enum"), - "path": List([ - String("repr_c_removed"), - String("CEnumToEnum"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("U8CEnumToU8Enum"), - "old_attr": String("#[repr(u8, C)]"), - "owner_type": String("Enum"), - "path": List([ - String("repr_c_removed"), - String("U8CEnumToU8Enum"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("SeparateU8CEnumToU8Enum"), - "old_attr": String("#[repr(C)]"), - "owner_type": String("Enum"), - "path": List([ - String("repr_c_removed"), - String("SeparateU8CEnumToU8Enum"), - ]), - "span_begin_line": Uint64(12), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("CU8EnumToU8Enum"), - "old_attr": String("#[repr(C, u8)]"), - "owner_type": String("Enum"), - "path": List([ - String("repr_c_removed"), - String("CU8EnumToU8Enum"), - ]), - "span_begin_line": Uint64(18), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("SeparateCU8EnumToU8Enum"), - "old_attr": String("#[repr(C)]"), - "owner_type": String("Enum"), - "path": List([ - String("repr_c_removed"), - String("SeparateCU8EnumToU8Enum"), - ]), - "span_begin_line": Uint64(24), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("CStructToStruct"), - "old_attr": String("#[repr(C)]"), - "owner_type": String("Struct"), - "path": List([ - String("repr_c_removed"), - String("CStructToStruct"), - ]), - "span_begin_line": Uint64(86), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("Align16CStructToAlign16Struct"), - "old_attr": String("#[repr(align(16), C)]"), - "owner_type": String("Struct"), - "path": List([ - String("repr_c_removed"), - String("Align16CStructToAlign16Struct"), - ]), - "span_begin_line": Uint64(91), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("SeparateAlign16CStructToAlign16Struct"), - "old_attr": String("#[repr(C)]"), - "owner_type": String("Struct"), - "path": List([ - String("repr_c_removed"), - String("SeparateAlign16CStructToAlign16Struct"), - ]), - "span_begin_line": Uint64(96), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("CAlign16StructToAlign16Struct"), - "old_attr": String("#[repr(C, align(16))]"), - "owner_type": String("Struct"), - "path": List([ - String("repr_c_removed"), - String("CAlign16StructToAlign16Struct"), - ]), - "span_begin_line": Uint64(101), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("CUnionToUnion"), - "old_attr": String("#[repr(C)]"), - "owner_type": String("Union"), - "path": List([ - String("repr_c_removed"), - String("CUnionToUnion"), - ]), - "span_begin_line": Uint64(105), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("Align16CUnionToAlign16Union"), - "old_attr": String("#[repr(align(16), C)]"), - "owner_type": String("Union"), - "path": List([ - String("repr_c_removed"), - String("Align16CUnionToAlign16Union"), - ]), - "span_begin_line": Uint64(110), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("SeparateAlign16CUnionToAlign16Union"), - "old_attr": String("#[repr(C)]"), - "owner_type": String("Union"), - "path": List([ - String("repr_c_removed"), - String("SeparateAlign16CUnionToAlign16Union"), - ]), - "span_begin_line": Uint64(115), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("CAlign16UnionToAlign16Union"), - "old_attr": String("#[repr(C, align(16))]"), - "owner_type": String("Union"), - "path": List([ - String("repr_c_removed"), - String("CAlign16UnionToAlign16Union"), - ]), - "span_begin_line": Uint64(120), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/repr_packed_added.output.ron b/test_outputs/repr_packed_added.output.ron deleted file mode 100644 index 86a16651..00000000 --- a/test_outputs/repr_packed_added.output.ron +++ /dev/null @@ -1,24 +0,0 @@ -{ - "./test_crates/repr_packed_added_removed/": [ - { - "name": String("StructBecomesPacked"), - "path": List([ - String("repr_packed_added_removed"), - String("StructBecomesPacked"), - ]), - "span_begin_line": Uint64(3), - "span_filename": String("src/lib.rs"), - "type": String("Struct"), - }, - { - "name": String("UnionBecomesPacked"), - "path": List([ - String("repr_packed_added_removed"), - String("UnionBecomesPacked"), - ]), - "span_begin_line": Uint64(31), - "span_filename": String("src/lib.rs"), - "type": String("Union"), - }, - ] -} diff --git a/test_outputs/repr_packed_removed.output.ron b/test_outputs/repr_packed_removed.output.ron deleted file mode 100644 index 561ff853..00000000 --- a/test_outputs/repr_packed_removed.output.ron +++ /dev/null @@ -1,24 +0,0 @@ -{ - "./test_crates/repr_packed_added_removed/": [ - { - "name": String("StructBecomesUnpacked"), - "path": List([ - String("repr_packed_added_removed"), - String("StructBecomesUnpacked"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "type": String("Struct"), - }, - { - "name": String("UnionBecomesUnpacked"), - "path": List([ - String("repr_packed_added_removed"), - String("UnionBecomesUnpacked"), - ]), - "span_begin_line": Uint64(36), - "span_filename": String("src/lib.rs"), - "type": String("Union"), - }, - ] -} diff --git a/test_outputs/sized_impl_removed.output.ron b/test_outputs/sized_impl_removed.output.ron deleted file mode 100644 index 341751d1..00000000 --- a/test_outputs/sized_impl_removed.output.ron +++ /dev/null @@ -1,14 +0,0 @@ -{ - "./test_crates/sized_impl_removed/": [ - { - "name": String("SizedStruct"), - "path": List([ - String("sized_impl_removed"), - String("SizedStruct"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/struct_marked_non_exhaustive.output.ron b/test_outputs/struct_marked_non_exhaustive.output.ron deleted file mode 100644 index e940e888..00000000 --- a/test_outputs/struct_marked_non_exhaustive.output.ron +++ /dev/null @@ -1,50 +0,0 @@ -{ - "./test_crates/non_exhaustive/": [ - { - "name": String("UnitStruct"), - "path": List([ - String("non_exhaustive"), - String("UnitStruct"), - ]), - "span_begin_line": Uint64(12), - "span_filename": String("src/lib.rs"), - "struct_type": String("unit"), - "visibility_limit": String("public"), - }, - { - "name": String("TupleStruct"), - "path": List([ - String("non_exhaustive"), - String("TupleStruct"), - ]), - "span_begin_line": Uint64(15), - "span_filename": String("src/lib.rs"), - "struct_type": String("tuple"), - "visibility_limit": String("public"), - }, - { - "name": String("ExternallyConstructibleStruct"), - "path": List([ - String("non_exhaustive"), - String("ExternallyConstructibleStruct"), - ]), - "span_begin_line": Uint64(18), - "span_filename": String("src/lib.rs"), - "struct_type": String("plain"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/tuple_struct_to_plain_struct/": [ - { - "name": String("TupleToNonExhaustivePlainStruct"), - "path": List([ - String("tuple_struct_to_plain_struct"), - String("TupleToNonExhaustivePlainStruct"), - ]), - "span_begin_line": Uint64(41), - "span_filename": String("src/lib.rs"), - "struct_type": String("plain"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/struct_missing.output.ron b/test_outputs/struct_missing.output.ron deleted file mode 100644 index ae06c530..00000000 --- a/test_outputs/struct_missing.output.ron +++ /dev/null @@ -1,135 +0,0 @@ -{ - "./test_crates/move_item_and_reexport/": [ - { - "name": String("NonEquivalentReorderedGenerics"), - "path": List([ - String("move_item_and_reexport"), - String("NonEquivalentReorderedGenerics"), - ]), - "span_begin_line": Uint64(38), - "span_filename": String("src/lib.rs"), - "struct_type": String("plain"), - "visibility_limit": String("public"), - }, - { - "name": String("NonEquivalentRemovedLifetime"), - "path": List([ - String("move_item_and_reexport"), - String("NonEquivalentRemovedLifetime"), - ]), - "span_begin_line": Uint64(42), - "span_filename": String("src/lib.rs"), - "struct_type": String("plain"), - "visibility_limit": String("public"), - }, - { - "name": String("NonEquivalentRemovedConst"), - "path": List([ - String("move_item_and_reexport"), - String("NonEquivalentRemovedConst"), - ]), - "span_begin_line": Uint64(46), - "span_filename": String("src/lib.rs"), - "struct_type": String("plain"), - "visibility_limit": String("public"), - }, - { - "name": String("NonEquivalentRemovedType"), - "path": List([ - String("move_item_and_reexport"), - String("NonEquivalentRemovedType"), - ]), - "span_begin_line": Uint64(50), - "span_filename": String("src/lib.rs"), - "struct_type": String("plain"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/repr_packed_added_removed/": [ - { - "name": String("StructBecomesPackedAndPrivate"), - "path": List([ - String("repr_packed_added_removed"), - String("StructBecomesPackedAndPrivate"), - ]), - "span_begin_line": Uint64(9), - "span_filename": String("src/lib.rs"), - "struct_type": String("unit"), - "visibility_limit": String("public"), - }, - { - "name": String("StructBecomesUnpackedAndPrivate"), - "path": List([ - String("repr_packed_added_removed"), - String("StructBecomesUnpackedAndPrivate"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/lib.rs"), - "struct_type": String("unit"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/struct_missing/": [ - { - "name": String("WillBeRemovedStruct"), - "path": List([ - String("struct_missing"), - String("WillBeRemovedStruct"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "struct_type": String("unit"), - "visibility_limit": String("public"), - }, - { - "name": String("PubUseRemovedStruct"), - "path": List([ - String("struct_missing"), - String("PubUseRemovedStruct"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "struct_type": String("unit"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/struct_now_doc_hidden/": [ - { - "name": String("PublicStructThatGoesPrivate"), - "path": List([ - String("struct_now_doc_hidden"), - String("PublicStructThatGoesPrivate"), - ]), - "span_begin_line": Uint64(34), - "span_filename": String("src/lib.rs"), - "struct_type": String("unit"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/struct_pub_field_missing/": [ - { - "name": String("StructRemoved"), - "path": List([ - String("struct_pub_field_missing"), - String("StructRemoved"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - "struct_type": String("plain"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/switch_to_reexport_as_underscore/": [ - { - "name": String("Struct"), - "path": List([ - String("switch_to_reexport_as_underscore"), - String("Struct"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "struct_type": String("plain"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/struct_must_use_added.output.ron b/test_outputs/struct_must_use_added.output.ron deleted file mode 100644 index 575b353a..00000000 --- a/test_outputs/struct_must_use_added.output.ron +++ /dev/null @@ -1,26 +0,0 @@ -{ - "./test_crates/struct_must_use_added/": [ - { - "name": String("StructToMustUseStruct"), - "new_attr": String("#[must_use]"), - "path": List([ - String("struct_must_use_added"), - String("StructToMustUseStruct"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("StructToMustUseMessageStruct"), - "new_attr": String("#[must_use = \"Foo\"]"), - "path": List([ - String("struct_must_use_added"), - String("StructToMustUseMessageStruct"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/struct_now_doc_hidden.output.ron b/test_outputs/struct_now_doc_hidden.output.ron deleted file mode 100644 index 32d4e6ff..00000000 --- a/test_outputs/struct_now_doc_hidden.output.ron +++ /dev/null @@ -1,97 +0,0 @@ -{ - "./test_crates/inherent_associated_pub_const_missing/": [ - { - "path": List([ - String("inherent_associated_pub_const_missing"), - String("StructF"), - ]), - "span_begin_line": Uint64(41), - "span_filename": String("src/lib.rs"), - "struct_name": String("StructF"), - }, - ], - "./test_crates/inherent_method_now_doc_hidden/": [ - { - "path": List([ - String("inherent_method_now_doc_hidden"), - String("struct_and_inherent_method_now_doc_hidden"), - String("Foo"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/struct_and_inherent_method_now_doc_hidden.rs"), - "struct_name": String("Foo"), - }, - ], - "./test_crates/struct_now_doc_hidden/": [ - { - "path": List([ - String("struct_now_doc_hidden"), - String("MyPublicMod"), - String("MyStruct"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/lib.rs"), - "struct_name": String("MyStruct"), - }, - { - "path": List([ - String("struct_now_doc_hidden"), - String("MyNestedPublicMod"), - String("PublicInnerMod"), - String("MyStruct"), - ]), - "span_begin_line": Uint64(38), - "span_filename": String("src/lib.rs"), - "struct_name": String("MyStruct"), - }, - { - "path": List([ - String("struct_now_doc_hidden"), - String("Example"), - ]), - "span_begin_line": Uint64(47), - "span_filename": String("src/lib.rs"), - "struct_name": String("Example"), - }, - ], - "./test_crates/struct_pub_field_now_doc_hidden/": [ - { - "path": List([ - String("struct_pub_field_now_doc_hidden"), - String("BothBecomeHidden"), - ]), - "span_begin_line": Uint64(15), - "span_filename": String("src/lib.rs"), - "struct_name": String("BothBecomeHidden"), - }, - ], - "./test_crates/type_hidden_from_public_api/": [ - { - "path": List([ - String("type_hidden_from_public_api"), - String("ExamplePlainStruct"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "struct_name": String("ExamplePlainStruct"), - }, - { - "path": List([ - String("type_hidden_from_public_api"), - String("ExampleTupleStruct"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/lib.rs"), - "struct_name": String("ExampleTupleStruct"), - }, - { - "path": List([ - String("type_hidden_from_public_api"), - String("ExampleUnitStruct"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/lib.rs"), - "struct_name": String("ExampleUnitStruct"), - }, - ], -} diff --git a/test_outputs/struct_pub_field_missing.output.ron b/test_outputs/struct_pub_field_missing.output.ron deleted file mode 100644 index 57676a06..00000000 --- a/test_outputs/struct_pub_field_missing.output.ron +++ /dev/null @@ -1,15 +0,0 @@ -{ - "./test_crates/struct_pub_field_missing/": [ - { - "field_name": String("bar"), - "path": List([ - String("struct_pub_field_missing"), - String("FieldWillBeRemoved"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "struct_name": String("FieldWillBeRemoved"), - "struct_type": String("plain"), - }, - ], -} diff --git a/test_outputs/struct_pub_field_now_doc_hidden.output.ron b/test_outputs/struct_pub_field_now_doc_hidden.output.ron deleted file mode 100644 index 8f9d5dca..00000000 --- a/test_outputs/struct_pub_field_now_doc_hidden.output.ron +++ /dev/null @@ -1,46 +0,0 @@ -{ - "./test_crates/struct_now_doc_hidden/": [ - { - "field_name": String("my_field"), - "path": List([ - String("struct_now_doc_hidden"), - String("PublicStructHiddenField"), - ]), - "span_begin_line": Uint64(49), - "span_filename": String("src/lib.rs"), - "struct_name": String("PublicStructHiddenField"), - }, - ], - "./test_crates/struct_pub_field_now_doc_hidden/": [ - { - "field_name": String("field"), - "path": List([ - String("struct_pub_field_now_doc_hidden"), - String("Plain"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "struct_name": String("Plain"), - }, - { - "field_name": String("0"), - "path": List([ - String("struct_pub_field_now_doc_hidden"), - String("Tuple"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "struct_name": String("Tuple"), - }, - { - "field_name": String("field"), - "path": List([ - String("struct_pub_field_now_doc_hidden"), - String("BothBecomeHidden"), - ]), - "span_begin_line": Uint64(15), - "span_filename": String("src/lib.rs"), - "struct_name": String("BothBecomeHidden"), - }, - ], -} diff --git a/test_outputs/struct_repr_transparent_removed.output.ron b/test_outputs/struct_repr_transparent_removed.output.ron deleted file mode 100644 index 89e42e12..00000000 --- a/test_outputs/struct_repr_transparent_removed.output.ron +++ /dev/null @@ -1,144 +0,0 @@ -{ - "./test_crates/struct_repr_transparent_removed/": [ - { - "name": String("Foo"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("struct_repr_transparent_removed"), - String("Foo"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "transparent_field_name": List([ - String("bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("Bar"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("struct_repr_transparent_removed"), - String("Bar"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "transparent_field_name": List([ - String("0"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("WithZeroSizedData"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("struct_repr_transparent_removed"), - String("WithZeroSizedData"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/lib.rs"), - "transparent_field_name": List([ - String("bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("TupleWithZeroSizedData"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("struct_repr_transparent_removed"), - String("TupleWithZeroSizedData"), - ]), - "span_begin_line": Uint64(12), - "span_filename": String("src/lib.rs"), - "transparent_field_name": List([ - String("0"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("WithPubZeroSizedData"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("struct_repr_transparent_removed"), - String("WithPubZeroSizedData"), - ]), - "span_begin_line": Uint64(14), - "span_filename": String("src/lib.rs"), - "transparent_field_name": List([ - String("bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("WithSpecificZeroSizedData"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("struct_repr_transparent_removed"), - String("WithSpecificZeroSizedData"), - ]), - "span_begin_line": Uint64(19), - "span_filename": String("src/lib.rs"), - "transparent_field_name": List([ - String("bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("WithFoo"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("struct_repr_transparent_removed"), - String("WithFoo"), - ]), - "span_begin_line": Uint64(24), - "span_filename": String("src/lib.rs"), - "transparent_field_name": List([ - String("bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("WithRef"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("struct_repr_transparent_removed"), - String("WithRef"), - ]), - "span_begin_line": Uint64(29), - "span_filename": String("src/lib.rs"), - "transparent_field_name": List([ - String("bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("WithTuple"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("struct_repr_transparent_removed"), - String("WithTuple"), - ]), - "span_begin_line": Uint64(34), - "span_filename": String("src/lib.rs"), - "transparent_field_name": List([ - String("bar"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("WithGeneric"), - "old_attr": String("#[repr(transparent)]"), - "path": List([ - String("struct_repr_transparent_removed"), - String("WithGeneric"), - ]), - "span_begin_line": Uint64(39), - "span_filename": String("src/lib.rs"), - "transparent_field_name": List([ - String("bar"), - ]), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/struct_with_pub_fields_changed_type.output.ron b/test_outputs/struct_with_pub_fields_changed_type.output.ron deleted file mode 100644 index e280efa3..00000000 --- a/test_outputs/struct_with_pub_fields_changed_type.output.ron +++ /dev/null @@ -1,30 +0,0 @@ -{ - "./test_crates/struct_becomes_enum/": [ - { - "current_typename": String("Enum"), - "name": String("PubFieldTuple"), - "path": List([ - String("struct_becomes_enum"), - String("PubFieldTuple"), - ]), - "span_begin_line": Uint64(14), - "span_filename": String("src/lib.rs"), - "struct_type": String("tuple"), - "struct_typename": String("Struct"), - "visibility_limit": String("public"), - }, - { - "current_typename": String("Enum"), - "name": String("PubFieldStruct"), - "path": List([ - String("struct_becomes_enum"), - String("PubFieldStruct"), - ]), - "span_begin_line": Uint64(18), - "span_filename": String("src/lib.rs"), - "struct_type": String("plain"), - "struct_typename": String("Struct"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_added_supertrait.output.ron b/test_outputs/trait_added_supertrait.output.ron deleted file mode 100644 index bc16d62d..00000000 --- a/test_outputs/trait_added_supertrait.output.ron +++ /dev/null @@ -1,102 +0,0 @@ -{ - "./test_crates/trait_added_supertrait/": [ - { - "path": List([ - String("trait_added_supertrait"), - String("WillGainOne"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - "supertrait": String("TraitOne"), - "visibility_limit": String("public"), - }, - { - "path": List([ - String("trait_added_supertrait"), - String("WillGainAnotherOne"), - ]), - "span_begin_line": Uint64(14), - "span_filename": String("src/lib.rs"), - "supertrait": String("TraitTwo"), - "visibility_limit": String("public"), - }, - { - "path": List([ - String("trait_added_supertrait"), - String("WillGainStdOne"), - ]), - "span_begin_line": Uint64(17), - "span_filename": String("src/lib.rs"), - "supertrait": String("Sync"), - "visibility_limit": String("public"), - }, - { - "path": List([ - String("trait_added_supertrait"), - String("WillGainStdTwo"), - ]), - "span_begin_line": Uint64(18), - "span_filename": String("src/lib.rs"), - "supertrait": String("Debug"), - "visibility_limit": String("public"), - }, - { - "path": List([ - String("trait_added_supertrait"), - String("WillGainStdThree"), - ]), - "span_begin_line": Uint64(19), - "span_filename": String("src/lib.rs"), - "supertrait": String("PartialEq"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_associated_const_added/": [ - { - "path": List([ - String("trait_associated_const_added"), - String("WillGainConstWithoutDefaultAndSeal"), - ]), - "span_begin_line": Uint64(16), - "span_filename": String("src/lib.rs"), - "supertrait": String("Sealed"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_associated_type_added/": [ - { - "path": List([ - String("trait_associated_type_added"), - String("WillGainTypeWithoutDefaultAndSeal"), - ]), - "span_begin_line": Uint64(19), - "span_filename": String("src/lib.rs"), - "supertrait": String("Sealed"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_method_added/": [ - { - "path": List([ - String("trait_method_added"), - String("WillGainMethodWithoutDefaultAndSeal"), - ]), - "span_begin_line": Uint64(20), - "span_filename": String("src/lib.rs"), - "supertrait": String("Sealed"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_newly_sealed/": [ - { - "path": List([ - String("trait_newly_sealed"), - String("TraitBecomesSealed"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/lib.rs"), - "supertrait": String("Sealed"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_associated_const_added.output.ron b/test_outputs/trait_associated_const_added.output.ron deleted file mode 100644 index b03736db..00000000 --- a/test_outputs/trait_associated_const_added.output.ron +++ /dev/null @@ -1,61 +0,0 @@ -{ - "./test_crates/inherent_associated_pub_const_missing/": [ - { - "associated_constant": String("N_B"), - "default": Null, - "path": List([ - String("inherent_associated_pub_const_missing"), - String("TraitB"), - ]), - "span_begin_line": Uint64(69), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_associated_const_added/": [ - { - "associated_constant": String("BAR"), - "default": Null, - "path": List([ - String("trait_associated_const_added"), - String("WillGainConstWithoutDefault"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "associated_constant": String("BAR"), - "default": Null, - "path": List([ - String("trait_associated_const_added"), - String("WillGainConstWithoutDefaultAndSeal"), - ]), - "span_begin_line": Uint64(17), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "associated_constant": String("TWO"), - "default": Null, - "path": List([ - String("trait_associated_const_added"), - String("WillGainAnotherConstWithoutDefault"), - ]), - "span_begin_line": Uint64(35), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "associated_constant": String("BAR"), - "default": Null, - "path": List([ - String("trait_associated_const_added"), - String("WillGainADocHiddenConst"), - ]), - "span_begin_line": Uint64(48), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_associated_const_default_removed.output.ron b/test_outputs/trait_associated_const_default_removed.output.ron deleted file mode 100644 index 4abd2ab3..00000000 --- a/test_outputs/trait_associated_const_default_removed.output.ron +++ /dev/null @@ -1,28 +0,0 @@ -{ - "./test_crates/trait_associated_const_default_removed/": [ - { - "associated_constant": String("ONE"), - "default": Null, - "path": List([ - String("trait_associated_const_default_removed"), - String("WillLoseDefault"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_items_hidden_from_public_api/": [ - { - "associated_constant": String("DEFAULT_REMOVED"), - "default": Null, - "path": List([ - String("trait_items_hidden_from_public_api"), - String("NonSealed"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_associated_const_now_doc_hidden.output.ron b/test_outputs/trait_associated_const_now_doc_hidden.output.ron deleted file mode 100644 index 5345aa0f..00000000 --- a/test_outputs/trait_associated_const_now_doc_hidden.output.ron +++ /dev/null @@ -1,14 +0,0 @@ -{ - "./test_crates/trait_associated_const_now_doc_hidden/": [ - { - "associated_constant": String("CONST_A"), - "path": List([ - String("trait_associated_const_now_doc_hidden"), - String("PubTraitA"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "trait_name": String("PubTraitA"), - }, - ] -} diff --git a/test_outputs/trait_associated_type_added.output.ron b/test_outputs/trait_associated_type_added.output.ron deleted file mode 100644 index 76aeab57..00000000 --- a/test_outputs/trait_associated_type_added.output.ron +++ /dev/null @@ -1,48 +0,0 @@ -{ - "./test_crates/trait_associated_type_added/": [ - { - "associated_type": String("Bar"), - "has_default": Boolean(false), - "path": List([ - String("trait_associated_type_added"), - String("WillGainTypeWithoutDefault"), - ]), - "span_begin_line": Uint64(8), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "associated_type": String("Bar"), - "has_default": Boolean(false), - "path": List([ - String("trait_associated_type_added"), - String("WillGainTypeWithoutDefaultAndSeal"), - ]), - "span_begin_line": Uint64(20), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "associated_type": String("Two"), - "has_default": Boolean(false), - "path": List([ - String("trait_associated_type_added"), - String("WillGainAnotherTypeWithoutDefault"), - ]), - "span_begin_line": Uint64(39), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "associated_type": String("Bar"), - "has_default": Boolean(false), - "path": List([ - String("trait_associated_type_added"), - String("WillGainADocHiddenType"), - ]), - "span_begin_line": Uint64(53), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_associated_type_default_removed.output.ron b/test_outputs/trait_associated_type_default_removed.output.ron deleted file mode 100644 index d3615063..00000000 --- a/test_outputs/trait_associated_type_default_removed.output.ron +++ /dev/null @@ -1,15 +0,0 @@ -{ - "./test_crates/trait_associated_type_default_removed/": [ - { - "associated_type": String("Foo"), - "has_default": Boolean(false), - "path": List([ - String("trait_associated_type_default_removed"), - String("WillLoseDefault"), - ]), - "span_begin_line": Uint64(8), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_associated_type_now_doc_hidden.output.ron b/test_outputs/trait_associated_type_now_doc_hidden.output.ron deleted file mode 100644 index 66b3ec0c..00000000 --- a/test_outputs/trait_associated_type_now_doc_hidden.output.ron +++ /dev/null @@ -1,14 +0,0 @@ -{ - "./test_crates/trait_associated_type_now_doc_hidden/": [ - { - "associated_type": String("TypeA"), - "path": List([ - String("trait_associated_type_now_doc_hidden"), - String("PubTraitA"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "trait_name": String("PubTraitA"), - }, - ], -} diff --git a/test_outputs/trait_method_added.output.ron b/test_outputs/trait_method_added.output.ron deleted file mode 100644 index c1589c82..00000000 --- a/test_outputs/trait_method_added.output.ron +++ /dev/null @@ -1,360 +0,0 @@ -{ - "./test_crates/method_moved_to_trait_must_use_added/": [ - { - "method_name": String("MethodToMovedDeclaredMustUseMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("enum_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(49), - "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MethodToMovedDeclaredMustUseMessageMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("enum_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(52), - "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MustUseMethodToMovedDeclaredMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("enum_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(54), - "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MustUseMethodToMovedDeclaredMustUseMessageMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("enum_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(57), - "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MustUseMessageMethodToMovedDeclaredMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("enum_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(59), - "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MustUseMessageMethodToMovedDeclaredMustUseMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("enum_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(62), - "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MustUseMessageMethodToMovedDeclaredMustUseMessageMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("enum_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(65), - "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MethodToMovedImplDeclaredMustUseMethod"), - "name": String("TraitWithMovedImplMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("enum_method_moved_to_trait_must_use_added"), - String("TraitWithMovedImplMustUseMethods"), - ]), - "span_begin_line": Uint64(135), - "span_filename": String("src/enum_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MethodToMovedDeclaredMustUseMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("struct_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(45), - "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MethodToMovedDeclaredMustUseMessageMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("struct_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(48), - "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MustUseMethodToMovedDeclaredMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("struct_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(50), - "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MustUseMethodToMovedDeclaredMustUseMessageMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("struct_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(53), - "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MustUseMessageMethodToMovedDeclaredMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("struct_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(55), - "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MustUseMessageMethodToMovedDeclaredMustUseMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("struct_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(58), - "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MustUseMessageMethodToMovedDeclaredMustUseMessageMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("struct_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(61), - "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MethodToMovedImplDeclaredMustUseMethod"), - "name": String("TraitWithMovedImplMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("struct_method_moved_to_trait_must_use_added"), - String("TraitWithMovedImplMustUseMethods"), - ]), - "span_begin_line": Uint64(127), - "span_filename": String("src/struct_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MethodToMovedDeclaredMustUseMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("union_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(49), - "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MethodToMovedDeclaredMustUseMessageMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("union_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(52), - "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MustUseMethodToMovedDeclaredMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("union_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(54), - "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MustUseMethodToMovedDeclaredMustUseMessageMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("union_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(57), - "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MustUseMessageMethodToMovedDeclaredMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("union_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(59), - "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MustUseMessageMethodToMovedDeclaredMustUseMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("union_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(62), - "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MustUseMessageMethodToMovedDeclaredMustUseMessageMethod"), - "name": String("TraitWithMovedDeclaredMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("union_method_moved_to_trait_must_use_added"), - String("TraitWithMovedDeclaredMustUseMethods"), - ]), - "span_begin_line": Uint64(65), - "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("MethodToMovedImplDeclaredMustUseMethod"), - "name": String("TraitWithMovedImplMustUseMethods"), - "path": List([ - String("method_moved_to_trait_must_use_added"), - String("union_method_moved_to_trait_must_use_added"), - String("TraitWithMovedImplMustUseMethods"), - ]), - "span_begin_line": Uint64(135), - "span_filename": String("src/union_method_moved_to_trait_must_use_added.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_method_added/": [ - { - "method_name": String("one_method"), - "name": String("WillGainMethodWithoutDefault"), - "path": List([ - String("trait_method_added"), - String("WillGainMethodWithoutDefault"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("two_method"), - "name": String("WillGainAnotherMethodWithoutDefault"), - "path": List([ - String("trait_method_added"), - String("WillGainAnotherMethodWithoutDefault"), - ]), - "span_begin_line": Uint64(12), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("one_method"), - "name": String("WillGainMultipleMethodsWithoutDefault"), - "path": List([ - String("trait_method_added"), - String("WillGainMultipleMethodsWithoutDefault"), - ]), - "span_begin_line": Uint64(16), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("two_method"), - "name": String("WillGainMultipleMethodsWithoutDefault"), - "path": List([ - String("trait_method_added"), - String("WillGainMultipleMethodsWithoutDefault"), - ]), - "span_begin_line": Uint64(17), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("one_method"), - "name": String("WillGainMethodWithoutDefaultAndSeal"), - "path": List([ - String("trait_method_added"), - String("WillGainMethodWithoutDefaultAndSeal"), - ]), - "span_begin_line": Uint64(21), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("one_method"), - "name": String("WIllGainDocHiddenMethodWithoutDefault"), - "path": List([ - String("trait_method_added"), - String("WIllGainDocHiddenMethodWithoutDefault"), - ]), - "span_begin_line": Uint64(26), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_method_default_impl_removed.output.ron b/test_outputs/trait_method_default_impl_removed.output.ron deleted file mode 100644 index 888cf96f..00000000 --- a/test_outputs/trait_method_default_impl_removed.output.ron +++ /dev/null @@ -1,61 +0,0 @@ -{ - "./test_crates/trait_method_default_impl_removed/": [ - { - "method_name": String("method_default_impl_removed"), - "name": String("TraitA"), - "path": List([ - String("trait_method_default_impl_removed"), - String("TraitA"), - ]), - "span_begin_line": Uint64(8), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("method_default_impl_removed_and_becomes_non_obj_safe"), - "name": String("TraitD"), - "path": List([ - String("trait_method_default_impl_removed"), - String("TraitD"), - ]), - "span_begin_line": Uint64(22), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("method_default_impl_removed_and_becomes_sealed"), - "name": String("TraitE"), - "path": List([ - String("trait_method_default_impl_removed"), - String("TraitE"), - ]), - "span_begin_line": Uint64(27), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("method_partially_sealed_has_default_impl_removed"), - "name": String("TraitF"), - "path": List([ - String("trait_method_default_impl_removed"), - String("TraitF"), - ]), - "span_begin_line": Uint64(32), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_no_longer_object_safe/": [ - { - "method_name": String("by_ref"), - "name": String("RefTrait"), - "path": List([ - String("trait_no_longer_object_safe"), - String("RefTrait"), - ]), - "span_begin_line": Uint64(3), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_method_missing.output.ron b/test_outputs/trait_method_missing.output.ron deleted file mode 100644 index 84a4be7f..00000000 --- a/test_outputs/trait_method_missing.output.ron +++ /dev/null @@ -1,28 +0,0 @@ -{ - "./test_crates/trait_method_default_impl_removed/": [ - { - "method_name": String("method_becomes_removed"), - "name": String("TraitB"), - "path": List([ - String("trait_method_default_impl_removed"), - String("TraitB"), - ]), - "span_begin_line": Uint64(14), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_method_missing/": [ - { - "method_name": String("fooA"), - "name": String("RemovedTraitMethod"), - "path": List([ - String("trait_method_missing"), - String("RemovedTraitMethod"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_method_now_doc_hidden.output.ron b/test_outputs/trait_method_now_doc_hidden.output.ron deleted file mode 100644 index 1bfbeee4..00000000 --- a/test_outputs/trait_method_now_doc_hidden.output.ron +++ /dev/null @@ -1,33 +0,0 @@ -{ - "./test_crates/trait_method_now_doc_hidden/": [ - { - "name": String("assoc_function"), - "path": List([ - String("trait_method_now_doc_hidden"), - String("PublicTrait"), - ]), - "span_begin_line": Uint64(14), - "span_filename": String("src/lib.rs"), - }, - { - "name": String("method"), - "path": List([ - String("trait_method_now_doc_hidden"), - String("PublicTrait"), - ]), - "span_begin_line": Uint64(16), - "span_filename": String("src/lib.rs"), - }, - ], - "./test_crates/trait_now_doc_hidden/": [ - { - "name": String("my_trait_fn"), - "path": List([ - String("trait_now_doc_hidden"), - String("PublicTraitHiddenVariant"), - ]), - "span_begin_line": Uint64(54), - "span_filename": String("src/lib.rs"), - }, - ], -} diff --git a/test_outputs/trait_method_unsafe_added.output.ron b/test_outputs/trait_method_unsafe_added.output.ron deleted file mode 100644 index e235b5fb..00000000 --- a/test_outputs/trait_method_unsafe_added.output.ron +++ /dev/null @@ -1,34 +0,0 @@ -{ - "./test_crates/trait_method_unsafe_added/": [ - { - "method_name": String("becomes_unsafe"), - "path": List([ - String("trait_method_unsafe_added"), - String("PubTrait"), - ]), - "span_begin_line": Uint64(3), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("becomes_unsafe"), - "path": List([ - String("trait_method_unsafe_added"), - String("TraitBecomesUnsafe"), - ]), - "span_begin_line": Uint64(24), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("becomes_unsafe"), - "path": List([ - String("trait_method_unsafe_added"), - String("SealedTrait"), - ]), - "span_begin_line": Uint64(35), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_method_unsafe_removed.output.ron b/test_outputs/trait_method_unsafe_removed.output.ron deleted file mode 100644 index 2fd8ddb0..00000000 --- a/test_outputs/trait_method_unsafe_removed.output.ron +++ /dev/null @@ -1,44 +0,0 @@ -{ - "./test_crates/trait_method_unsafe_removed/": [ - { - "method_name": String("becomes_safe"), - "path": List([ - String("trait_method_unsafe_removed"), - String("PubTrait"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("becomes_safe"), - "path": List([ - String("trait_method_unsafe_removed"), - String("TraitBecomesSafe"), - ]), - "span_begin_line": Uint64(26), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("becomes_safe"), - "path": List([ - String("trait_method_unsafe_removed"), - String("UnsealedTrait"), - ]), - "span_begin_line": Uint64(48), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "method_name": String("becomes_safe"), - "path": List([ - String("trait_method_unsafe_removed"), - String("TraitWithStdSupertrait"), - ]), - "span_begin_line": Uint64(60), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_missing.output.ron b/test_outputs/trait_missing.output.ron deleted file mode 100644 index e79fc2be..00000000 --- a/test_outputs/trait_missing.output.ron +++ /dev/null @@ -1,196 +0,0 @@ -{ - "./test_crates/switch_to_reexport_as_underscore/": [ - { - "name": String("Trait"), - "path": List([ - String("switch_to_reexport_as_underscore"), - String("Trait"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_associated_type_removed/": [ - { - "name": String("RemovedTrait"), - "path": List([ - String("trait_associated_type_removed"), - String("RemovedTrait"), - ]), - "span_begin_line": Uint64(22), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_method_missing/": [ - { - "name": String("RemovedTraitWithMethod"), - "path": List([ - String("trait_method_missing"), - String("RemovedTraitWithMethod"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_method_unsafe_added/": [ - { - "name": String("TraitBecomesPrivate"), - "path": List([ - String("trait_method_unsafe_added"), - String("TraitBecomesPrivate"), - ]), - "span_begin_line": Uint64(17), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_method_unsafe_removed/": [ - { - "name": String("TraitBecomesPrivate"), - "path": List([ - String("trait_method_unsafe_removed"), - String("TraitBecomesPrivate"), - ]), - "span_begin_line": Uint64(19), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_missing/": [ - { - "name": String("RemovedTrait"), - "path": List([ - String("trait_missing"), - String("RemovedTrait"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("RemovedUnsafeTrait"), - "path": List([ - String("trait_missing"), - String("RemovedUnsafeTrait"), - ]), - "span_begin_line": Uint64(3), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PubUseRemovedTrait"), - "path": List([ - String("trait_missing"), - String("my_pub_mod"), - String("PubUseRemovedTrait"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PubUseRemovedTrait"), - "path": List([ - String("trait_missing"), - String("PubUseRemovedTrait"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_missing_with_major_bump/": [ - { - "name": String("RemovedTrait"), - "path": List([ - String("trait_missing_with_major_bump"), - String("RemovedTrait"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("RemovedUnsafeTrait"), - "path": List([ - String("trait_missing_with_major_bump"), - String("RemovedUnsafeTrait"), - ]), - "span_begin_line": Uint64(3), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PubUseRemovedTrait"), - "path": List([ - String("trait_missing_with_major_bump"), - String("my_pub_mod"), - String("PubUseRemovedTrait"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PubUseRemovedTrait"), - "path": List([ - String("trait_missing_with_major_bump"), - String("PubUseRemovedTrait"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_removed_associated_constant/": [ - { - "name": String("RemovedTrait"), - "path": List([ - String("trait_removed_associated_constant"), - String("RemovedTrait"), - ]), - "span_begin_line": Uint64(21), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_unsafe_added/": [ - { - "name": String("TraitBecomesPrivateAndUnsafe"), - "path": List([ - String("trait_unsafe_added"), - String("TraitBecomesPrivateAndUnsafe"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_unsafe_removed/": [ - { - "name": String("TraitBecomesPrivateAndSafe"), - "path": List([ - String("trait_unsafe_removed"), - String("TraitBecomesPrivateAndSafe"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_newly_sealed/": [ - { - "name": String("TraitBecomesPrivateAndSealed"), - "path": List([ - String("trait_newly_sealed"), - String("TraitBecomesPrivateAndSealed"), - ]), - "span_begin_line": Uint64(18), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_must_use_added.output.ron b/test_outputs/trait_must_use_added.output.ron deleted file mode 100644 index 8c0807e5..00000000 --- a/test_outputs/trait_must_use_added.output.ron +++ /dev/null @@ -1,26 +0,0 @@ -{ - "./test_crates/trait_must_use_added/": [ - { - "name": String("TraitToMustUseTrait"), - "new_attr": String("#[must_use]"), - "path": List([ - String("trait_must_use_added"), - String("TraitToMustUseTrait"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("TraitToMustUseMessageTrait"), - "new_attr": String("#[must_use = \"Foo\"]"), - "path": List([ - String("trait_must_use_added"), - String("TraitToMustUseMessageTrait"), - ]), - "span_begin_line": Uint64(8), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_newly_sealed.output.ron b/test_outputs/trait_newly_sealed.output.ron deleted file mode 100644 index 42cd1032..00000000 --- a/test_outputs/trait_newly_sealed.output.ron +++ /dev/null @@ -1,82 +0,0 @@ -{ - "./test_crates/trait_associated_const_added/": [ - { - "name": String("WillGainConstWithoutDefaultAndSeal"), - "path": List([ - String("trait_associated_const_added"), - String("WillGainConstWithoutDefaultAndSeal"), - ]), - "span_begin_line": Uint64(16), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_method_added/": [ - { - "name": String("WillGainMethodWithoutDefaultAndSeal"), - "path": List([ - String("trait_method_added"), - String("WillGainMethodWithoutDefaultAndSeal"), - ]), - "span_begin_line": Uint64(20), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_newly_sealed/": [ - { - "name": String("TraitBecomesSealed"), - "path": List([ - String("trait_newly_sealed"), - String("TraitBecomesSealed"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("TraitMethodBecomesSealed"), - "path": List([ - String("trait_newly_sealed"), - String("TraitMethodBecomesSealed"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_associated_type_added/": [ - { - "name": String("WillGainTypeWithoutDefaultAndSeal"), - "path": List([ - String("trait_associated_type_added"), - String("WillGainTypeWithoutDefaultAndSeal"), - ]), - "span_begin_line": Uint64(19), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_method_default_impl_removed/": [ - { - "name": String("TraitE"), - "path": List([ - String("trait_method_default_impl_removed"), - String("TraitE"), - ]), - "span_begin_line": Uint64(26), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("TraitF"), - "path": List([ - String("trait_method_default_impl_removed"), - String("TraitF"), - ]), - "span_begin_line": Uint64(31), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_no_longer_object_safe.output.ron b/test_outputs/trait_no_longer_object_safe.output.ron deleted file mode 100644 index b78ecb79..00000000 --- a/test_outputs/trait_no_longer_object_safe.output.ron +++ /dev/null @@ -1,48 +0,0 @@ -{ - "./test_crates/inherent_associated_pub_const_missing/": [ - { - "name": String("TraitA"), - "path": List([ - String("inherent_associated_pub_const_missing"), - String("TraitA"), - ]), - "span_begin_line": Uint64(59), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("TraitB"), - "path": List([ - String("inherent_associated_pub_const_missing"), - String("TraitB"), - ]), - "span_begin_line": Uint64(68), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_method_default_impl_removed/": [ - { - "name": String("TraitD"), - "path": List([ - String("trait_method_default_impl_removed"), - String("TraitD"), - ]), - "span_begin_line": Uint64(21), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_no_longer_object_safe/": [ - { - "name": String("RefTrait"), - "path": List([ - String("trait_no_longer_object_safe"), - String("RefTrait"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_now_doc_hidden.output.ron b/test_outputs/trait_now_doc_hidden.output.ron deleted file mode 100644 index 1e50c17c..00000000 --- a/test_outputs/trait_now_doc_hidden.output.ron +++ /dev/null @@ -1,56 +0,0 @@ -{ - "./test_crates/trait_associated_const_now_doc_hidden/": [ - { - "path": List([ - String("trait_associated_const_now_doc_hidden"), - String("PubTraitB"), - ]), - "span_begin_line": Uint64(18), - "span_filename": String("src/lib.rs"), - "trait_name": String("PubTraitB"), - }, - ], - "./test_crates/trait_associated_type_now_doc_hidden/": [ - { - "path": List([ - String("trait_associated_type_now_doc_hidden"), - String("PubTraitB"), - ]), - "span_begin_line": Uint64(18), - "span_filename": String("src/lib.rs"), - "trait_name": String("PubTraitB"), - }, - ], - "./test_crates/trait_now_doc_hidden/": [ - { - "path": List([ - String("trait_now_doc_hidden"), - String("MyPublicMod"), - String("MyTrait"), - ]), - "span_begin_line": Uint64(13), - "span_filename": String("src/lib.rs"), - "trait_name": String("MyTrait"), - }, - { - "path": List([ - String("trait_now_doc_hidden"), - String("MyNestedPublicMod"), - String("PublicInnerMod"), - String("MyTrait"), - ]), - "span_begin_line": Uint64(38), - "span_filename": String("src/lib.rs"), - "trait_name": String("MyTrait"), - }, - { - "path": List([ - String("trait_now_doc_hidden"), - String("Example"), - ]), - "span_begin_line": Uint64(47), - "span_filename": String("src/lib.rs"), - "trait_name": String("Example"), - }, - ], -} diff --git a/test_outputs/trait_removed_associated_constant.output.ron b/test_outputs/trait_removed_associated_constant.output.ron deleted file mode 100644 index 54ba4cc4..00000000 --- a/test_outputs/trait_removed_associated_constant.output.ron +++ /dev/null @@ -1,26 +0,0 @@ -{ - "./test_crates/trait_removed_associated_constant/": [ - { - "associated_constant": String("APPLE"), - "path": List([ - String("trait_removed_associated_constant"), - String("RemovedAssociatedConstantFromTrait"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "trait_name": String("RemovedAssociatedConstantFromTrait"), - "visibility_limit": String("public"), - }, - { - "associated_constant": String("APPLE"), - "path": List([ - String("trait_removed_associated_constant"), - String("RemovedAssociatedConstantDefaultFromTrait"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/lib.rs"), - "trait_name": String("RemovedAssociatedConstantDefaultFromTrait"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_removed_associated_type.output.ron b/test_outputs/trait_removed_associated_type.output.ron deleted file mode 100644 index 9c5ab6dd..00000000 --- a/test_outputs/trait_removed_associated_type.output.ron +++ /dev/null @@ -1,26 +0,0 @@ -{ - "./test_crates/trait_associated_type_removed/": [ - { - "associated_type": String("Apple"), - "path": List([ - String("trait_associated_type_removed"), - String("RemovedTypeFromTrait"), - ]), - "span_begin_line": Uint64(3), - "span_filename": String("src/lib.rs"), - "trait_name": String("RemovedTypeFromTrait"), - "visibility_limit": String("public"), - }, - { - "associated_type": String("MyType"), - "path": List([ - String("trait_associated_type_removed"), - String("RemovedTypeDefaultFromTrait"), - ]), - "span_begin_line": Uint64(11), - "span_filename": String("src/lib.rs"), - "trait_name": String("RemovedTypeDefaultFromTrait"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_removed_supertrait.output.ron b/test_outputs/trait_removed_supertrait.output.ron deleted file mode 100644 index 4229f8bd..00000000 --- a/test_outputs/trait_removed_supertrait.output.ron +++ /dev/null @@ -1,102 +0,0 @@ -{ - "./test_crates/trait_removed_supertrait/": [ - { - "name": String("RemovingSingleTrait"), - "path": List([ - String("trait_removed_supertrait"), - String("RemovingSingleTrait"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "trait_path": List([ - String("trait_removed_supertrait"), - String("SuperTrait"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("RemovingOneTraitOfMultiple"), - "path": List([ - String("trait_removed_supertrait"), - String("RemovingOneTraitOfMultiple"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "trait_path": List([ - String("trait_removed_supertrait"), - String("SuperTrait2"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("RemovingOneWithGenerics"), - "path": List([ - String("trait_removed_supertrait"), - String("RemovingOneWithGenerics"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/lib.rs"), - "trait_path": List([ - String("trait_removed_supertrait"), - String("SuperTrait2"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("RemovingOneWithGenericsOnTheSuperTrait"), - "path": List([ - String("trait_removed_supertrait"), - String("RemovingOneWithGenericsOnTheSuperTrait"), - ]), - "span_begin_line": Uint64(8), - "span_filename": String("src/lib.rs"), - "trait_path": List([ - String("trait_removed_supertrait"), - String("GenericSuperTrait"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("RemovingTraitAndLifetime"), - "path": List([ - String("trait_removed_supertrait"), - String("RemovingTraitAndLifetime"), - ]), - "span_begin_line": Uint64(9), - "span_filename": String("src/lib.rs"), - "trait_path": List([ - String("trait_removed_supertrait"), - String("SuperTrait2"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("RemovingMultiple"), - "path": List([ - String("trait_removed_supertrait"), - String("RemovingMultiple"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/lib.rs"), - "trait_path": List([ - String("trait_removed_supertrait"), - String("SuperTrait"), - ]), - "visibility_limit": String("public"), - }, - { - "name": String("RemovingMultiple"), - "path": List([ - String("trait_removed_supertrait"), - String("RemovingMultiple"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/lib.rs"), - "trait_path": List([ - String("trait_removed_supertrait"), - String("SuperTrait2"), - ]), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_unsafe_added.output.ron b/test_outputs/trait_unsafe_added.output.ron deleted file mode 100644 index 2313c6ed..00000000 --- a/test_outputs/trait_unsafe_added.output.ron +++ /dev/null @@ -1,50 +0,0 @@ -{ - "./test_crates/trait_method_unsafe_added/": [ - { - "name": String("TraitBecomesUnsafe"), - "path": List([ - String("trait_method_unsafe_added"), - String("TraitBecomesUnsafe"), - ]), - "span_begin_line": Uint64(23), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_missing/": [ - { - "name": String("TraitBecomesUnsafe"), - "path": List([ - String("trait_missing"), - String("TraitBecomesUnsafe"), - ]), - "span_begin_line": Uint64(9), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_missing_with_major_bump/": [ - { - "name": String("TraitBecomesUnsafe"), - "path": List([ - String("trait_missing_with_major_bump"), - String("TraitBecomesUnsafe"), - ]), - "span_begin_line": Uint64(9), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_unsafe_added/": [ - { - "name": String("TraitBecomesUnsafe"), - "path": List([ - String("trait_unsafe_added"), - String("TraitBecomesUnsafe"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/trait_unsafe_removed.output.ron b/test_outputs/trait_unsafe_removed.output.ron deleted file mode 100644 index c6e7db4b..00000000 --- a/test_outputs/trait_unsafe_removed.output.ron +++ /dev/null @@ -1,50 +0,0 @@ -{ - "./test_crates/trait_missing/": [ - { - "name": String("TraitStopsBeingUnsafe"), - "path": List([ - String("trait_missing"), - String("TraitStopsBeingUnsafe"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_missing_with_major_bump/": [ - { - "name": String("TraitStopsBeingUnsafe"), - "path": List([ - String("trait_missing_with_major_bump"), - String("TraitStopsBeingUnsafe"), - ]), - "span_begin_line": Uint64(6), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_unsafe_removed/": [ - { - "name": String("TraitBecomesSafe"), - "path": List([ - String("trait_unsafe_removed"), - String("TraitBecomesSafe"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/trait_method_unsafe_removed/": [ - { - "name": String("TraitBecomesSafe"), - "path": List([ - String("trait_method_unsafe_removed"), - String("TraitBecomesSafe"), - ]), - "span_begin_line": Uint64(25), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/tuple_struct_to_plain_struct.output.ron b/test_outputs/tuple_struct_to_plain_struct.output.ron deleted file mode 100644 index a0dfffd8..00000000 --- a/test_outputs/tuple_struct_to_plain_struct.output.ron +++ /dev/null @@ -1,48 +0,0 @@ -{ - "./test_crates/constructible_struct_adds_field/": [ - { - "name": String("TupleToPlainStruct"), - "path": List([ - String("constructible_struct_adds_field"), - String("TupleToPlainStruct"), - ]), - "span_begin_line": Uint64(59), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/constructible_struct_adds_private_field/": [ - { - "name": String("TupleToPlainStruct"), - "path": List([ - String("constructible_struct_adds_private_field"), - String("TupleToPlainStruct"), - ]), - "span_begin_line": Uint64(59), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/tuple_struct_to_plain_struct/": [ - { - "name": String("TupleToPlainStructPublicFields"), - "path": List([ - String("tuple_struct_to_plain_struct"), - String("TupleToPlainStructPublicFields"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("TupleToPlainStructEmpty"), - "path": List([ - String("tuple_struct_to_plain_struct"), - String("TupleToPlainStructEmpty"), - ]), - "span_begin_line": Uint64(24), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/type_marked_deprecated.output.ron b/test_outputs/type_marked_deprecated.output.ron deleted file mode 100644 index a5caece9..00000000 --- a/test_outputs/type_marked_deprecated.output.ron +++ /dev/null @@ -1,76 +0,0 @@ -{ - "./test_crates/type_marked_deprecated/": [ - { - "name": String("EnumToDeprecatedEnum"), - "owner_type": String("Enum"), - "path": List([ - String("type_marked_deprecated"), - String("enums"), - String("EnumToDeprecatedEnum"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/enums.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("EnumToDeprecatedMessageEnum"), - "owner_type": String("Enum"), - "path": List([ - String("type_marked_deprecated"), - String("enums"), - String("EnumToDeprecatedMessageEnum"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/enums.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("StructToDeprecatedStruct"), - "owner_type": String("Struct"), - "path": List([ - String("type_marked_deprecated"), - String("structs"), - String("StructToDeprecatedStruct"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/structs.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("StructToDeprecatedMessageStruct"), - "owner_type": String("Struct"), - "path": List([ - String("type_marked_deprecated"), - String("structs"), - String("StructToDeprecatedMessageStruct"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/structs.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("UnionToDeprecatedUnion"), - "owner_type": String("Union"), - "path": List([ - String("type_marked_deprecated"), - String("unions"), - String("UnionToDeprecatedUnion"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/unions.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("UnionToDeprecatedMessageUnion"), - "owner_type": String("Union"), - "path": List([ - String("type_marked_deprecated"), - String("unions"), - String("UnionToDeprecatedMessageUnion"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/unions.rs"), - "visibility_limit": String("public"), - }, - ] -} diff --git a/test_outputs/union_field_missing.output.ron b/test_outputs/union_field_missing.output.ron deleted file mode 100644 index 7c132ce1..00000000 --- a/test_outputs/union_field_missing.output.ron +++ /dev/null @@ -1,24 +0,0 @@ -{ - "./test_crates/union_field_missing/": [ - { - "field_name": String("f2"), - "path": List([ - String("union_field_missing"), - String("PubUnionPubFieldRenamed"), - ]), - "span_begin_line": Uint64(16), - "span_filename": String("src/lib.rs"), - "union_name": String("PubUnionPubFieldRenamed"), - }, - { - "field_name": String("f2"), - "path": List([ - String("union_field_missing"), - String("PubUnionPubFieldRemoved"), - ]), - "span_begin_line": Uint64(22), - "span_filename": String("src/lib.rs"), - "union_name": String("PubUnionPubFieldRemoved"), - }, - ] -} diff --git a/test_outputs/union_missing.output.ron b/test_outputs/union_missing.output.ron deleted file mode 100644 index a118e12d..00000000 --- a/test_outputs/union_missing.output.ron +++ /dev/null @@ -1,68 +0,0 @@ -{ - "./test_crates/repr_packed_added_removed/": [ - { - "name": String("UnionBecomesPackedAndPrivate"), - "path": List([ - String("repr_packed_added_removed"), - String("UnionBecomesPackedAndPrivate"), - ]), - "span_begin_line": Uint64(41), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("UnionBecomesUnpackedAndPrivate"), - "path": List([ - String("repr_packed_added_removed"), - String("UnionBecomesUnpackedAndPrivate"), - ]), - "span_begin_line": Uint64(47), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/union_field_missing/": [ - { - "name": String("PubUnionBecomesPrivateAndPubFieldRemoved"), - "path": List([ - String("union_field_missing"), - String("PubUnionBecomesPrivateAndPubFieldRemoved"), - ]), - "span_begin_line": Uint64(26), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], - "./test_crates/union_missing/": [ - { - "name": String("PubUnionRemoved"), - "path": List([ - String("union_missing"), - String("PubUnionRemoved"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PubUnionBecomesPrivate"), - "path": List([ - String("union_missing"), - String("PubUnionBecomesPrivate"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("PubUnion"), - "path": List([ - String("union_missing"), - String("PubUseUnionRemoved"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/union_must_use_added.output.ron b/test_outputs/union_must_use_added.output.ron deleted file mode 100644 index 3b677dab..00000000 --- a/test_outputs/union_must_use_added.output.ron +++ /dev/null @@ -1,26 +0,0 @@ -{ - "./test_crates/union_must_use_added/": [ - { - "name": String("UnionToMustUseUnion"), - "new_attr": String("#[must_use]"), - "path": List([ - String("union_must_use_added"), - String("UnionToMustUseUnion"), - ]), - "span_begin_line": Uint64(5), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - { - "name": String("UnionToMustUseMessageUnion"), - "new_attr": String("#[must_use = \"Foo\"]"), - "path": List([ - String("union_must_use_added"), - String("UnionToMustUseMessageUnion"), - ]), - "span_begin_line": Uint64(10), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -} diff --git a/test_outputs/union_now_doc_hidden.output.ron b/test_outputs/union_now_doc_hidden.output.ron deleted file mode 100644 index 74ff839a..00000000 --- a/test_outputs/union_now_doc_hidden.output.ron +++ /dev/null @@ -1,44 +0,0 @@ -{ - "./test_crates/type_hidden_from_public_api/": [ - { - "path": List([ - String("type_hidden_from_public_api"), - String("ExampleUnion"), - ]), - "span_begin_line": Uint64(19), - "span_filename": String("src/lib.rs"), - "union_name": String("ExampleUnion"), - }, - ], - "./test_crates/union_now_doc_hidden/": [ - { - "path": List([ - String("union_now_doc_hidden"), - String("MyUnion"), - ]), - "span_begin_line": Uint64(2), - "span_filename": String("src/lib.rs"), - "union_name": String("MyUnion"), - }, - ], - "./test_crates/union_pub_field_now_doc_hidden/": [ - { - "path": List([ - String("union_pub_field_now_doc_hidden"), - String("MyUnion"), - ]), - "span_begin_line": Uint64(4), - "span_filename": String("src/lib.rs"), - "union_name": String("MyUnion"), - }, - { - "path": List([ - String("union_pub_field_now_doc_hidden"), - String("PublicUnionBothFieldAndUnionDocHidden"), - ]), - "span_begin_line": Uint64(30), - "span_filename": String("src/lib.rs"), - "union_name": String("PublicUnionBothFieldAndUnionDocHidden"), - }, - ], -} diff --git a/test_outputs/union_pub_field_now_doc_hidden.output.ron b/test_outputs/union_pub_field_now_doc_hidden.output.ron deleted file mode 100644 index 131fe249..00000000 --- a/test_outputs/union_pub_field_now_doc_hidden.output.ron +++ /dev/null @@ -1,36 +0,0 @@ -{ - "./test_crates/union_now_doc_hidden/": [ - { - "field_name": String("my_field"), - "path": List([ - String("union_now_doc_hidden"), - String("PublicUnionHiddenField"), - ]), - "span_begin_line": Uint64(7), - "span_filename": String("src/lib.rs"), - "union_name": String("PublicUnionHiddenField"), - }, - ], - "./test_crates/union_pub_field_now_doc_hidden/": [ - { - "field_name": String("my_field"), - "path": List([ - String("union_pub_field_now_doc_hidden"), - String("PublicUnionDocHiddenField"), - ]), - "span_begin_line": Uint64(9), - "span_filename": String("src/lib.rs"), - "union_name": String("PublicUnionDocHiddenField"), - }, - { - "field_name": String("f1"), - "path": List([ - String("union_pub_field_now_doc_hidden"), - String("PublicUnionBothFieldAndUnionDocHidden"), - ]), - "span_begin_line": Uint64(30), - "span_filename": String("src/lib.rs"), - "union_name": String("PublicUnionBothFieldAndUnionDocHidden"), - }, - ], -} diff --git a/test_outputs/unit_struct_changed_kind.output.ron b/test_outputs/unit_struct_changed_kind.output.ron deleted file mode 100644 index b7e3699f..00000000 --- a/test_outputs/unit_struct_changed_kind.output.ron +++ /dev/null @@ -1,14 +0,0 @@ -{ - "./test_crates/unit_struct_changed_kind/": [ - { - "name": String("UnitStructToPlain"), - "path": List([ - String("unit_struct_changed_kind"), - String("UnitStructToPlain"), - ]), - "span_begin_line": Uint64(1), - "span_filename": String("src/lib.rs"), - "visibility_limit": String("public"), - }, - ], -}