about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmil Gardström <emil.gardstrom@gmail.com>2024-01-10 10:20:26 +0100
committerEmil Gardström <emil.gardstrom@gmail.com>2024-01-10 10:30:54 +0100
commit075f2e0345a00fcb3352ac9ece8a87817b73d305 (patch)
treec6168748784c06a300fb58e1e89ea1a64396cc55
parente9271846294c4ee5bd7706df68180320c0b5ff20 (diff)
downloadrust-075f2e0345a00fcb3352ac9ece8a87817b73d305.tar.gz
rust-075f2e0345a00fcb3352ac9ece8a87817b73d305.zip
Add `#[track_caller]` to the "From implies Into" impl
-rw-r--r--library/core/src/convert/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/convert/mod.rs b/library/core/src/convert/mod.rs
index 8c01b0973d6..45f6e375e89 100644
--- a/library/core/src/convert/mod.rs
+++ b/library/core/src/convert/mod.rs
@@ -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)
     }