Skip to content

🐛 Remove incorrect LIFETIMEBOUND annotation #112

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

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Jun 14, 2024

When a span is constructed from a range, it's not necessarily lifetimebound to that range. That range might be another view type, in which case it's OK for the span to outlive it - as long as the span doesn't outlive the underlying data.

When a span is constructed from a range, it's not necessarily lifetimebound to
that range. That range might be another view type, in which case it's OK for the
span to outlive it - as long as the span doesn't outlive the underlying data.
Copy link
Contributor

@lukevalenty lukevalenty left a comment

Choose a reason for hiding this comment

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

Makes sense. Too bad there's not a way to indicate to the compiler it's bound to the original allocated memory.

@bdeane-intel bdeane-intel merged commit d8594b6 into intel:main Jun 14, 2024
31 checks passed
@elbeno elbeno deleted the remove-incorrect-ltb branch June 14, 2024 13:50
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.

3 participants