Skip to content

Commit 075f2e0

Browse files
committed
Add #[track_caller] to the "From implies Into" impl
1 parent e927184 commit 075f2e0

File tree

1 file changed

+1
-0
lines changed
  • library/core/src/convert

1 file changed

+1
-0
lines changed

library/core/src/convert/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,7 @@ where
753753
/// That is, this conversion is whatever the implementation of
754754
/// <code>[From]&lt;T&gt; for U</code> chooses to do.
755755
#[inline]
756+
#[track_caller]
756757
fn into(self) -> U {
757758
U::from(self)
758759
}

0 commit comments

Comments
 (0)