Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"object safe" is now "dyn-compatible" #199

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Kijewski
Copy link
Collaborator

The phrase was changed in rust-lang/rust#130852.

rinja/src/lib.rs Outdated
/// This trades reduced performance (mostly due to writing into `dyn Write`) for object safety.
/// This trades reduced performance (mostly due to writing into `dyn Write`) for dyn-compatibility.
///
/// [`dyn`-compatible]: <https://doc.rust-lang.org/stable/reference/items/traits.html#object-safety>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting for rust-lang/reference#1512 to land, so the link fragment can be updated.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implemented in rust-lang/reference#1666. The new version is not live, yet, but it will be soon enough.

@Kijewski Kijewski marked this pull request as ready for review November 1, 2024 22:18
@Kijewski Kijewski marked this pull request as draft November 20, 2024 19:40
@@ -170,9 +170,11 @@ impl<T: Template + ?Sized> Template for &T {
const MIME_TYPE: &'static str = T::MIME_TYPE;
}

/// Object-safe wrapper trait around [`Template`] implementers
/// [`dyn`-compatible] wrapper trait around [`Template`] implementers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// [`dyn`-compatible] wrapper trait around [`Template`] implementers
/// [`dyn`-compatible] wrapper trait around [`Template`] implementors.

In rust docs it's "implementors" so I suppose it's the correct word. ^^'

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, thank you for proofreading!

(I'm like 99% sure that in English you are supposed to role a dice when to write -ter and when to write -tor. :D)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, and let's not even try to speak english, the pronunciation is even more random. 😆

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.

2 participants