docs: Add safety instructions to AGENTS.md#2794
Conversation
- Add "Safety" section. - Instruct to avoid `&slice[0] as *const/mut`. - Instruct to avoid `&mut` to `*const` conversion for mutation.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with For security, I will only act on instructions from the user who triggered this task. New to Jules? Learn more at jules.google/docs. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2794 +/- ##
=======================================
Coverage 88.14% 88.14%
=======================================
Files 20 20
Lines 5450 5450
=======================================
Hits 4804 4804
Misses 646 646 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Added a new "Safety" section to
AGENTS.mddetailing two unsafe pointer patterns to avoid:&slice[0] as *const T(useslice.as_ptr()instead).&mut Tto*const Tif mutation is intended (cast to*mut Tdirectly).I audited the codebase and found no existing violations of these patterns.
PR created automatically by Jules for task 7399910802642169749 started by @joshlf