Skip to content

Commit

Permalink
Remove stable_deref_trait dependency
Browse files Browse the repository at this point in the history
Now that AliasableBox is used everywhere, it's not actually used.
  • Loading branch information
alex committed Mar 20, 2022
1 parent 8321e12 commit b77ba6b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ miri = []

[dependencies]
ouroboros = { version = "0.15.0", path = "../ouroboros" }
stable_deref_trait = "1.2"

[dev-dependencies]
trybuild = "1.0"
Expand Down
2 changes: 0 additions & 2 deletions examples/src/fail_tests/refuse_non_std_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ impl<T> Deref for Box<T> {
}
}

unsafe impl<T> stable_deref_trait::StableDeref for Box<T> {}

#[self_referencing]
struct Simple {
data: Box<String>,
Expand Down
4 changes: 2 additions & 2 deletions examples/src/fail_tests/refuse_non_std_box.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
error[E0599]: no function or associated item named `is_std_box_type` found for struct `CheckIfTypeIsStd<Box<String>>` in the current scope
--> $DIR/refuse_non_std_box.rs:21:1
--> $DIR/refuse_non_std_box.rs:19:1
|
21 | #[self_referencing]
19 | #[self_referencing]
| ^^^^^^^^^^^^^^^^^^^ function or associated item not found in `CheckIfTypeIsStd<Box<String>>`
|
= note: the function or associated item was found for
Expand Down
1 change: 0 additions & 1 deletion ouroboros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ repository = "https://github.com/joshua-maros/ouroboros"
[dependencies]
aliasable = "0.1.3"
ouroboros_macro = { version = "0.15.0", path = "../ouroboros_macro" }
stable_deref_trait = "1.2"

0 comments on commit b77ba6b

Please sign in to comment.