-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove superfluous blanket impls in our logging traits (#8605)
Our core logging traits have to be object-safe, which means `Self` must be unsized, which means all methods must take either a shared or exclusive reference. This in turns means that any `impl Trait for &something` is non-sensical, since this lowers to `impl Trait for &&self`, which just gives extra work to the compiler for no reason since this is semantically identical to the builtin autoderef magic.
- Loading branch information
Showing
2 changed files
with
23 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters