diff --git a/test_crates/trait_no_longer_object_safe/new/Cargo.toml b/test_crates/trait_no_longer_object_safe/new/Cargo.toml new file mode 100644 index 00000000..55b0aec7 --- /dev/null +++ b/test_crates/trait_no_longer_object_safe/new/Cargo.toml @@ -0,0 +1,7 @@ +[package] +publish = false +name = "trait_no_longer_object_safe" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/test_crates/trait_no_longer_object_safe/new/src/lib.rs b/test_crates/trait_no_longer_object_safe/new/src/lib.rs new file mode 100644 index 00000000..426f4936 --- /dev/null +++ b/test_crates/trait_no_longer_object_safe/new/src/lib.rs @@ -0,0 +1,4 @@ +// Non-object safe traits +pub trait RefTrait { + fn by_ref(self) -> Self; +} diff --git a/test_crates/trait_no_longer_object_safe/old/Cargo.toml b/test_crates/trait_no_longer_object_safe/old/Cargo.toml new file mode 100644 index 00000000..55b0aec7 --- /dev/null +++ b/test_crates/trait_no_longer_object_safe/old/Cargo.toml @@ -0,0 +1,7 @@ +[package] +publish = false +name = "trait_no_longer_object_safe" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/test_crates/trait_no_longer_object_safe/old/src/lib.rs b/test_crates/trait_no_longer_object_safe/old/src/lib.rs new file mode 100644 index 00000000..618c87f7 --- /dev/null +++ b/test_crates/trait_no_longer_object_safe/old/src/lib.rs @@ -0,0 +1,4 @@ +// Object safe traits +pub trait RefTrait { + fn by_ref(self: &Self) {} +} diff --git a/test_outputs/trait_no_longer_object_safe.output.ron b/test_outputs/trait_no_longer_object_safe.output.ron new file mode 100644 index 00000000..ad31f138 --- /dev/null +++ b/test_outputs/trait_no_longer_object_safe.output.ron @@ -0,0 +1,14 @@ +{ + "./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"), + }, + ], +}