<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/path.rs, branch 1.76.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.76.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.76.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2023-12-18T05:06:21+00:00</updated>
<entry>
<title>Rename `Parser::span_diagnostic` as `Parser::dcx`.</title>
<updated>2023-12-18T05:06:21+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-12-17T20:37:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=73bac456d413378b25210731c64eccc52c2201f7'/>
<id>urn:sha1:73bac456d413378b25210731c64eccc52c2201f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>More detail when expecting expression but encountering bad macro argument</title>
<updated>2023-11-16T16:19:04+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2023-07-31T14:55:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4e418805da5867bc48d82ba1cc7eff2ba68be575'/>
<id>urn:sha1:4e418805da5867bc48d82ba1cc7eff2ba68be575</id>
<content type='text'>
Partially address #71039.
</content>
</entry>
<entry>
<title>Minimize `pub` usage in `source_map.rs`.</title>
<updated>2023-11-02T08:35:00+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-11-02T03:10:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f405ce86c2a5daab5972876e5b7600afdc308643'/>
<id>urn:sha1:f405ce86c2a5daab5972876e5b7600afdc308643</id>
<content type='text'>
Most notably, this commit changes the `pub use crate::*;` in that file
to `use crate::*;`. This requires a lot of `use` items in other crates
to be adjusted, because everything defined within `rustc_span::*` was
also available via `rustc_span::source_map::*`, which is bizarre.

The commit also removes `SourceMap::span_to_relative_line_string`, which
is unused.
</content>
</entry>
<entry>
<title>Avoid unbounded O(n^2) when parsing nested type args</title>
<updated>2023-10-25T19:07:34+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2023-10-24T22:22:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2dec1bc685c58747c81391b1c5a53ba91400c50d'/>
<id>urn:sha1:2dec1bc685c58747c81391b1c5a53ba91400c50d</id>
<content type='text'>
When encountering code like `f::&lt;f::&lt;f::&lt;f::&lt;f::&lt;f::&lt;f::&lt;f::&lt;...` with
unmatched closing angle brackets, add a linear check that avoids the
exponential behavior of the parse recovery mechanism.

Fix #117080.
</content>
</entry>
<entry>
<title>Format all the let chains in compiler</title>
<updated>2023-10-13T08:59:36+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2023-10-13T08:58:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b2d2184edea578109a48ec3d8decbee5948e8f35'/>
<id>urn:sha1:b2d2184edea578109a48ec3d8decbee5948e8f35</id>
<content type='text'>
</content>
</entry>
<entry>
<title>inline format!() args up to and including rustc_middle</title>
<updated>2023-07-30T11:18:33+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-07-25T20:00:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=23815467a2ba4a5219149cb96bada4c7bea741bf'/>
<id>urn:sha1:23815467a2ba4a5219149cb96bada4c7bea741bf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #110791 - compiler-errors:negative-bounds, r=oli-obk</title>
<updated>2023-05-03T18:47:23+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>99973273+Dylan-DPC@users.noreply.github.com</email>
</author>
<published>2023-05-03T18:47:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=80df4ab403cbdaf0fc7a8301d8490ee60d7063bf'/>
<id>urn:sha1:80df4ab403cbdaf0fc7a8301d8490ee60d7063bf</id>
<content type='text'>
Implement negative bounds for internal testing purposes

Implements partial support the `!` negative polarity on trait bounds. This is incomplete, but should allow us to at least be able to play with the feature.

Not even gonna consider them as a public-facing feature, but I'm implementing them because would've been nice to have in UI tests, for example in #110671.
</content>
</entry>
<entry>
<title>Restrict `From&lt;S&gt;` for `{D,Subd}iagnosticMessage`.</title>
<updated>2023-05-02T22:44:39+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-04-20T03:26:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6b62f37402cb2990c7d350379238579af0360b10'/>
<id>urn:sha1:6b62f37402cb2990c7d350379238579af0360b10</id>
<content type='text'>
Currently a `{D,Subd}iagnosticMessage` can be created from any type that
impls `Into&lt;String&gt;`. That includes `&amp;str`, `String`, and `Cow&lt;'static,
str&gt;`, which are reasonable. It also includes `&amp;String`, which is pretty
weird, and results in many places making unnecessary allocations for
patterns like this:
```
self.fatal(&amp;format!(...))
```
This creates a string with `format!`, takes a reference, passes the
reference to `fatal`, which does an `into()`, which clones the
reference, doing a second allocation. Two allocations for a single
string, bleh.

This commit changes the `From` impls so that you can only create a
`{D,Subd}iagnosticMessage` from `&amp;str`, `String`, or `Cow&lt;'static,
str&gt;`. This requires changing all the places that currently create one
from a `&amp;String`. Most of these are of the `&amp;format!(...)` form
described above; each one removes an unnecessary static `&amp;`, plus an
allocation when executed. There are also a few places where the existing
use of `&amp;String` was more reasonable; these now just use `clone()` at
the call site.

As well as making the code nicer and more efficient, this is a step
towards possibly using `Cow&lt;'static, str&gt;` in
`{D,Subd}iagnosticMessage::{Str,Eager}`. That would require changing
the `From&lt;&amp;'a str&gt;` impls to `From&lt;&amp;'static str&gt;`, which is doable, but
I'm not yet sure if it's worthwhile.
</content>
</entry>
<entry>
<title>Implement negative bounds</title>
<updated>2023-05-02T22:36:24+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2023-04-25T05:15:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6e01e910cb8ab0109235be7cc7ab7ef465724255'/>
<id>urn:sha1:6e01e910cb8ab0109235be7cc7ab7ef465724255</id>
<content type='text'>
</content>
</entry>
<entry>
<title>soften the wording for removing type ascription</title>
<updated>2023-05-01T08:37:00+00:00</updated>
<author>
<name>yukang</name>
<email>moorekang@gmail.com</email>
</author>
<published>2023-04-28T01:55:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5d1796a608d387be784f17c28ec7c81f178a81eb'/>
<id>urn:sha1:5d1796a608d387be784f17c28ec7c81f178a81eb</id>
<content type='text'>
</content>
</entry>
</feed>
