<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_feature/src, branch 1.89.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.89.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.89.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-07-24T18:02:01+00:00</updated>
<entry>
<title>Mitigate `#[align]` name resolution ambiguity regression with a rename</title>
<updated>2025-07-24T18:02:01+00:00</updated>
<author>
<name>Jieyou Xu</name>
<email>jieyouxu@outlook.com</email>
</author>
<published>2025-07-17T16:10:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2e832047c6bf348ba44fd57b21bada846d62f156'/>
<id>urn:sha1:2e832047c6bf348ba44fd57b21bada846d62f156</id>
<content type='text'>
From `#[align]` -&gt; `#[rustc_align]`. Attributes starting with `rustc`
are always perma-unstable and feature-gated by `feature(rustc_attrs)`.

See regression RUST-143834.

For the underlying problem where even introducing new feature-gated
unstable built-in attributes can break user code such as

```rs
macro_rules! align {
    () =&gt; {
        /* .. */
    };
}

pub(crate) use align; // `use` here becomes ambiguous
```

refer to RUST-134963.

Since the `#[align]` attribute is still feature-gated by
`feature(fn_align)`, we can rename it as a mitigation. Note that
`#[rustc_align]` will obviously mean that current unstable user code
using `feature(fn_aling)` will need additionally `feature(rustc_attrs)`,
but this is a short-term mitigation to buy time, and is expected to be
changed to a better name with less collision potential.

See
&lt;https://rust-lang.zulipchat.com/#narrow/channel/238009-t-compiler.2Fmeetings/topic/.5Bweekly.5D.202025-07-17/near/529290371&gt;
where mitigation options were considered.

(cherry picked from commit 69b71e44107b4905ec7ad84ccb3edf4f14b3df69)
</content>
</entry>
<entry>
<title>Update version placeholders</title>
<updated>2025-06-23T21:13:20+00:00</updated>
<author>
<name>Josh Stone</name>
<email>jistone@redhat.com</email>
</author>
<published>2025-06-23T17:24:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=36b5dd0de364b0f44733f3778a4fb02f1f84bebd'/>
<id>urn:sha1:36b5dd0de364b0f44733f3778a4fb02f1f84bebd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Port `#[rustc_pub_transparent]` to the new attribute system</title>
<updated>2025-06-21T18:52:25+00:00</updated>
<author>
<name>Pavel Grigorenko</name>
<email>GrigorenkoPV@ya.ru</email>
</author>
<published>2025-06-14T17:54:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d86d3f3742caad06488a1bf1d7eb045606f95cdd'/>
<id>urn:sha1:d86d3f3742caad06488a1bf1d7eb045606f95cdd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>correct template for `#[align]`</title>
<updated>2025-06-19T11:58:23+00:00</updated>
<author>
<name>Folkert de Vries</name>
<email>folkert@folkertdev.nl</email>
</author>
<published>2025-06-19T10:40:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=eefd59872565330fc5905dc5903a56ce93fca47e'/>
<id>urn:sha1:eefd59872565330fc5905dc5903a56ce93fca47e</id>
<content type='text'>
it should not suggest just `#[align]`
</content>
</entry>
<entry>
<title>Rollup merge of #142507 - folkertdev:fn-align-align-attribute, r=jdonszelmann</title>
<updated>2025-06-19T00:22:49+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>t.gross35@gmail.com</email>
</author>
<published>2025-06-19T00:22:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=07932ad11153b62ec2138fa71a398a1ca8ea05ac'/>
<id>urn:sha1:07932ad11153b62ec2138fa71a398a1ca8ea05ac</id>
<content type='text'>
use `#[align]` attribute for `fn_align`

Tracking issue: https://github.com/rust-lang/rust/issues/82232

https://github.com/rust-lang/rfcs/pull/3806 decides to add the `#[align]` attribute for alignment of various items. Right now it's used for functions with `fn_align`, in the future it will get more uses (statics, struct fields, etc.)

(the RFC finishes FCP today)

r? `@ghost`
</content>
</entry>
<entry>
<title>Rollup merge of #141610 - BoxyUwU:stabilize_generic_arg_infer, r=lcnr,traviscross</title>
<updated>2025-06-18T16:06:49+00:00</updated>
<author>
<name>Jakub Beránek</name>
<email>berykubik@gmail.com</email>
</author>
<published>2025-06-18T16:06:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0093ca5c760df11bfab0c9c556addef7b508acbc'/>
<id>urn:sha1:0093ca5c760df11bfab0c9c556addef7b508acbc</id>
<content type='text'>
Stabilize `feature(generic_arg_infer)`

Fixes rust-lang/rust#85077

r? lcnr

