Skip to content

Commit

Permalink
Add #[track_caller] to the "From implies Into" impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed Jan 10, 2024
1 parent e927184 commit 075f2e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/convert/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@ where
/// That is, this conversion is whatever the implementation of
/// <code>[From]&lt;T&gt; for U</code> chooses to do.
#[inline]
#[track_caller]
fn into(self) -> U {
U::from(self)
}
Expand Down

0 comments on commit 075f2e0

Please sign in to comment.