Skip to content

initial draft for downcastable Log - #739

Open
djugei wants to merge 1 commit into
rust-lang:masterfrom
djugei:dyn_downcast
Open

djugei wants to merge 1 commit into
rust-lang:masterfrom
djugei:dyn_downcast

Conversation

@djugei

@djugei djugei commented Sep 19, 2026

Copy link
Copy Markdown

fixes #666.
i do not expect this to be merged as is, this is more of a discussion helper. Names are up for bikeshedding.
technically this is not a breaking change i think, as anything that implements log automatically implements LogAny though i agree that it looks weird.

can't just have a method on Log sadly as that would introduce a Sized requirement (for some reason). Can't add the Any bound to Log itself as it would need to be 'static

i have tested this with indicatif-log-bridge and env_logger and it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: downcasting Log, but for real

1 participant