cc ````@rust-lang/project-const-generics````
</content>
</entry>
<entry>
<title>add `#[align]` attribute</title>
<updated>2025-06-18T10:37:08+00:00</updated>
<author>
<name>Folkert de Vries</name>
<email>folkert@folkertdev.nl</email>
</author>
<published>2025-06-09T18:08:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1fdf2b562070ec98c5b32ee67b8c6d8145127a6e'/>
<id>urn:sha1:1fdf2b562070ec98c5b32ee67b8c6d8145127a6e</id>
<content type='text'>
Right now it's used for functions with `fn_align`, in the future it will
get more uses (statics, struct fields, etc.)
</content>
</entry>
<entry>
<title>fix bugs in inline/force_inline and diagnostics of all attr parsers</title>
<updated>2025-06-17T21:19:31+00:00</updated>
<author>
<name>Jana Dönszelmann</name>
<email>jana@donsz.nl</email>
</author>
<published>2025-03-04T13:17:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ee976bbbcaf85390a00f03dedacd035e7e274e8e'/>
<id>urn:sha1:ee976bbbcaf85390a00f03dedacd035e7e274e8e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #137944 - davidtwco:sized-hierarchy, r=oli-obk</title>
<updated>2025-06-17T15:08:50+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-06-17T15:08:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=86d0aef80403f095d8bbabf44d9fdecfcd45f076'/>
<id>urn:sha1:86d0aef80403f095d8bbabf44d9fdecfcd45f076</id>
<content type='text'>
Sized Hierarchy: Part I

This patch implements the non-const parts of rust-lang/rfcs#3729. It introduces two new traits to the standard library, `MetaSized` and `PointeeSized`. See the RFC for the rationale behind these traits and to discuss whether this change makes sense in the abstract.

These traits are unstable (as is their constness), so users cannot refer to them without opting-in to `feature(sized_hierarchy)`. These traits are not behind `cfg`s as this would make implementation unfeasible, there would simply be too many `cfg`s required to add the necessary bounds everywhere. So, like `Sized`, these traits are automatically implemented by the compiler.

RFC 3729 describes changes which are necessary to preserve backwards compatibility given the introduction of these traits, which are implemented and as follows:

- `?Sized` is rewritten as `MetaSized`
- `MetaSized` is added as a default supertrait for all traits w/out an explicit sizedness supertrait already.

There are no edition migrations implemented in this,  as these are primarily required for the constness parts of the RFC and prior to stabilisation of this (and so will come in follow-up PRs alongside the const parts). All diagnostic output should remain the same (showing `?Sized` even if the compiler sees `MetaSized`) unless the `sized_hierarchy` feature is enabled.

Due to the use of unstable extern types in the standard library and rustc, some bounds in both projects have had to be relaxed already - this is unfortunate but unavoidable so that these extern types can continue to be used where they were before. Performing these relaxations in the standard library and rustc are desirable longer-term anyway, but some bounds are not as relaxed as they ideally would be due to the inability to relax `Deref::Target` (this will be investigated separately).

It is hoped that this is implemented such that it could be merged and these traits could exist "under the hood" without that being observable to the user (other than in any performance impact this has on the compiler, etc). Some details might leak through due to the standard library relaxations, but this has not been observed in test output.

**Notes:**

- Any commits starting with "upstream:" can be ignored, as these correspond to other upstream PRs that this is based on which have yet to be merged.
- This best reviewed commit-by-commit. I've attempted to make the implementation easy to follow and keep similar changes and test output updates together.
  - Each commit has a short description describing its purpose.
  - This patch is large but it's primarily in the test suite.
- I've worked on the performance of this patch and a few optimisations are implemented so that the performance impact is neutral-to-minor.
- `PointeeSized` is a different name from the RFC just to make it more obvious that it is different from `std::ptr::Pointee` but all the names are yet to be bikeshed anyway.
- `@nikomatsakis` has confirmed [that this can proceed as an experiment from the t-lang side](https://rust-lang.zulipchat.com/#narrow/channel/435869-project-goals/topic/SVE.20and.20SME.20on.20AArch64.20.28goals.23270.29/near/506196491)
- FCP in https://github.com/rust-lang/rust/pull/137944#issuecomment-2912207485

Fixes rust-lang/rust#79409.

r? `@ghost` (I'll discuss this with relevant teams to find a reviewer)
</content>
</entry>
<entry>
<title>trait_sel: `{Meta,Pointee}Sized` on `Sized` types</title>
<updated>2025-06-16T15:00:22+00:00</updated>
<author>
<name>David Wood</name>
<email>david.wood2@arm.com</email>
</author>
<published>2025-01-16T11:30:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d43da6f4de19ccfc6ac5a8e6b16ab8cf2893692a'/>
<id>urn:sha1:d43da6f4de19ccfc6ac5a8e6b16ab8cf2893692a</id>
<content type='text'>
Introduce the `MetaSized` and `PointeeSized` traits as supertraits of
`Sized` and initially implement it on everything that currently
implements `Sized` to isolate any changes that simply adding the
traits introduces.
</content>
</entry>
</feed>
