Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/hir/attribute-parsing.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ To use the parsed representation before the HIR is built, you usually need to us
This function takes a slice of `&[ast::Attribute]`s, and the name of an attribute you're interested in, and parses the attribute if it is present.

No diagnostics will be emitted when parsing limited. Lints are not emitted at all, while errors will be emitted as a delayed bugs.
In other words, we expect attributes parsed with parse_limited to be reparsed later during ast lowering where we do emit the errors
In other words, we expect attributes parsed with `parse_limited` to be reparsed later during ast lowering where we do emit the errors.


[attributes_page]: ../attributes.md
Expand All @@ -65,4 +65,4 @@ In other words, we expect attributes parsed with parse_limited to be reparsed la
[builtin_attributes]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_feature/builtin_attrs/static.BUILTIN_ATTRIBUTES.html
[template]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_feature/macro.template.html
[find_attr]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/macro.find_attr.html
[parse_limited]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_attr_parsing/interface/struct.AttributeParser.html#method.parse_limited
[parse_limited]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_attr_parsing/interface/struct.AttributeParser.html#method.parse_limited
Loading