Skip to content

Conversation

@nicholasbishop
Copy link
Member

The Output protocol has an internal pointer to an OutputData object. This was represented as a reference with the 'boot lifetime, but this isn't quite right since the actual lifetime could be shorter than boot services. Furthermore, in several places the lifetime was set to 'static, which is definitely not correct.

Fix by dropping the lifetime parameter, and instead just use a raw pointer. This is more in line with how we've implemented other protocols.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

The `Output` protocol has an internal pointer to an `OutputData` object. This
was represented as a reference with the `'boot` lifetime, but this isn't quite
right since the actual lifetime could be shorter than boot
services. Furthermore, in several places the lifetime parameter was set to
`'static`, which is definitely not correct.

Fix by dropping the lifetime parameter, and instead just use a raw pointer. This
is more in line with how we've implemented other protocols.
@phip1611 phip1611 merged commit cf005f5 into rust-osdev:main Mar 12, 2023
@nicholasbishop nicholasbishop deleted the output-drop-lifetime branch March 26, 2023 04:31
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