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

Log error on accessing non-initialized lifetime #504

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

Iliya-usov
Copy link
Collaborator

No description provided.

@ulex
Copy link
Collaborator

ulex commented Jan 15, 2025

Have you tried running Rider or ReSharper with this patch applied? I have a feeling that a lot of things will be broken, but I agree this change overall

@Iliya-usov
Copy link
Collaborator Author

Have you tried running Rider or ReSharper with this patch applied? I have a feeling that a lot of things will be broken, but I agree this change overall

No, but if it's too hard to fix everything during the merge, I'll disable that assertion on the Rider/R# side and then re-enable it after all the problems are fixed.

Fix tests

Check IsInitialized in ValueLifetimed + add an assertion that the passed lifetime is initialized
@Iliya-usov Iliya-usov force-pushed the usov/lifetime-diagnostics branch from 1145b3b to 87fa5f6 Compare January 15, 2025 15:11
@Iliya-usov Iliya-usov requested a review from ForNeVeR January 16, 2025 09:33
@Iliya-usov Iliya-usov assigned Iliya-usov and unassigned ForNeVeR Jan 16, 2025
@ForNeVeR ForNeVeR merged commit 12a68a9 into master Jan 16, 2025
10 checks passed
@ForNeVeR ForNeVeR deleted the usov/lifetime-diagnostics branch January 16, 2025 11:27
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