Add docs to librustc/hir/check_attr.rs#42408
Conversation
|
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
|
Looks like there are some tidy errors here: |
|
fixed tidy errors |
|
r? @michaelwoerister (I think) |
michaelwoerister
left a comment
There was a problem hiding this comment.
Thanks for the PR, @bjorn3! I've added a comment below.
src/librustc/hir/check_attr.rs
Outdated
There was a problem hiding this comment.
I'm not sure if this doc comment is useful. I would prefer a module-level comment saying something like:
//! This module implements some validity checks for attributes.
//! In particular it verifies that `#[inline]` and `#[repr]` attributes are
//! attached to items that actually support them and if there are
//! conflicts between multiple such attributes attached to the same
//! item.
|
Changed it |
|
Thank you! There is some trailing whitespace on some lines that makes Looks good to me otherwise. |
|
Removed trailing whitespace |
|
@bors r=michaelwoerister |
|
📌 Commit f4d89ba has been approved by |
|
Actually, could you squash these commits down to one please? Thanks! @bors r- |
|
Squashed |
|
Thanks! @bors r=michaelwoerister rollup |
|
📌 Commit e759370 has been approved by |
Add docs to librustc/hir/check_attr.rs Also moved `check_attribute` up to ease reading.
Also moved
check_attributeup to ease reading.