[cargo-zerocopy] Pass --cfg __ZEROCOPY_INTERNAL_USE_ONL_TOOLCHAIN=...#2983
[cargo-zerocopy] Pass --cfg __ZEROCOPY_INTERNAL_USE_ONL_TOOLCHAIN=...#2983
Conversation
This allows testing code to detect the current named toolchain. Unlike the `rustversion` crate, it won't require us to update use sites when we update pinned toolchain versions. gherrit-pr-id: G9c6fe23f1983e0f1a3d30e1db70e020595260e23
Summary of ChangesHello @joshlf, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds a --cfg flag to pass the current toolchain name to rustc, which is useful for conditional compilation. The change is correct and achieves its goal. I've included one suggestion to refactor the string construction for the flags, which improves readability and can be slightly more efficient.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2983 +/- ##
=======================================
Coverage 92.02% 92.02%
=======================================
Files 19 19
Lines 6029 6029
=======================================
Hits 5548 5548
Misses 481 481 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This allows testing code to detect the current named toolchain. Unlike
the
rustversioncrate, it won't require us to update use sites when weupdate pinned toolchain versions.
#[zerocopy(on_error = skip/fail)]#2982Latest Update: v3 — Compare vs v2
📚 Full Patch History
Links show the diff between the row version and the column version.
⬇️ Download this PR
Branch
git fetch origin refs/heads/G9c6fe23f1983e0f1a3d30e1db70e020595260e23 && git checkout -b pr-G9c6fe23f1983e0f1a3d30e1db70e020595260e23 FETCH_HEADCheckout
git fetch origin refs/heads/G9c6fe23f1983e0f1a3d30e1db70e020595260e23 && git checkout FETCH_HEADCherry Pick
git fetch origin refs/heads/G9c6fe23f1983e0f1a3d30e1db70e020595260e23 && git cherry-pick FETCH_HEADPull
Stacked PRs enabled by GHerrit.