<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/unresolved, 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-06-05T07:19:31+00:00</updated>
<entry>
<title>Use non-2015 edition paths in tests that do not test for their resolution</title>
<updated>2025-06-05T07:19:31+00:00</updated>
<author>
<name>Lukas Wirth</name>
<email>lukas.wirth@ferrous-systems.com</email>
</author>
<published>2025-06-05T06:41:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=46326e159f5008c1dca78911442167d5dee07b64'/>
<id>urn:sha1:46326e159f5008c1dca78911442167d5dee07b64</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Note potential but private items in show_candidates</title>
<updated>2025-03-22T03:41:42+00:00</updated>
<author>
<name>xizheyin</name>
<email>xizheyin@smail.nju.edu.cn</email>
</author>
<published>2025-03-21T14:36:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=26cfa6f819e10fa597766d8c5549b86e503ff288'/>
<id>urn:sha1:26cfa6f819e10fa597766d8c5549b86e503ff288</id>
<content type='text'>
Signed-off-by: xizheyin &lt;xizheyin@smail.nju.edu.cn&gt;
</content>
</entry>
<entry>
<title>Trim suggestion parts to the subset that is purely additive</title>
<updated>2025-02-14T08:44:10+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-02-13T03:21:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6d71251cf9e40326461f90f8ff9a7024706aea87'/>
<id>urn:sha1:6d71251cf9e40326461f90f8ff9a7024706aea87</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Consider add-prefix replacements too</title>
<updated>2025-02-14T08:27:17+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-02-13T03:07:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f6406dfd4efceb6f713e503aecda587304135ed9'/>
<id>urn:sha1:f6406dfd4efceb6f713e503aecda587304135ed9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Show diff suggestion format on verbose replacement</title>
<updated>2025-02-10T20:21:39+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-07-09T22:30:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f0845adb0c1b7a7fa1bef73e749b2d7e1d7f374d'/>
<id>urn:sha1:f0845adb0c1b7a7fa1bef73e749b2d7e1d7f374d</id>
<content type='text'>
```
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --&gt; $DIR/attempted-access-non-fatal.rs:7:15
   |
LL |     let _ = 2.l;
   |               ^
   |
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
   |
LL -     let _ = 2.l;
LL +     let _ = 2.0f64;
   |
```
</content>
</entry>
<entry>
<title>Reword "crate not found" resolve message</title>
<updated>2025-01-24T01:19:50+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-11-18T03:42:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dd52bfc76e9d1136ba90c5aff1af22b0d5ca2631'/>
<id>urn:sha1:dd52bfc76e9d1136ba90c5aff1af22b0d5ca2631</id>
<content type='text'>
```
error[E0432]: unresolved import `some_novel_crate`
 --&gt; file.rs:1:5
  |
1 | use some_novel_crate::Type;
  |     ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `some_novel_crate`
```

On resolve errors where there might be a missing crate, mention `cargo add foo`:

```
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nope`
  --&gt; $DIR/conflicting-impl-with-err.rs:4:11
   |
LL | impl From&lt;nope::Thing&gt; for Error {
   |           ^^^^ use of unresolved module or unlinked crate `nope`
   |
   = help: if you wanted to use a crate named `nope`, use `cargo add nope` to add it to your `Cargo.toml`
```
</content>
</entry>
<entry>
<title>Structured suggestion for `extern crate foo` when `foo` isn't resolved in import</title>
<updated>2024-07-29T23:49:51+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-07-24T19:31:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b61570ac11650579252a9350505a7064e85b48c5'/>
<id>urn:sha1:b61570ac11650579252a9350505a7064e85b48c5</id>
<content type='text'>
When encountering a name in an import that could have come from a crate that wasn't imported, use a structured suggestion to suggest `extern crate foo;` pointing at the right place in the crate.

When encountering `_` in an import, do not suggest `extern crate _;`.

```
error[E0432]: unresolved import `spam`
  --&gt; $DIR/import-from-missing-star-3.rs:2:9
   |
LL |     use spam::*;
   |         ^^^^ maybe a missing crate `spam`?
   |
help: consider importing the `spam` crate
   |
LL + extern crate spam;
   |
```
</content>
</entry>
<entry>
<title>Do not use question as label</title>
<updated>2024-07-24T21:03:27+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-07-23T19:43:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=850faea030db4b260719d99be4191d7803efdb35'/>
<id>urn:sha1:850faea030db4b260719d99be4191d7803efdb35</id>
<content type='text'>
We don't want to have questions in the diagnostic output. Instead, we use wording that communicates uncertainty, like "might":

```
error[E0432]: unresolved import `spam`
  --&gt; $DIR/import-from-missing-star-3.rs:2:9
   |
LL |     use spam::*;
   |         ^^^^ you might be missing crate `spam`
   |
   = help: consider adding `extern crate spam` to use the `spam` crate
```
</content>
</entry>
<entry>
<title>[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives</title>
<updated>2024-02-16T20:02:50+00:00</updated>
<author>
<name>许杰友 Jieyou Xu (Joe)</name>
<email>jieyouxu@outlook.com</email>
</author>
<published>2024-02-16T20:02:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ec2cc761bc7067712ecc7734502f703fe3b024c8'/>
<id>urn:sha1:ec2cc761bc7067712ecc7734502f703fe3b024c8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Show number in error message even for one error</title>
<updated>2023-11-24T18:15:52+00:00</updated>
<author>
<name>Nilstrieb</name>
<email>48135649+Nilstrieb@users.noreply.github.com</email>
</author>
<published>2023-11-21T15:44:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=41e8d152dc5abb5a706999ada8b059d3420af8f3'/>
<id>urn:sha1:41e8d152dc5abb5a706999ada8b059d3420af8f3</id>
<content type='text'>
Co-authored-by: Adrian &lt;adrian.iosdev@gmail.com&gt;
</content>
</entry>
</feed>
