Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Object safe trait nightly test #661

Merged
merged 10 commits into from
Jul 24, 2024
Merged
7 changes: 7 additions & 0 deletions test_crates/trait_no_longer_object_safe/new/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
publish = false
name = "trait_no_longer_object_safe"
version = "0.1.0"
edition = "2021"

[dependencies]
4 changes: 4 additions & 0 deletions test_crates/trait_no_longer_object_safe/new/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Non-object safe traits
pub trait RefTrait {
fn by_ref(self) -> Self;
}
7 changes: 7 additions & 0 deletions test_crates/trait_no_longer_object_safe/old/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
publish = false
name = "trait_no_longer_object_safe"
version = "0.1.0"
edition = "2021"

[dependencies]
4 changes: 4 additions & 0 deletions test_crates/trait_no_longer_object_safe/old/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Object safe traits
pub trait RefTrait {
fn by_ref(self: &Self) {}
}
14 changes: 14 additions & 0 deletions test_outputs/trait_no_longer_object_safe.output.ron
Original file line number Diff line number Diff line change
@@ -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"),
},
],
}
Loading