<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_builtin_macros/src/cfg_accessible.rs, branch auto</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=auto</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=auto'/>
<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>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>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>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>
<entry>
<title>Reformat `use` declarations.</title>
<updated>2024-07-28T22:26:52+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-28T22:13:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=84ac80f1921afc243d71fd0caaa4f2838c294102'/>
<id>urn:sha1:84ac80f1921afc243d71fd0caaa4f2838c294102</id>
<content type='text'>
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
</content>
</entry>
<entry>
<title>compiler: fix few needless_pass_by_ref_mut clippy lints</title>
<updated>2024-03-28T09:04:00+00:00</updated>
<author>
<name>klensy</name>
<email>klensy@users.noreply.github.com</email>
</author>
<published>2024-03-28T09:04:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=316bc1c67cf72700a5e3c411fc044278eb1ef9ef'/>
<id>urn:sha1:316bc1c67cf72700a5e3c411fc044278eb1ef9ef</id>
<content type='text'>
warning: this argument is a mutable reference, but not used mutably
   --&gt; compiler\rustc_builtin_macros\src\asm.rs:306:28
    |
306 | fn err_duplicate_option(p: &amp;mut Parser&lt;'_&gt;, symbol: Symbol, span: Span) {
    |                            ^^^^^^^^^^^^^^^ help: consider changing to: `&amp;Parser&lt;'_&gt;`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut

warning: this argument is a mutable reference, but not used mutably
   --&gt; compiler\rustc_builtin_macros\src\asm.rs:318:8
    |
318 |     p: &amp;mut Parser&lt;'a&gt;,
    |        ^^^^^^^^^^^^^^^ help: consider changing to: `&amp;Parser&lt;'a&gt;`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut

warning: this argument is a mutable reference, but not used mutably
   --&gt; compiler\rustc_builtin_macros\src\assert.rs:114:25
    |
114 | fn parse_assert&lt;'a&gt;(cx: &amp;mut ExtCtxt&lt;'a&gt;, sp: Span, stream: TokenStream) -&gt; PResult&lt;'a, Assert&gt; {
    |                         ^^^^^^^^^^^^^^^^ help: consider changing to: `&amp;ExtCtxt&lt;'a&gt;`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut

warning: this argument is a mutable reference, but not used mutably
  --&gt; compiler\rustc_builtin_macros\src\asm.rs:32:10
   |
32 |     ecx: &amp;mut ExtCtxt&lt;'a&gt;,
   |          ^^^^^^^^^^^^^^^^ help: consider changing to: `&amp;ExtCtxt&lt;'a&gt;`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut

warning: this argument is a mutable reference, but not used mutably
  --&gt; compiler\rustc_builtin_macros\src\test.rs:99:9
   |
99 |     cx: &amp;mut ExtCtxt&lt;'_&gt;,
   |         ^^^^^^^^^^^^^^^^ help: consider changing to: `&amp;ExtCtxt&lt;'_&gt;`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut

warning: this argument is a mutable reference, but not used mutably
   --&gt; compiler\rustc_builtin_macros\src\source_util.rs:237:9
    |
237 |     cx: &amp;mut ExtCtxt&lt;'_&gt;,
    |         ^^^^^^^^^^^^^^^^ help: consider changing to: `&amp;ExtCtxt&lt;'_&gt;`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut

warning: this argument is a mutable reference, but not used mutably
   --&gt; compiler\rustc_builtin_macros\src\format.rs:809:10
    |
809 |     ecx: &amp;mut ExtCtxt&lt;'_&gt;,
    |          ^^^^^^^^^^^^^^^^ help: consider changing to: `&amp;ExtCtxt&lt;'_&gt;`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut

warning: this argument is a mutable reference, but not used mutably
   --&gt; compiler\rustc_builtin_macros\src\format.rs:737:10
    |
737 |     ecx: &amp;mut ExtCtxt&lt;'a&gt;,
    |          ^^^^^^^^^^^^^^^^ help: consider changing to: `&amp;ExtCtxt&lt;'a&gt;`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut

warning: this argument is a mutable reference, but not used mutably
  --&gt; compiler\rustc_builtin_macros\src\format.rs:68:24
   |
68 | fn parse_args&lt;'a&gt;(ecx: &amp;mut ExtCtxt&lt;'a&gt;, sp: Span, tts: TokenStream) -&gt; PResult&lt;'a, MacroInput&gt; {
   |                        ^^^^^^^^^^^^^^^^ help: consider changing to: `&amp;ExtCtxt&lt;'a&gt;`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut

warning: this argument is a mutable reference, but not used mutably
   --&gt; compiler\rustc_builtin_macros\src\format.rs:607:10
    |
607 |     ecx: &amp;mut ExtCtxt&lt;'_&gt;,
    |          ^^^^^^^^^^^^^^^^ help: consider changing to: `&amp;ExtCtxt&lt;'_&gt;`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut

warning: this argument is a mutable reference, but not used mutably
  --&gt; compiler\rustc_builtin_macros\src\edition_panic.rs:43:9
   |
43 |     cx: &amp;'cx mut ExtCtxt&lt;'_&gt;,
   |         ^^^^^^^^^^^^^^^^^^^^ help: consider changing to: `&amp;ExtCtxt&lt;'_&gt;`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut

warning: this argument is a mutable reference, but not used mutably
  --&gt; compiler\rustc_builtin_macros\src\concat_bytes.rs:11:9
   |
11 |     cx: &amp;mut ExtCtxt&lt;'_&gt;,
   |         ^^^^^^^^^^^^^^^^ help: consider changing to: `&amp;ExtCtxt&lt;'_&gt;`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut

warning: this argument is a mutable reference, but not used mutably
  --&gt; compiler\rustc_builtin_macros\src\cfg.rs:38:22
   |
38 | fn parse_cfg&lt;'a&gt;(cx: &amp;mut ExtCtxt&lt;'a&gt;, span: Span, tts: TokenStream) -&gt; PResult&lt;'a, ast::MetaItem&gt; {
   |                      ^^^^^^^^^^^^^^^^ help: consider changing to: `&amp;ExtCtxt&lt;'a&gt;`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut

warning: this argument is a mutable reference, but not used mutably
  --&gt; compiler\rustc_builtin_macros\src\cfg_accessible.rs:13:28
   |
13 | fn validate_input&lt;'a&gt;(ecx: &amp;mut ExtCtxt&lt;'_&gt;, mi: &amp;'a ast::MetaItem) -&gt; Option&lt;&amp;'a ast::Path&gt; {
   |                            ^^^^^^^^^^^^^^^^ help: consider changing to: `&amp;ExtCtxt&lt;'_&gt;`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
</content>
</entry>
<entry>
<title>Rename all `ParseSess` variables/fields/lifetimes as `psess`.</title>
<updated>2024-03-04T21:11:45+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-03-04T05:31:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=80d2bdb6191609c8a3940a1a7959ac1ac16e8ed6'/>
<id>urn:sha1:80d2bdb6191609c8a3940a1a7959ac1ac16e8ed6</id>
<content type='text'>
Existing names for values of this type are `sess`, `parse_sess`,
`parse_session`, and `ps`. `sess` is particularly annoying because
that's also used for `Session` values, which are often co-located, and
it can be difficult to know which type a value named `sess` refers to.
(That annoyance is the main motivation for this change.) `psess` is nice
and short, which is good for a name used this much.

The commit also renames some `parse_sess_created` values as
`psess_created`.
</content>
</entry>
<entry>
<title>Remove `ExtCtxt` methods that duplicate `DiagCtxt` methods.</title>
<updated>2023-12-23T20:24:52+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-12-18T09:54:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d86a48278f7bcd069a56870a70c6376e77bd4ee5'/>
<id>urn:sha1:d86a48278f7bcd069a56870a70c6376e77bd4ee5</id>
<content type='text'>
</content>
</entry>
</feed>
