<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_builtin_macros/src/derive.rs, branch try-perf</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try-perf</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try-perf'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-08-22T06:37:19+00:00</updated>
<entry>
<title>Move validate_attr to `rustc_attr_parsing`</title>
<updated>2025-08-22T06:37:19+00:00</updated>
<author>
<name>Jonathan Brouwer</name>
<email>jonathantbrouwer@gmail.com</email>
</author>
<published>2025-07-29T14:35:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=21d31897794ed7fc7990de8e664d3c4ec511da7d'/>
<id>urn:sha1:21d31897794ed7fc7990de8e664d3c4ec511da7d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow attr entries to declare list of alternatives for `List` and `NamedValueStr`</title>
<updated>2025-08-11T16:00:49+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2025-08-11T01:46:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=189f264926ff70b58c8907473de60766477e7dd6'/>
<id>urn:sha1:189f264926ff70b58c8907473de60766477e7dd6</id>
<content type='text'>
Modify `AttributeTemplate` to support list of alternatives for list and name value attribute styles.

Suggestions now provide more correct suggested code:

```
error[E0805]: malformed `used` attribute input
  --&gt; $DIR/used_with_multi_args.rs:3:1
   |
LL | #[used(compiler, linker)]
   | ^^^^^^------------------^
   |       |
   |       expected a single argument here
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[used(compiler, linker)]
LL + #[used(compiler)]
   |
LL - #[used(compiler, linker)]
LL + #[used(linker)]
   |
LL - #[used(compiler, linker)]
LL + #[used]
   |
```

instead of the prior "masking" of the lack of this feature by suggesting pipe-separated lists:

```
error[E0805]: malformed `used` attribute input
  --&gt; $DIR/used_with_multi_args.rs:3:1
   |
LL | #[used(compiler, linker)]
   | ^^^^^^------------------^
   |       |
   |       expected a single argument here
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[used(compiler, linker)]
LL + #[used(compiler|linker)]
   |
LL - #[used(compiler, linker)]
LL + #[used]
   |
```
</content>
</entry>
<entry>
<title>Use `Ident::dummy()` in `dummy_annotatable`.</title>
<updated>2025-03-25T05:14:27+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2025-03-24T07:58:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bd61e0129f4ff393ad350f05442a9f1ac3ddbd44'/>
<id>urn:sha1:bd61e0129f4ff393ad350f05442a9f1ac3ddbd44</id>
<content type='text'>
This is exactly the kind of case `Ident::dummy()` is for.
</content>
</entry>
<entry>
<title>Re-export more `rustc_span::symbol` things from `rustc_span`.</title>
<updated>2024-12-18T02:38:53+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-12-12T23:29:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2620eb42d72d24baa1ca1056a769862b92c85f7f'/>
<id>urn:sha1:2620eb42d72d24baa1ca1056a769862b92c85f7f</id>
<content type='text'>
`rustc_span::symbol` defines some things that are re-exported from
`rustc_span`, such as `Symbol` and `sym`. But it doesn't re-export some
closely related things such as `Ident` and `kw`. So you can do `use
rustc_span::{Symbol, sym}` but you have to do `use
rustc_span::symbol::{Ident, kw}`, which is inconsistent for no good
reason.

This commit re-exports `Ident`, `kw`, and `MacroRulesNormalizedIdent`,
and changes many `rustc_span::symbol::` qualifiers in `compiler/` to
`rustc_span::`. This is a 200+ net line of code reduction, mostly
because many files with two `use rustc_span` items can be reduced to
one.
</content>
</entry>
<entry>
<title>Rename nested_meta to meta_item_inner</title>
<updated>2024-10-07T06:22:03+00:00</updated>
<author>
<name>codemountains</name>
<email>4kz12zz@gmail.com</email>
</author>
<published>2024-10-06T23:49:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fc64ff7ec2aad5261365c0cfc033f65140828eb2'/>
<id>urn:sha1:fc64ff7ec2aad5261365c0cfc033f65140828eb2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename NestedMetaItem to MetaItemInner</title>
<updated>2024-10-06T14:28:30+00:00</updated>
<author>
<name>codemountains</name>
<email>4kz12zz@gmail.com</email>
</author>
<published>2024-10-04T12:59:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6dfc4a0473ed0901b9c0d09f5189c41f3882d5fc'/>
<id>urn:sha1:6dfc4a0473ed0901b9c0d09f5189c41f3882d5fc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reformat using the new identifier sorting from rustfmt</title>
<updated>2024-09-22T23:11:29+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-22T23:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c682aa162b0d41e21cc6748f4fecfe01efb69d1f'/>
<id>urn:sha1:c682aa162b0d41e21cc6748f4fecfe01efb69d1f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Stabilize `unsafe_attributes`</title>
<updated>2024-08-07T08:12:13+00:00</updated>
<author>
<name>carbotaniuman</name>
<email>41451839+carbotaniuman@users.noreply.github.com</email>
</author>
<published>2024-08-07T06:36:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=de9b5c3ea280112169887065354706e102e6290d'/>
<id>urn:sha1:de9b5c3ea280112169887065354706e102e6290d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add toggle for `parse_meta_item` unsafe parsing</title>
<updated>2024-07-30T23:28:43+00:00</updated>
<author>
<name>carbotaniuman</name>
<email>41451839+carbotaniuman@users.noreply.github.com</email>
</author>
<published>2024-07-10T00:06:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=49db8a5a999f0908b5bf74b88a2d72a4f4dddf48'/>
<id>urn:sha1:49db8a5a999f0908b5bf74b88a2d72a4f4dddf48</id>
<content type='text'>
This makes it possible for the `unsafe(...)` syntax to only be
valid at the top level, and the `NestedMetaItem`s will automatically
reject `unsafe(...)`.
</content>
</entry>
<entry>
<title>Deny unsafe on more builtin attributes</title>
<updated>2024-07-30T02:00:09+00:00</updated>
<author>
<name>carbotaniuman</name>
<email>41451839+carbotaniuman@users.noreply.github.com</email>
</author>
<published>2024-07-03T04:52:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d8bc8761a5bb8456c0b7940434b3b3b4f0ed035c'/>
<id>urn:sha1:d8bc8761a5bb8456c0b7940434b3b3b4f0ed035c</id>
<content type='text'>
</content>
</entry>
</feed>
