<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/privacy, 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-09-28T21:33:34+00:00</updated>
<entry>
<title>Detect unconstructable re-exported tuple structs</title>
<updated>2025-09-28T21:33:34+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-11-25T21:52:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8f7d61b9efe1f44701f87fe4647eb1f39d20f434'/>
<id>urn:sha1:8f7d61b9efe1f44701f87fe4647eb1f39d20f434</id>
<content type='text'>
When a tuple-struct is re-exported that has inaccessible fields at the `use` scope, the type's constructor cannot be accessed through that re-export. We now account for this case and extend the resulting resolution error. We also check if the constructor would be accessible directly, not through the re-export, and if so, we suggest using the full path instead.

```
error[E0423]: cannot initialize a tuple struct which contains private fields
  --&gt; $DIR/ctor-not-accessible-due-to-inaccessible-field-in-reexport.rs:12:33
   |
LL |             let crate::Foo(x) = crate::Foo(42);
   |                                 ^^^^^^^^^^
   |
note: the type is accessed through this re-export, but the type's constructor is not visible in this import's scope due to private fields
  --&gt; $DIR/ctor-not-accessible-due-to-inaccessible-field-in-reexport.rs:3:9
   |
LL | pub use my_mod::Foo;
   |         ^^^^^^^^^^^
help: the type can be constructed directly, because its fields are available from the current scope
   |
LL |             let crate::Foo(x) = crate::my_mod::Foo(42);
   |                                 ~~~~~~~~~~~~~~~~~~
```

Fix #133343.
</content>
</entry>
<entry>
<title>fix ICE when suggesting `::new`</title>
<updated>2025-09-04T20:56:24+00:00</updated>
<author>
<name>Lukas Markeffsky</name>
<email>@</email>
</author>
<published>2025-09-04T20:39:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4ca8078d37c53ee4ff8fb32b4453b915116f25b8'/>
<id>urn:sha1:4ca8078d37c53ee4ff8fb32b4453b915116f25b8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>suggest method name with maybe ty mismatch</title>
<updated>2025-08-31T02:55:14+00:00</updated>
<author>
<name>yukang</name>
<email>moorekang@gmail.com</email>
</author>
<published>2025-08-31T02:53:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=263766bcc28a9441d0acfb1a335308e46cfd1917'/>
<id>urn:sha1:263766bcc28a9441d0acfb1a335308e46cfd1917</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #145676 - Oneirical:uncountable-integer-9, r=jieyouxu</title>
<updated>2025-08-29T10:37:30+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-08-29T10:37:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=47f1df5ca35217ca5e21ffd1f1daa3cb623470e2'/>
<id>urn:sha1:47f1df5ca35217ca5e21ffd1f1daa3cb623470e2</id>
<content type='text'>
Rehome 30 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [#2 of Batch #2]

Part of rust-lang/rust#133895

Methodology:

1. Refer to the previously written `tests/ui/SUMMARY.md`
2. Find an appropriate category for the test, using the original issue thread and the test contents.
3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers)
4. Rename the tests to make their purpose clearer

Inspired by the methodology that `@Kivooeo` was using.

r? `@jieyouxu`
</content>
</entry>
<entry>
<title>Rollup merge of #145675 - Oneirical:uncountable-integer-8, r=jieyouxu</title>
<updated>2025-08-29T10:37:30+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-08-29T10:37:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e15744e7a4095a868cc3d145ae81bd6660247519'/>
<id>urn:sha1:e15744e7a4095a868cc3d145ae81bd6660247519</id>
<content type='text'>
Rehome 30 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [#1 of Batch #2]

Part of rust-lang/rust#133895

Methodology:

1. Refer to the previously written `tests/ui/SUMMARY.md`
2. Find an appropriate category for the test, using the original issue thread and the test contents.
3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers)
4. Rename the tests to make their purpose clearer

Inspired by the methodology that `@Kivooeo` was using.

r? `@jieyouxu`
</content>
</entry>
<entry>
<title>Add test batch 2</title>
<updated>2025-08-27T19:06:05+00:00</updated>
<author>
<name>Oneirical</name>
<email>manchot@videotron.ca</email>
</author>
<published>2025-08-20T18:02:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2dc4638c4637bf8ddb83577535317dad21abdf6d'/>
<id>urn:sha1:2dc4638c4637bf8ddb83577535317dad21abdf6d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add test batch 1</title>
<updated>2025-08-27T04:23:26+00:00</updated>
<author>
<name>Oneirical</name>
<email>manchot@videotron.ca</email>
</author>
<published>2025-08-20T18:02:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2e659f58940a31fa625e88f75f78111ed773f32d'/>
<id>urn:sha1:2e659f58940a31fa625e88f75f78111ed773f32d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: Add col separator before secondary messages with no source</title>
<updated>2025-08-26T21:15:17+00:00</updated>
<author>
<name>Scott Schafer</name>
<email>schaferjscott@gmail.com</email>
</author>
<published>2025-07-03T21:47:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=93d16c510066db062700e783a53461d45e5dbe4b'/>
<id>urn:sha1:93d16c510066db062700e783a53461d45e5dbe4b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: Don't add an end column separator after a file with no source</title>
<updated>2025-08-26T21:15:17+00:00</updated>
<author>
<name>Scott Schafer</name>
<email>schaferjscott@gmail.com</email>
</author>
<published>2025-07-22T11:14:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8835ea854e9339ae83a35461c064a1b919872ca5'/>
<id>urn:sha1:8835ea854e9339ae83a35461c064a1b919872ca5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>On E0277, point at type that doesn't implement bound</title>
<updated>2025-08-22T17:55:15+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2025-08-19T17:49:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=049c32797b5f797d5823cdc0e5aaeb0fd68175da'/>
<id>urn:sha1:049c32797b5f797d5823cdc0e5aaeb0fd68175da</id>
<content type='text'>
When encountering an unmet trait bound, point at local type that doesn't implement the trait:

```
error[E0277]: the trait bound `Bar&lt;T&gt;: Foo` is not satisfied
  --&gt; $DIR/issue-64855.rs:9:19
   |
LL | pub struct Bar&lt;T&gt;(&lt;Self as Foo&gt;::Type) where Self: ;
   |                   ^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
   |
help: the trait `Foo` is not implemented for `Bar&lt;T&gt;`
  --&gt; $DIR/issue-64855.rs:9:1
   |
LL | pub struct Bar&lt;T&gt;(&lt;Self as Foo&gt;::Type) where Self: ;
   | ^^^^^^^^^^^^^^^^^
```
</content>
</entry>
</feed>
