<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/path.rs, branch 1.74.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.74.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.74.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2023-07-30T11:18:33+00:00</updated>
<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>
<entry>
<title>fix tests</title>
<updated>2023-05-01T08:15:17+00:00</updated>
<author>
<name>yukang</name>
<email>moorekang@gmail.com</email>
</author>
<published>2023-03-14T23:10:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f54489978d478797108218fda90e1c929e657937'/>
<id>urn:sha1:f54489978d478797108218fda90e1c929e657937</id>
<content type='text'>
</content>
</entry>
<entry>
<title>clean up debug code</title>
<updated>2023-05-01T08:15:17+00:00</updated>
<author>
<name>yukang</name>
<email>moorekang@gmail.com</email>
</author>
<published>2023-03-14T15:48:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1b08eaca200ea5c7f6455b0302e031b479fb33dc'/>
<id>urn:sha1:1b08eaca200ea5c7f6455b0302e031b479fb33dc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rip it out</title>
<updated>2023-05-01T08:15:13+00:00</updated>
<author>
<name>Nilstrieb</name>
<email>48135649+Nilstrieb@users.noreply.github.com</email>
</author>
<published>2022-11-16T20:46:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c63b6a437eb16d13fbc0e72e091813579895bc9f'/>
<id>urn:sha1:c63b6a437eb16d13fbc0e72e091813579895bc9f</id>
<content type='text'>
My type ascription
Oh rip it out
Ah
If you think we live too much then
You can sacrifice diagnostics
Don't mix your garbage
Into my syntax
So many weird hacks keep diagnostics alive
Yet I don't even step outside
So many bad diagnostics keep tyasc alive
Yet tyasc doesn't even bother to survive!
</content>
</entry>
<entry>
<title>Migrate trivially translatable `rustc_parse` diagnostics</title>
<updated>2023-04-27T00:53:06+00:00</updated>
<author>
<name>clubby789</name>
<email>jamie@hill-daniel.co.uk</email>
</author>
<published>2023-04-27T00:53:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1ce9d7254e3e890a4b60846072e5731231f7e030'/>
<id>urn:sha1:1ce9d7254e3e890a4b60846072e5731231f7e030</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix static string lints</title>
<updated>2023-04-25T17:59:55+00:00</updated>
<author>
<name>clubby789</name>
<email>jamie@hill-daniel.co.uk</email>
</author>
<published>2023-04-10T15:04:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=01385136353ac35f16d10bf5890bf0efc80df761'/>
<id>urn:sha1:01385136353ac35f16d10bf5890bf0efc80df761</id>
<content type='text'>
</content>
</entry>
</feed>
