Skip to content

Conversation

@x0rw
Copy link
Contributor

@x0rw x0rw commented Jun 4, 2025

Changed Errors point to expanded code rather than source locations, making it difficult to trace compile-time errors back to the original macro invocation.

to: Although the compiler reports both the macro expansion and its invocation site, diagnostics originating within macros can be more difficult to interpret than those from ordinary function or type definitions. Complex or deeply nested macros may obscure intent and hinder static analysis, increasing the risk of misinterpretation or overlooked errors during code review.

Check #90 for more informations.
Resolves #90.

@netlify
Copy link

netlify bot commented Jun 4, 2025

Deploy Preview for scrc-coding-guidelines ready!

Name Link
🔨 Latest commit c6837a5
🔍 Latest deploy log https://app.netlify.com/projects/scrc-coding-guidelines/deploys/68404157bcc4830008cf9e0d
😎 Deploy Preview https://deploy-preview-126--scrc-coding-guidelines.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Collaborator

@PLeVasseur PLeVasseur left a comment

Choose a reason for hiding this comment

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

Thanks for the revision @x0rw!

@PLeVasseur PLeVasseur added this pull request to the merge queue Jun 7, 2025
Merged via the queue into rustfoundation:main with commit e872d1b Jun 7, 2025
6 checks passed
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.

Fix rationale for "A macro should not be used in place of a function"

2 participants