Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Remove unsafe from rome_diagnostics::display::frame #4235

Merged
merged 1 commit into from
Feb 25, 2023

Conversation

andersk
Copy link
Contributor

@andersk andersk commented Feb 25, 2023

Summary

The unsafe blocks in this module are unnecessary, so let’s remove them.

Test Plan

The test suite segfaults for me (both with and without this change), so I’m relying on CI here. Clearly we’re misusing unsafe somewhere, and we should remove unsafe wherever possible. Although these particular uses of unsafe are among the more innocuous ones, I figured they’re a good starting point.

Documentation

  • The PR requires documentation
  • I will create a new PR to update the documentation

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
@netlify
Copy link

netlify bot commented Feb 25, 2023

Deploy Preview for docs-rometools canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 44aa49f
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/63f98e011625bc000836c382

Copy link
Contributor

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Thank you! That's a great change!

@ematipico ematipico merged commit d76159c into rome:main Feb 25, 2023
@andersk andersk deleted the unsafe-frame branch February 25, 2023 16:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants