<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_passes/src/errors.rs, branch perf-tmp</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-09-27T09:29:50+00:00</updated>
<entry>
<title>Improve code and fix typo</title>
<updated>2025-09-27T09:29:50+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2025-09-25T09:33:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9362ab549f87e535eeba12c5d42f584ff55ff886'/>
<id>urn:sha1:9362ab549f87e535eeba12c5d42f584ff55ff886</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Strenghten checks for `doc(auto_cfg(show/hide))` attributes</title>
<updated>2025-09-27T09:29:48+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2025-04-01T15:24:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=63aefe0737d0df886955f5a3aa68db865cd97f1b'/>
<id>urn:sha1:63aefe0737d0df886955f5a3aa68db865cd97f1b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement RFC 3631</title>
<updated>2025-09-27T09:29:48+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2025-03-28T23:53:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7c00bccd3b3eb6717e3c801123107962e671e48f'/>
<id>urn:sha1:7c00bccd3b3eb6717e3c801123107962e671e48f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>port `#[debugger_visualizer]` to the new attribute system</title>
<updated>2025-09-22T04:30:16+00:00</updated>
<author>
<name>Jana Dönszelmann</name>
<email>jana@donsz.nl</email>
</author>
<published>2025-09-18T05:29:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9acc63a48c8206cfe2c2d272600d538983308657'/>
<id>urn:sha1:9acc63a48c8206cfe2c2d272600d538983308657</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Port #[macro_export] to the new attribute parsing infrastructure</title>
<updated>2025-09-21T14:42:47+00:00</updated>
<author>
<name>Jonathan Brouwer</name>
<email>jonathantbrouwer@gmail.com</email>
</author>
<published>2025-09-21T14:20:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6abcadc235c24b0541e7bb3b6f6444d397d32f35'/>
<id>urn:sha1:6abcadc235c24b0541e7bb3b6f6444d397d32f35</id>
<content type='text'>
Co-authored-by: Anne Stijns &lt;anstijns@gmail.com&gt;
</content>
</entry>
<entry>
<title>allow `#[rustc_align_static(N)]` on `static`s</title>
<updated>2025-09-09T19:54:54+00:00</updated>
<author>
<name>Folkert de Vries</name>
<email>folkert@folkertdev.nl</email>
</author>
<published>2025-06-07T20:56:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cbacd00f106778830803ad2e2364518f06ff9078'/>
<id>urn:sha1:cbacd00f106778830803ad2e2364518f06ff9078</id>
<content type='text'>
We need a different attribute than `rustc_align` because unstable attributes are
tied to their feature (we can't have two unstable features use the same
unstable attribute). Otherwise this uses all of the same infrastructure
as `#[rustc_align]`.
</content>
</entry>
<entry>
<title>Rollup merge of #145827 - estebank:issue-51976, r=jackh726</title>
<updated>2025-09-04T00:01:54+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-09-04T00:01:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3a6ae1167f56516fc0de1d304fcb9163cea0cb40'/>
<id>urn:sha1:3a6ae1167f56516fc0de1d304fcb9163cea0cb40</id>
<content type='text'>
On unused binding or binding not present in all patterns, suggest potential typo of unit struct/variant or const

When encountering an or-pattern with a binding not available in all patterns, look for consts and unit struct/variants that have similar names as the binding to detect typos.

```
error[E0408]: variable `Ban` is not bound in all patterns
  --&gt; $DIR/binding-typo.rs:22:9
   |
LL |         (Foo, _) | (Ban, Foo) =&gt; {}
   |         ^^^^^^^^    --- variable not in all patterns
   |         |
   |         pattern doesn't bind `Ban`
   |
help: you might have meant to use the similarly named unit variant `Bar`
   |
LL -         (Foo, _) | (Ban, Foo) =&gt; {}
LL +         (Foo, _) | (Bar, Foo) =&gt; {}
   |
```

For items that are not in the immedate scope, suggest the full path for them:

```
error[E0408]: variable `Non` is not bound in all patterns
  --&gt; $DIR/binding-typo-2.rs:51:16
   |
LL |         (Non | Some(_))=&gt; {}
   |          ---   ^^^^^^^ pattern doesn't bind `Non`
   |          |
   |          variable not in all patterns
   |
help: you might have meant to use the similarly named unit variant `None`
   |
LL -         (Non | Some(_))=&gt; {}
LL +         (core::option::Option::None | Some(_))=&gt; {}
   |
```

When encountering a typo in a pattern that gets interpreted as an unused binding, look for unit struct/variant of the same type as the binding:

```
error: unused variable: `Non`
  --&gt; $DIR/binding-typo-2.rs:36:9
   |
LL |         Non =&gt; {}
   |         ^^^
   |
help: if this is intentional, prefix it with an underscore
   |
LL |         _Non =&gt; {}
   |         +
help: you might have meant to pattern match on the similarly named variant `None`
   |
LL -         Non =&gt; {}
LL +         std::prelude::v1::None =&gt; {}
   |
```

 Suggest constant on unused binding in a pattern

```
error: unused variable: `Batery`
  --&gt; $DIR/binding-typo-2.rs:110:9
   |
LL |         Batery =&gt; {}
   |         ^^^^^^
   |
help: if this is intentional, prefix it with an underscore
   |
LL |         _Batery =&gt; {}
   |         +
help: you might have meant to pattern match on the similarly named constant `Battery`
   |
LL |         Battery =&gt; {}
   |            +
```

Fix rust-lang/rust#51976.
</content>
</entry>
<entry>
<title>On unused binding in pattern, suggest unit struct/variant with similar name</title>
<updated>2025-08-30T16:24:26+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2025-08-30T16:24:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=00f6fe1b6cbb211c4396b306566816f91a4ed371'/>
<id>urn:sha1:00f6fe1b6cbb211c4396b306566816f91a4ed371</id>
<content type='text'>
When encountering a typo in a pattern that gets interpreted as an unused binding, look for unit struct/variant of the same type as the binding:

```
error: unused variable: `Non`
  --&gt; $DIR/binding-typo-2.rs:36:9
   |
LL |         Non =&gt; {}
   |         ^^^
   |
help: if this is intentional, prefix it with an underscore
   |
LL |         _Non =&gt; {}
   |         +
help: you might have meant to pattern match on the similarly named variant `None`
   |
LL -         Non =&gt; {}
LL +         std::prelude::v1::None =&gt; {}
   |
```
</content>
</entry>
<entry>
<title>Add new `doc(attribute = "...")` attribute</title>
<updated>2025-08-28T13:56:29+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2025-06-13T19:01:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ab0ee84eac9732e4e81e559c688846b4c1bd400a'/>
<id>urn:sha1:ab0ee84eac9732e4e81e559c688846b4c1bd400a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use attribute name in message for "outer attr used as inner attr" errors</title>
<updated>2025-08-25T19:31:04+00:00</updated>
<author>
<name>Sasha Pourcelot</name>
<email>sasha.pourcelot@protonmail.com</email>
</author>
<published>2025-08-23T17:45:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a8e9ca195e8345fc574420418d2fd3aed258f703'/>
<id>urn:sha1:a8e9ca195e8345fc574420418d2fd3aed258f703</id>
<content type='text'>
</content>
</entry>
</feed>
