Don't use fmt::Arguments implementation details in assert_unsafe_precondition#148524
Don't use fmt::Arguments implementation details in assert_unsafe_precondition#148524m-ou-se wants to merge 1 commit intorust-lang:mainfrom
Conversation
|
rustbot has assigned @petrochenkov. Use |
This comment has been minimized.
This comment has been minimized.
|
If you want to do this, you need to add rust/library/core/src/panicking.rs Line 223 in 53efb3d |
640d372 to
979d559
Compare
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
#148789 adds an (unstable) fmt::Arguments::from_str() and uses that instead. |
Removes the use of fmt::Arguments unstable implementation details fom the
assert_unsafe_preconditionexpansion.The fewer places that rely on the exact implementation details of fmt::Arguments, the better.
Also, see #129658 (comment)