Skip to content

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented Apr 5, 2025

Replace:

safety_comment! {
/// SAFETY:
/// ...
foo!();
bar!();
}

With:

// SAFETY: ...
const _: () = unsafe {
foo!();
bar!();
};

Remove the safety_comment! macro.


This PR is on branch remove-safety-comment-macro.

@joshlf joshlf requested review from jswrenn and Copilot April 5, 2025 15:10
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

@joshlf joshlf enabled auto-merge April 5, 2025 15:13
Replace:

  safety_comment! {
      /// SAFETY:
      /// ...
      foo!();
      bar!();
  }

With:

  // SAFETY: ...
  const _: () = unsafe {
      foo!();
      bar!();
  };

Remove the `safety_comment!` macro.

gherrit-pr-id: Id5df96f57c34a4e7e8d261399f01fd23cded339e
@joshlf joshlf force-pushed the Id5df96f57c34a4e7e8d261399f01fd23cded339e branch from fe86a1d to 0d6a574 Compare April 5, 2025 18:04
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 52.17391% with 11 lines in your changes missing coverage. Please review.

Project coverage is 90.42%. Comparing base (85106c5) to head (0d6a574).

Files with missing lines Patch % Lines
src/impls.rs 0.00% 8 Missing ⚠️
src/util/macros.rs 80.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2483      +/-   ##
==========================================
- Coverage   90.44%   90.42%   -0.02%     
==========================================
  Files          19       19              
  Lines        7522     7523       +1     
==========================================
  Hits         6803     6803              
- Misses        719      720       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joshlf joshlf added this pull request to the merge queue Apr 5, 2025
Merged via the queue into main with commit 6450181 Apr 5, 2025
88 checks passed
@joshlf joshlf deleted the Id5df96f57c34a4e7e8d261399f01fd23cded339e branch April 5, 2025 18:40
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