Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Remove tracker_callers
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Oct 4, 2023
1 parent c875a1a commit 4a34a58
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions frozen-abi/src/abi_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ pub(crate) fn normalize_type_name(type_name: &str) -> String {
type Placeholder = ();

impl<T: Sized> AbiExample for T {
#[track_caller]
default fn example() -> Self {
<Placeholder>::type_erased_example()
}
Expand All @@ -240,7 +239,6 @@ trait TypeErasedExample<T> {
}

impl<T: Sized> TypeErasedExample<T> for Placeholder {
#[track_caller]
default fn type_erased_example() -> T {
panic!(
"derive or implement AbiExample/AbiEnumVisitor for {}",
Expand All @@ -250,7 +248,6 @@ impl<T: Sized> TypeErasedExample<T> for Placeholder {
}

impl<T: Default + Serialize> TypeErasedExample<T> for Placeholder {
#[track_caller]
default fn type_erased_example() -> T {
let original_type_name = type_name::<T>();
let normalized_type_name = normalize_type_name(original_type_name);
Expand Down

0 comments on commit 4a34a58

Please sign in to comment.