<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_attr/src/lib.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-25T21:38:40+00:00</updated>
<entry>
<title>Use `rustc_fluent_macro::fluent_messages!` directly.</title>
<updated>2023-11-25T21:38:40+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-11-21T22:53:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=57cd5e6551ffcd071aa0496f9b8c0ed28dca7ffe'/>
<id>urn:sha1:57cd5e6551ffcd071aa0496f9b8c0ed28dca7ffe</id>
<content type='text'>
Currently we always do this:
```
use rustc_fluent_macro::fluent_messages;
...
fluent_messages! { "./example.ftl" }
```
But there is no need, we can just do this everywhere:
```
rustc_fluent_macro::fluent_messages! { "./example.ftl" }
```
which is shorter.
</content>
</entry>
<entry>
<title>Avoid need for `{D,Subd}iagnosticMessage` imports.</title>
<updated>2023-11-25T21:38:00+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-11-21T22:22:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a733082be9962317e41f357a9708632a759c28b2'/>
<id>urn:sha1:a733082be9962317e41f357a9708632a759c28b2</id>
<content type='text'>
The `fluent_messages!` macro produces uses of
`crate::{D,Subd}iagnosticMessage`, which means that every crate using
the macro must have this import:
```
use rustc_errors::{DiagnosticMessage, SubdiagnosticMessage};
```

This commit changes the macro to instead use
`rustc_errors::{D,Subd}iagnosticMessage`, which avoids the need for the
imports.
</content>
</entry>
<entry>
<title>Bump cfg(bootstrap)s</title>
<updated>2023-11-16T00:41:28+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2023-11-13T12:39:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=db3e2bacb69c068fd9262a3aadd961ea2f7f940e'/>
<id>urn:sha1:db3e2bacb69c068fd9262a3aadd961ea2f7f940e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Parse rustc version at compile time</title>
<updated>2023-10-27T01:55:05+00:00</updated>
<author>
<name>David Tolnay</name>
<email>dtolnay@gmail.com</email>
</author>
<published>2023-10-27T00:18:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b7debe34e6fb2d329e21739c97ce3d7161303af5'/>
<id>urn:sha1:b7debe34e6fb2d329e21739c97ce3d7161303af5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>docs: add Rust logo to more compiler crates</title>
<updated>2023-10-16T22:38:08+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2023-10-16T22:22:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2ff2624722a8e0022ba0783d5870456df379ed94'/>
<id>urn:sha1:2ff2624722a8e0022ba0783d5870456df379ed94</id>
<content type='text'>
c6e6ecb1afea9695a42d0f148ce153536b279eb5 added it to some of the
compiler's crates, but avoided adding it to all of them to reduce
bit-rot. This commit adds to more.
</content>
</entry>
<entry>
<title>Add `rustc_fluent_macro` to decouple fluent from `rustc_macros`</title>
<updated>2023-04-18T18:56:22+00:00</updated>
<author>
<name>Nilstrieb</name>
<email>48135649+Nilstrieb@users.noreply.github.com</email>
</author>
<published>2023-04-16T12:33:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b5d3d970fa64c25eecfbd8ebbae601a2c6cb2cb3'/>
<id>urn:sha1:b5d3d970fa64c25eecfbd8ebbae601a2c6cb2cb3</id>
<content type='text'>
Fluent, with all the icu4x it brings in, takes quite some time to
compile. `fluent_messages!` is only needed in further downstream rustc
crates, but is blocking more upstream crates like `rustc_index`. By
splitting it out, we allow `rustc_macros` to be compiled earlier, which
speeds up `x check compiler` by about 5 seconds (and even more after the
needless dependency on `serde_json` is removed from
`rustc_data_structures`).
</content>
</entry>
<entry>
<title>Simplify message paths</title>
<updated>2023-03-11T21:51:57+00:00</updated>
<author>
<name>est31</name>
<email>MTest31@outlook.com</email>
</author>
<published>2023-03-02T23:18:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7e2ecb3cd84eae18e838624feeb2e5cf46b9cc57'/>
<id>urn:sha1:7e2ecb3cd84eae18e838624feeb2e5cf46b9cc57</id>
<content type='text'>
This makes it easier to open the messages file while developing on features.

The commit was the result of automatted changes:

for p in compiler/rustc_*; do mv $p/locales/en-US.ftl $p/messages.ftl; rmdir $p/locales; done

for p in compiler/rustc_*; do sed -i "s#\.\./locales/en-US.ftl#../messages.ftl#" $p/src/lib.rs; done
</content>
</entry>
<entry>
<title>errors: generate typed identifiers in each crate</title>
<updated>2023-02-22T09:15:53+00:00</updated>
<author>
<name>David Wood</name>
<email>david.wood@huawei.com</email>
</author>
<published>2022-10-13T09:13:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d1fcf611175e695c35c6cc0537d710277c1a5c6f'/>
<id>urn:sha1:d1fcf611175e695c35c6cc0537d710277c1a5c6f</id>
<content type='text'>
Instead of loading the Fluent resources for every crate in
`rustc_error_messages`, each crate generates typed identifiers for its
own diagnostics and creates a static which are pulled together in the
`rustc_driver` crate and provided to the diagnostic emitter.

Signed-off-by: David Wood &lt;david.wood@huawei.com&gt;
</content>
</entry>
<entry>
<title>remove cfg(bootstrap)</title>
<updated>2022-09-26T08:14:45+00:00</updated>
<author>
<name>Pietro Albini</name>
<email>pietro.albini@ferrous-systems.com</email>
</author>
<published>2022-09-20T13:41:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3975d55d9888392cd738708b914442de9ac2bff5'/>
<id>urn:sha1:3975d55d9888392cd738708b914442de9ac2bff5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Only enable the let_else feature on bootstrap</title>
<updated>2022-09-15T19:06:45+00:00</updated>
<author>
<name>est31</name>
<email>MTest31@outlook.com</email>
</author>
<published>2022-02-27T06:07:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=173eb6f407438dff732b1636b5134ff220da3f5b'/>
<id>urn:sha1:173eb6f407438dff732b1636b5134ff220da3f5b</id>
<content type='text'>
On later stages, the feature is already stable.

Result of running:

rg -l "feature.let_else" compiler/ src/librustdoc/ library/ | xargs sed -s -i "s#\\[feature.let_else#\\[cfg_attr\\(bootstrap, feature\\(let_else\\)#"
</content>
</entry>
</feed>
