<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_hir_analysis/src/astconv, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-03-22T05:32:49+00:00</updated>
<entry>
<title>Rename module astconv to hir_ty_lowering</title>
<updated>2024-03-22T05:32:49+00:00</updated>
<author>
<name>León Orell Valerian Liehr</name>
<email>me@fmease.dev</email>
</author>
<published>2024-02-11T10:09:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6d5a93949af43b76d84a3c732e2bb1dfae6654f6'/>
<id>urn:sha1:6d5a93949af43b76d84a3c732e2bb1dfae6654f6</id>
<content type='text'>
Split from the main renaming commit to make git generate a proper diff for ease of reviewing.
</content>
</entry>
<entry>
<title>Update local variables and tracing calls</title>
<updated>2024-03-22T05:32:23+00:00</updated>
<author>
<name>León Orell Valerian Liehr</name>
<email>me@fmease.dev</email>
</author>
<published>2024-02-11T08:24:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b79335dbedfbb9599970c209c3f3e7a5e3e7b992'/>
<id>urn:sha1:b79335dbedfbb9599970c209c3f3e7a5e3e7b992</id>
<content type='text'>
Most of the tracing calls didn't fully leverage the power of `tracing`.
For example, several of them used to hard-code method names / tracing spans
as well as variable names. Use `#[instrument]` and `?var` / `%var` (etc.) instead.

In my opinion, this is the proper way to migrate them from the old
AstConv nomenclature to the new HIR ty lowering one.
</content>
</entry>
<entry>
<title>Update (doc) comments</title>
<updated>2024-03-22T05:31:51+00:00</updated>
<author>
<name>León Orell Valerian Liehr</name>
<email>me@fmease.dev</email>
</author>
<published>2024-02-11T08:22:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=82c2c8deb1fb7640fedfbc49b5647957a1d572db'/>
<id>urn:sha1:82c2c8deb1fb7640fedfbc49b5647957a1d572db</id>
<content type='text'>
Several (doc) comments were super outdated or didn't provide enough context.

Some doc comments shoved everything in a single paragraph without respecting
the fact that the first paragraph should be a single sentence because rustdoc
treats these as item descriptions / synopses on module pages.
</content>
</entry>
<entry>
<title>Rename AstConv to HIR ty lowering</title>
<updated>2024-03-22T05:31:40+00:00</updated>
<author>
<name>León Orell Valerian Liehr</name>
<email>me@fmease.dev</email>
</author>
<published>2024-03-15T02:21:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=05d48b936f3733ff1d64de91a47465682603b133'/>
<id>urn:sha1:05d48b936f3733ff1d64de91a47465682603b133</id>
<content type='text'>
This includes updating astconv-related items and a few local variables.
</content>
</entry>
<entry>
<title>Replace closures with `_` when suggesting fully qualified path for method call</title>
<updated>2024-03-21T00:07:44+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-03-20T22:50:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5fae66592494d37aa9b7c3add8c0e6077e0833f7'/>
<id>urn:sha1:5fae66592494d37aa9b7c3add8c0e6077e0833f7</id>
<content type='text'>
```
error[E0283]: type annotations needed
  --&gt; $DIR/into-inference-needs-type.rs:12:10
   |
LL |         .into()?;
   |          ^^^^
   |
   = note: cannot satisfy `_: From&lt;...&gt;`
   = note: required for `FilterMap&lt;...&gt;` to implement `Into&lt;_&gt;`
help: try using a fully qualified path to specify the expected types
   |
LL ~     let list = &lt;FilterMap&lt;Map&lt;std::slice::Iter&lt;'_, &amp;str&gt;, _&gt;, _&gt; as Into&lt;T&gt;&gt;::into(vec
LL |         .iter()
LL |         .map(|s| s.strip_prefix("t"))
LL ~         .filter_map(Option::Some))?;
   |
```

Fix #122569.
</content>
</entry>
<entry>
<title>Rollup merge of #122158 - estebank:feature-sugg, r=WaffleLapkin</title>
<updated>2024-03-18T21:24:38+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-03-18T21:24:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=980248605a6e3af15e64b93285654fb4e15b1015'/>
<id>urn:sha1:980248605a6e3af15e64b93285654fb4e15b1015</id>
<content type='text'>
Provide structured suggestion for `#![feature(foo)]`

```
error: `S2&lt;'_&gt;` is forbidden as the type of a const generic parameter
  --&gt; $DIR/lifetime-in-const-param.rs:5:23
   |
LL | struct S&lt;'a, const N: S2&gt;(&amp;'a ());
   |                       ^^
   |
   = note: the only supported types are integers, `bool` and `char`
help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
   |
LL + #![feature(adt_const_params)]
   |
```

Fix #55941.
</content>
</entry>
<entry>
<title>Rollup merge of #121258 - fmease:assoc-const-eq-reject-overly-generic-tys, r=compiler-errors</title>
<updated>2024-03-18T21:24:36+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-03-18T21:24:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=05f763344d396fa59563da6aafb85c9f5e6716f4'/>
<id>urn:sha1:05f763344d396fa59563da6aafb85c9f5e6716f4</id>
<content type='text'>
Reject overly generic assoc const binding types

Split off from #119385 to make #119385 easier to review.

---

In the *instantiated* type of assoc const bindings

1. reject **early-bound generic params**
   * Provide a rich error message instead of ICE'ing ([#108271](https://github.com/rust-lang/rust/issues/108271)).
   * This is a temporary and semi-artificial restriction until the arrival of *generic const generics*.
   * It's quite possible that rustc could already perfectly support this subset of generic const generics if we just removed some checks (some `.no_bound_vars().expect(…)`) but even if that was the case, I'd rather gate it behind a new feature flag. Reporting an error instead of ICE'ing is a good first step towards an eventual feature gate error.
2. reject **escaping late-bound generic params**
   * They lead to ICEs before &amp; I'm pretty sure that they remain incorrect even in a world with *generic const generics*

---

Together with #118668 &amp; #119385, this supersedes #118360.
Fixes #108271.
</content>
</entry>
<entry>
<title>Provide structured suggestion for `#![feature(foo)]`</title>
<updated>2024-03-18T16:08:58+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-03-07T22:09:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6c31f6ce1211a9f635526652eb85002850620277'/>
<id>urn:sha1:6c31f6ce1211a9f635526652eb85002850620277</id>
<content type='text'>
```
error: `S2&lt;'_&gt;` is forbidden as the type of a const generic parameter
  --&gt; $DIR/lifetime-in-const-param.rs:5:23
   |
LL | struct S&lt;'a, const N: S2&gt;(&amp;'a ());
   |                       ^^
   |
   = note: the only supported types are integers, `bool` and `char`
help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
   |
LL + #![feature(adt_const_params)]
   |
```

Fix #55941.
</content>
</entry>
<entry>
<title>avoid unnecessary collect()</title>
<updated>2024-03-17T11:19:46+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-03-17T11:19:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b8db431f37e097a545f364335fdcd5f65c056cb7'/>
<id>urn:sha1:b8db431f37e097a545f364335fdcd5f65c056cb7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove obsolete parameter `speculative` from `instantiate_poly_trait_ref`</title>
<updated>2024-03-16T01:33:21+00:00</updated>
<author>
<name>León Orell Valerian Liehr</name>
<email>me@fmease.dev</email>
</author>
<published>2024-03-16T01:33:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a37fe00ea16a48652c22af3afa7dd04611a82700'/>
<id>urn:sha1:a37fe00ea16a48652c22af3afa7dd04611a82700</id>
<content type='text'>
</content>
</entry>
</feed>
