Skip to content

Commit

Permalink
Add track_caller
Browse files Browse the repository at this point in the history
  • Loading branch information
rj00a authored and wrenger committed Aug 30, 2023
1 parent b69e3db commit fba261e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ impl ToTokens for Member {

#doc
#[doc = #location]
#[cfg_attr(debug_assertions, track_caller)]
#vis const fn #with_ident(self, value: #ty) -> Self {
let value: #base_ty = {
let this = value;
Expand All @@ -585,6 +586,7 @@ impl ToTokens for Member {
}
#doc
#[doc = #location]
#[cfg_attr(debug_assertions, track_caller)]
#vis fn #set_ident(&mut self, value: #ty) {
*self = self.#with_ident(value);
}
Expand Down

0 comments on commit fba261e

Please sign in to comment.