<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_metadata/src/native_libs.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-11-30T16:26:13+00:00</updated>
<entry>
<title>Enable link-arg link kind inside of #[link] attribute</title>
<updated>2023-11-30T16:26:13+00:00</updated>
<author>
<name>zetanumbers</name>
<email>dariasukhonina@gmail.com</email>
</author>
<published>2023-11-29T10:13:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f7617c1cd4d1910613ffecdfd8de28889002f6cc'/>
<id>urn:sha1:f7617c1cd4d1910613ffecdfd8de28889002f6cc</id>
<content type='text'>
- Implement link-arg as an attribute
- Apply suggestions from review
  - Co-authored-by: Vadim Petrochenkov &lt;vadim.petrochenkov@gmail.com&gt;
- Add unstable book entry
</content>
</entry>
<entry>
<title>rename bound region instantiation</title>
<updated>2023-11-17T09:29:48+00:00</updated>
<author>
<name>lcnr</name>
<email>rust@lcnr.de</email>
</author>
<published>2023-11-17T09:29:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=40b154e53c0e04ff4cfd40d43d8e2b86b143b763'/>
<id>urn:sha1:40b154e53c0e04ff4cfd40d43d8e2b86b143b763</id>
<content type='text'>
- `erase_late_bound_regions` -&gt; `instantiate_bound_regions_with_erased`
- `replace_late_bound_regions_X` -&gt; `instantiate_bound_regions_X`
</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>rustc: Move `crate_types` from `Session` to `GlobalCtxt`</title>
<updated>2023-08-09T06:17:54+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2023-08-08T10:28:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0b89aac08d7190961544ced9e868cc20ce24d786'/>
<id>urn:sha1:0b89aac08d7190961544ced9e868cc20ce24d786</id>
<content type='text'>
Removes a piece of mutable state.
Follow up to #114578.
</content>
</entry>
<entry>
<title>Do not fetch HIR in native_libs.</title>
<updated>2023-07-17T07:37:03+00:00</updated>
<author>
<name>Camille GILLOT</name>
<email>gillot.camille@gmail.com</email>
</author>
<published>2023-07-15T10:17:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fdc93f307ffb28390aeab9be221a5e9e90517c3a'/>
<id>urn:sha1:fdc93f307ffb28390aeab9be221a5e9e90517c3a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactor(rustc_middle): Substs -&gt; GenericArg</title>
<updated>2023-07-14T12:27:35+00:00</updated>
<author>
<name>Mahdi Dibaiee</name>
<email>mdibaiee@pm.me</email>
</author>
<published>2023-07-11T21:35:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e55583c4b831c601452117a8eb20af59779ef582'/>
<id>urn:sha1:e55583c4b831c601452117a8eb20af59779ef582</id>
<content type='text'>
</content>
</entry>
<entry>
<title>s/drain_filter/extract_if/ for Vec, Btree{Map,Set} and LinkedList</title>
<updated>2023-06-14T07:28:54+00:00</updated>
<author>
<name>The 8472</name>
<email>git@infinite-source.de</email>
</author>
<published>2023-04-08T22:37:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=114d5f221c135e3267fbb966e2f0e582361cd8cb'/>
<id>urn:sha1:114d5f221c135e3267fbb966e2f0e582361cd8cb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #109677 - dpaoliello:rawdylib, r=michaelwoerister,wesleywiser</title>
<updated>2023-05-06T00:09:30+00:00</updated>
<author>
<name>Yuki Okushi</name>
<email>jtitor@2k36.org</email>
</author>
<published>2023-05-06T00:09:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=923a5a2ca7c9d8d3f89d186e5d34918dc6522e25'/>
<id>urn:sha1:923a5a2ca7c9d8d3f89d186e5d34918dc6522e25</id>
<content type='text'>
Stabilize raw-dylib, link_ordinal, import_name_type and -Cdlltool

This stabilizes the `raw-dylib` feature (#58713) for all architectures (i.e., `x86` as it is already stable for all other architectures).

Changes:
* Permit the use of the `raw-dylib` link kind for x86, the `link_ordinal` attribute and the `import_name_type` key for the `link` attribute.
* Mark the `raw_dylib` feature as stable.
* Stabilized the `-Zdlltool` argument as `-Cdlltool`.
* Note the path to `dlltool` if invoking it failed (we don't need to do this if `dlltool` returns an error since it prints its path in the error message).
* Adds tests for `-Cdlltool`.
* Adds tests for being unable to find the dlltool executable, and dlltool failing.
* Fixes a bug where we were checking the exit code of dlltool to see if it failed, but dlltool always returns 0 (indicating success), so instead we need to check if anything was written to `stderr`.

NOTE: As previously noted (https://github.com/rust-lang/rust/pull/104218#issuecomment-1315895618) using dlltool within rustc is temporary, but this is not the first time that Rust has added a temporary tool use and argument: https://github.com/rust-lang/rust/pull/104218#issuecomment-1318720482

Big thanks to ``````@tbu-`````` for the first version of this PR (#104218)
</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>Stablize raw-dylib, link_ordinal and -Cdlltool</title>
<updated>2023-04-18T18:01:07+00:00</updated>
<author>
<name>Daniel Paoliello</name>
<email>danpao@microsoft.com</email>
</author>
<published>2023-03-27T17:42:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1ece1ea48c0d9e4c8414abf872626f7a54747976'/>
<id>urn:sha1:1ece1ea48c0d9e4c8414abf872626f7a54747976</id>
<content type='text'>
</content>
</entry>
</feed>
