diff options
| author | Emil Gardström <emil.gardstrom@gmail.com> | 2024-01-10 10:20:26 +0100 |
|---|---|---|
| committer | Emil Gardström <emil.gardstrom@gmail.com> | 2024-01-10 10:30:54 +0100 |
| commit | 075f2e0345a00fcb3352ac9ece8a87817b73d305 (patch) | |
| tree | c6168748784c06a300fb58e1e89ea1a64396cc55 | |
| parent | e9271846294c4ee5bd7706df68180320c0b5ff20 (diff) | |
| download | rust-075f2e0345a00fcb3352ac9ece8a87817b73d305.tar.gz rust-075f2e0345a00fcb3352ac9ece8a87817b73d305.zip | |
Add `#[track_caller]` to the "From implies Into" impl
| -rw-r--r-- | library/core/src/convert/mod.rs | 1 |
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]<T> for U</code> chooses to do. #[inline] + #[track_caller] fn into(self) -> U { U::from(self) } |
