<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/proc_macro/src/bridge, branch lcnr/rustc-dev-guide</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=lcnr/rustc-dev-guide</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=lcnr/rustc-dev-guide'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-07-10T07:23:52+00:00</updated>
<entry>
<title>Rollup merge of #141996 - Daniel-Aaron-Bloom:dollar_crate, r=petrochenkov</title>
<updated>2025-07-10T07:23:52+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>t.gross35@gmail.com</email>
</author>
<published>2025-07-10T07:23:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=73d3adc67b700ab3a41c72791f0ca5cbaef51425'/>
<id>urn:sha1:73d3adc67b700ab3a41c72791f0ca5cbaef51425</id>
<content type='text'>
Fix `proc_macro::Ident`'s handling of `$crate`

This PR is addresses a few minor bugs, all relating to `proc_macro::Ident`'s support for `$crate`. `Ident` currently supports `$crate` (as can be seen in the `mixed-site-span` test), but:
* `proc_macro::Symbol::can_be_raw` is out of sync with `rustc_span::Symbol::can_be_raw`
  * former doesn't cover `$crate` while the latter does cover `kw::DollarCrate`
* `Ident::new` rejects `$crate`
  * This conflicts with the [reference definition](https://doc.rust-lang.org/nightly/reference/macros-by-example.html#r-macro.decl.meta.specifier) of `ident` which includes `$crate`.
  * This also conflicts with the documentation on [`Display for Ident`](https://doc.rust-lang.org/proc_macro/struct.Ident.html#impl-Display-for-Ident) which says the output "should be losslessly convertible back into the same identifier".

This PR fixes the above issues and extends the `mixed-site-span` test to exercise these fixed code paths, as well as validating the different possible spans resolve `$crate`  as expected (for both the new and old `$crate` construction code paths).
</content>
</entry>
<entry>
<title>Remove all support for wasm's legacy ABI</title>
<updated>2025-06-14T09:57:06+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2024-12-06T09:06:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3e944fa3917a58e30d970d2cce42c14c5edf390b'/>
<id>urn:sha1:3e944fa3917a58e30d970d2cce42c14c5edf390b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add support for $crate to Ident</title>
<updated>2025-06-12T08:13:24+00:00</updated>
<author>
<name>Daniel Bloom</name>
<email>daniel@wormholelabs.xyz</email>
</author>
<published>2025-04-14T05:17:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6d1e93d8cdea975303397d91f726c40f5a7396fd'/>
<id>urn:sha1:6d1e93d8cdea975303397d91f726c40f5a7396fd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>manual clippy fixes</title>
<updated>2025-05-12T13:33:41+00:00</updated>
<author>
<name>Pietro Albini</name>
<email>pietro@pietroalbini.org</email>
</author>
<published>2025-05-10T08:58:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=779dd35649c42b0f57a2338d4ccd344e8ba6ebe3'/>
<id>urn:sha1:779dd35649c42b0f57a2338d4ccd344e8ba6ebe3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace proc_macro::SourceFile by Span::{file, local_file}.</title>
<updated>2025-04-11T13:07:08+00:00</updated>
<author>
<name>Mara Bos</name>
<email>m-ou.se@m-ou.se</email>
</author>
<published>2025-04-11T12:35:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3962069982783ccf183e273a983b0c150c51d504'/>
<id>urn:sha1:3962069982783ccf183e273a983b0c150c51d504</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove proc_macro::SourceFile::is_real().</title>
<updated>2025-04-11T12:02:06+00:00</updated>
<author>
<name>Mara Bos</name>
<email>m-ou.se@m-ou.se</email>
</author>
<published>2025-04-11T11:47:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6788ce76c9f66b836a3b6a72d8b6df32627edecc'/>
<id>urn:sha1:6788ce76c9f66b836a3b6a72d8b6df32627edecc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>update cfgs</title>
<updated>2025-04-09T11:29:59+00:00</updated>
<author>
<name>Boxy</name>
<email>rust@boxyuwu.dev</email>
</author>
<published>2025-04-02T20:28:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c93005ee651422f1920ef2a68e5ab9ff772b4b06'/>
<id>urn:sha1:c93005ee651422f1920ef2a68e5ab9ff772b4b06</id>
<content type='text'>
</content>
</entry>
<entry>
<title>allow wasm_c_abi in proc_macro bridge</title>
<updated>2025-03-25T07:22:35+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-03-22T17:42:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=61e24e630d5eea7bbff63e46051de509ceb46c33'/>
<id>urn:sha1:61e24e630d5eea7bbff63e46051de509ceb46c33</id>
<content type='text'>
</content>
</entry>
<entry>
<title>library: Use size_of from the prelude instead of imported</title>
<updated>2025-03-07T04:20:38+00:00</updated>
<author>
<name>Thalia Archibald</name>
<email>thalia@archibald.dev</email>
</author>
<published>2025-03-05T04:28:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=988eb1997014987caad878699ee1e7c000214508'/>
<id>urn:sha1:988eb1997014987caad878699ee1e7c000214508</id>
<content type='text'>
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the
prelude instead of importing or qualifying them.

These functions were added to all preludes in Rust 1.80.
</content>
</entry>
<entry>
<title>proc_macro: Apply unsafe_op_in_unsafe_fn</title>
<updated>2025-02-14T15:36:17+00:00</updated>
<author>
<name>Eric Huss</name>
<email>eric@huss.org</email>
</author>
<published>2025-02-13T20:52:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=80a7eb1c09b97f7ad1a68f538d2d9b04ded7da2b'/>
<id>urn:sha1:80a7eb1c09b97f7ad1a68f538d2d9b04ded7da2b</id>
<content type='text'>
</content>
</entry>
</feed>
