Skip to content

Rollup of 5 pull requests #140083

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 20, 2025
1 change: 0 additions & 1 deletion compiler/rustc_attr_data_structures/src/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ pub enum AttributeKind {
},
MacroTransparency(Transparency),
Repr(ThinVec<(ReprAttr, Span)>),
RustcMacroEdition2021,
Stability {
stability: Stability,
/// Span of the `#[stable(...)]` or `#[unstable(...)]` attribute
Expand Down
1 change: 0 additions & 1 deletion compiler/rustc_attr_parsing/src/attributes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pub(crate) mod cfg;
pub(crate) mod confusables;
pub(crate) mod deprecation;
pub(crate) mod repr;
pub(crate) mod rustc;
pub(crate) mod stability;
pub(crate) mod transparency;
pub(crate) mod util;
Expand Down
19 changes: 0 additions & 19 deletions compiler/rustc_attr_parsing/src/attributes/rustc.rs

This file was deleted.

2 changes: 0 additions & 2 deletions compiler/rustc_attr_parsing/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use crate::attributes::allow_unstable::{AllowConstFnUnstableParser, AllowInterna
use crate::attributes::confusables::ConfusablesParser;
use crate::attributes::deprecation::DeprecationParser;
use crate::attributes::repr::ReprParser;
use crate::attributes::rustc::RustcMacroEdition2021Parser;
use crate::attributes::stability::{
BodyStabilityParser, ConstStabilityIndirectParser, ConstStabilityParser, StabilityParser,
};
Expand Down Expand Up @@ -77,7 +76,6 @@ attribute_groups!(
// tidy-alphabetical-start
Single<ConstStabilityIndirectParser>,
Single<DeprecationParser>,
Single<RustcMacroEdition2021Parser>,
Single<TransparencyParser>,
// tidy-alphabetical-end
];
Expand Down
8 changes: 0 additions & 8 deletions compiler/rustc_feature/src/builtin_attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -676,14 +676,6 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
"`rustc_never_type_options` is used to experiment with never type fallback and work on \
never type stabilization, and will never be stable"
),
rustc_attr!(
rustc_macro_edition_2021,
Normal,
template!(Word),
ErrorFollowing,
EncodeCrossCrate::No,
"makes spans in this macro edition 2021"
),

// ==========================================================================
// Internal attributes: Runtime related:
Expand Down
9 changes: 1 addition & 8 deletions compiler/rustc_resolve/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::sync::Arc;
use rustc_ast::expand::StrippedCfgItem;
use rustc_ast::{self as ast, Crate, NodeId, attr};
use rustc_ast_pretty::pprust;
use rustc_attr_parsing::{AttributeKind, StabilityLevel, find_attr};
use rustc_attr_parsing::StabilityLevel;
use rustc_data_structures::intern::Interned;
use rustc_errors::{Applicability, DiagCtxtHandle, StashKey};
use rustc_expand::base::{
Expand Down Expand Up @@ -1128,13 +1128,6 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
edition,
);

// The #[rustc_macro_edition_2021] attribute is used by the pin!() macro
// as a temporary workaround for a regression in expressiveness in Rust 2024.
// See https://github.com/rust-lang/rust/issues/138718.
if find_attr!(attrs.iter(), AttributeKind::RustcMacroEdition2021) {
ext.edition = Edition::Edition2021;
}

if let Some(builtin_name) = ext.builtin_name {
// The macro was marked with `#[rustc_builtin_macro]`.
if let Some(builtin_ext_kind) = self.builtin_macros.get(&builtin_name) {
Expand Down
1 change: 0 additions & 1 deletion compiler/rustc_span/src/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1824,7 +1824,6 @@ symbols! {
rustc_lint_opt_ty,
rustc_lint_query_instability,
rustc_lint_untracked_query_information,
rustc_macro_edition_2021,
rustc_macro_transparency,
rustc_main,
rustc_mir,
Expand Down
8 changes: 5 additions & 3 deletions library/core/src/primitive_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1307,10 +1307,12 @@ mod prim_f16 {}
// FIXME: Is there a better place to put this?
///
/// | `target_arch` | Extra payloads possible on this platform |
/// |---------------|---------|
/// | `x86`, `x86_64`, `arm`, `aarch64`, `riscv32`, `riscv64` | None |
/// |---------------|------------------------------------------|
// Sorted alphabetically
/// | `aarch64`, `arm`, `arm64ec`, `loongarch64`, `powerpc` (except when `target_abi = "spe"`), `powerpc64`, `riscv32`, `riscv64`, `s390x`, `x86`, `x86_64` | None |
/// | `nvptx64` | All payloads |
/// | `sparc`, `sparc64` | The all-one payload |
/// | `wasm32`, `wasm64` | If all input NaNs are quiet with all-zero payload: None.<br> Otherwise: all possible payloads. |
/// | `wasm32`, `wasm64` | If all input NaNs are quiet with all-zero payload: None.<br> Otherwise: all payloads. |
///
/// For targets not in this table, all payloads are possible.
///
Expand Down
2 changes: 1 addition & 1 deletion src/ci/citool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ fn post_merge_report(db: JobDatabase, current: String, parent: String) -> anyhow

output_details("Test dashboard", || {
println!(
r#"\nRun
r#"Run

```bash
cargo run --manifest-path src/ci/citool/Cargo.toml -- \
Expand Down
3 changes: 2 additions & 1 deletion src/doc/rustc/src/platform-support/TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ One-sentence description of the target (e.g. CPU, OS)

## Target maintainers

- Some Person, https://github.com/...
[@Ghost](https://github.com/Ghost)
[@octocat](https://github.com/octocat)

## Requirements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

Nintendo Switch with pure-Rust toolchain.

## Designated Developers
## Target Maintainers

* [@leo60228](https://github.com/leo60228)
* [@jam1garner](https://github.com/jam1garner)
[@leo60228](https://github.com/leo60228)
[@jam1garner](https://github.com/jam1garner)

## Requirements

Expand Down
4 changes: 2 additions & 2 deletions src/doc/rustc/src/platform-support/aarch64-unknown-teeos.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ TEEOS is open source in progress. [MORE about](https://gitee.com/opentrustee-gro

## Target maintainers

- Petrochenkov Vadim
- Sword-Destiny
[@petrochenkov](https://github.com/petrochenkov)
[@Sword-Destiny](https://github.com/Sword-Destiny)

## Setup
We use OpenHarmony SDK for TEEOS.
Expand Down
4 changes: 2 additions & 2 deletions src/doc/rustc/src/platform-support/aix.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Rust for AIX operating system, currently only 64-bit PowerPC is supported.

## Target maintainers

- David Tenty `[email protected]`, https://github.com/daltenty
- Chris Cambly, `[email protected]`, https://github.com/gilamn5tr
[@daltenty](https://github.com/daltenty)
[@gilamn5tr](https://github.com/gilamn5tr)

## Requirements

Expand Down
2 changes: 1 addition & 1 deletion src/doc/rustc/src/platform-support/amdgcn-amd-amdhsa.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AMD GPU target for compute/HSA (Heterogeneous System Architecture).

## Target maintainers

- [@Flakebi](https://github.com/Flakebi)
[@Flakebi](https://github.com/Flakebi)

## Requirements

Expand Down
6 changes: 3 additions & 3 deletions src/doc/rustc/src/platform-support/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

## Target maintainers

- Chris Wailes ([@chriswailes](https://github.com/chriswailes))
- Matthew Maurer ([@maurer](https://github.com/maurer))
- Martin Geisler ([@mgeisler](https://github.com/mgeisler))
[@chriswailes](https://github.com/chriswailes)
[@maurer](https://github.com/maurer)
[@mgeisler](https://github.com/mgeisler)

## Requirements

Expand Down
4 changes: 2 additions & 2 deletions src/doc/rustc/src/platform-support/apple-darwin.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Apple macOS targets.

## Target maintainers

- [@thomcc](https://github.com/thomcc)
- [@madsmtm](https://github.com/madsmtm)
[@thomcc](https://github.com/thomcc)
[@madsmtm](https://github.com/madsmtm)

## Requirements

Expand Down
6 changes: 3 additions & 3 deletions src/doc/rustc/src/platform-support/apple-ios-macabi.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Apple Mac Catalyst targets.

## Target maintainers

- [@badboy](https://github.com/badboy)
- [@BlackHoleFox](https://github.com/BlackHoleFox)
- [@madsmtm](https://github.com/madsmtm)
[@badboy](https://github.com/badboy)
[@BlackHoleFox](https://github.com/BlackHoleFox)
[@madsmtm](https://github.com/madsmtm)

## Requirements

Expand Down
6 changes: 3 additions & 3 deletions src/doc/rustc/src/platform-support/apple-ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Apple iOS / iPadOS targets.

## Target maintainers

- [@badboy](https://github.com/badboy)
- [@deg4uss3r](https://github.com/deg4uss3r)
- [@madsmtm](https://github.com/madsmtm)
[@badboy](https://github.com/badboy)
[@deg4uss3r](https://github.com/deg4uss3r)
[@madsmtm](https://github.com/madsmtm)

## Requirements

Expand Down
4 changes: 2 additions & 2 deletions src/doc/rustc/src/platform-support/apple-tvos.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Apple tvOS targets.

## Target maintainers

- [@thomcc](https://github.com/thomcc)
- [@madsmtm](https://github.com/madsmtm)
[@thomcc](https://github.com/thomcc)
[@madsmtm](https://github.com/madsmtm)

## Requirements

Expand Down
4 changes: 2 additions & 2 deletions src/doc/rustc/src/platform-support/apple-visionos.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Apple visionOS / xrOS targets.

## Target maintainers

- [@agg23](https://github.com/agg23)
- [@madsmtm](https://github.com/madsmtm)
[@agg23](https://github.com/agg23)
[@madsmtm](https://github.com/madsmtm)

## Requirements

Expand Down
8 changes: 4 additions & 4 deletions src/doc/rustc/src/platform-support/apple-watchos.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ Apple watchOS targets.

## Target maintainers

- [@deg4uss3r](https://github.com/deg4uss3r)
- [@vladimir-ea](https://github.com/vladimir-ea)
- [@leohowell](https://github.com/leohowell)
- [@madsmtm](https://github.com/madsmtm)
[@deg4uss3r](https://github.com/deg4uss3r)
[@vladimir-ea](https://github.com/vladimir-ea)
[@leohowell](https://github.com/leohowell)
[@madsmtm](https://github.com/madsmtm)

## Requirements

Expand Down
2 changes: 1 addition & 1 deletion src/doc/rustc/src/platform-support/arm64e-apple-darwin.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARM64e macOS (11.0+, Big Sur+)

## Target maintainers

- Artyom Tetyukhin ([@arttet](https://github.com/arttet))
[@arttet](https://github.com/arttet)

## Requirements

Expand Down
2 changes: 1 addition & 1 deletion src/doc/rustc/src/platform-support/arm64e-apple-ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARM64e iOS (14.0+)

## Target maintainers

- Artyom Tetyukhin ([@arttet](https://github.com/arttet))
[@arttet](https://github.com/arttet)

## Requirements

Expand Down
2 changes: 1 addition & 1 deletion src/doc/rustc/src/platform-support/arm64e-apple-tvos.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARM64e tvOS (10.0+)

## Target maintainers

- Artyom Tetyukhin ([@arttet](https://github.com/arttet))
[@arttet](https://github.com/arttet)

## Requirements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ applications on AArch64 Windows 11. See <https://learn.microsoft.com/en-us/windo

## Target maintainers

- [@dpaoliello](https://github.com/dpaoliello)
[@dpaoliello](https://github.com/dpaoliello)

## Requirements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ BE8 architecture retains the same little-endian ordered code-stream used by conv
BE8 architecture is the default big-endian architecture for Arm since [Armv6](https://developer.arm.com/documentation/101754/0616/armlink-Reference/armlink-Command-line-Options/--be8?lang=en). It's predecessor, used for Armv4 and Armv5 devices was [BE32](https://developer.arm.com/documentation/dui0474/j/linker-command-line-options/--be32). On Armv6 architecture, endianness can be configured via [system registers](https://developer.arm.com/documentation/ddi0290/g/unaligned-and-mixed-endian-data-access-support/mixed-endian-access-support/interaction-between-the-bus-protocol-and-the-core-endianness). However, BE32 was withdrawn for [Armv7](https://developer.arm.com/documentation/ddi0406/cb/Appendixes/Deprecated-and-Obsolete-Features/Obsolete-features/Support-for-BE-32-endianness-model) onwards.

## Target Maintainers
* [@WorksButNotTested](https://github.com/WorksButNotTested)

[@WorksButNotTested](https://github.com/WorksButNotTested)

## Requirements
The target is cross-compiled. This target supports `std` in the normal way (indeed only nominal changes are required from the standard Arm configuration).
Expand Down
4 changes: 2 additions & 2 deletions src/doc/rustc/src/platform-support/armv4t-none-eabi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ overall performance.

## Target Maintainers

* [@Lokathor](https://github.com/lokathor)
* [@corwinkuiper](https://github.com/corwinkuiper)
[@Lokathor](https://github.com/lokathor)
[@corwinkuiper](https://github.com/corwinkuiper)

## Testing

Expand Down
2 changes: 1 addition & 1 deletion src/doc/rustc/src/platform-support/armv5te-none-eabi.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ See [`arm-none-eabi`](arm-none-eabi.md) for information applicable to all

## Target Maintainers

* [@QuinnPainter](https://github.com/QuinnPainter)
[@QuinnPainter](https://github.com/QuinnPainter)

## Testing

Expand Down
6 changes: 3 additions & 3 deletions src/doc/rustc/src/platform-support/armv6k-nintendo-3ds.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ from nor used with any official Nintendo SDK.
This target is maintained by members of the [@rust3ds](https://github.com/rust3ds)
organization:

- [@Meziu](https://github.com/Meziu)
- [@AzureMarker](https://github.com/AzureMarker)
- [@ian-h-chamberlain](https://github.com/ian-h-chamberlain)
[@Meziu](https://github.com/Meziu)
[@AzureMarker](https://github.com/AzureMarker)
[@ian-h-chamberlain](https://github.com/ian-h-chamberlain)

## Requirements

Expand Down
6 changes: 3 additions & 3 deletions src/doc/rustc/src/platform-support/armv7-rtems-eabihf.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ ARM targets for the [RTEMS realtime operating system](https://www.rtems.org) us

## Target maintainers

- [@thesummer](https://github.com/thesummer)
[@thesummer](https://github.com/thesummer)

## Requirements

The target does not support host tools. Only cross-compilation is possible.
The cross-compiler toolchain can be obtained by following the installation instructions
of the [RTEMS Documentation](https://docs.rtems.org/branches/master/user/index.html). Additionally to the cross-compiler also a compiled BSP
of the [RTEMS Documentation](https://docs.rtems.org/docs/main/user/index.html). Additionally to the cross-compiler also a compiled BSP
for a board fitting the architecture needs to be available on the host.
Currently tested has been the BSP `xilinx_zynq_a9_qemu` of RTEMS 6.

Expand Down Expand Up @@ -49,4 +49,4 @@ While basic execution of the unit test harness seems to work. However, running t
## Cross-compilation toolchains and C code

Compatible C-code can be built with the RTEMS cross-compiler toolchain `arm-rtems6-gcc`.
For more information how to build the toolchain, RTEMS itself and RTEMS applications please have a look at the [RTEMS Documentation](https://docs.rtems.org/branches/master/user/index.html).
For more information how to build the toolchain, RTEMS itself and RTEMS applications please have a look at the [RTEMS Documentation](https://docs.rtems.org/docs/main/user/index.html).
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ from nor used with any official Sony SDK.

## Target maintainers

* [@nikarh](https://github.com/nikarh)
* [@pheki](https://github.com/pheki)
* [@ZetaNumbers](https://github.com/ZetaNumbers)
[@nikarh](https://github.com/nikarh)
[@pheki](https://github.com/pheki)
[@zetanumbers](https://github.com/zetanumbers)

## Requirements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This target supports Armv7-A softfloat CPUs and uses the uclibc-ng standard libr

## Target maintainers

* [@lancethepants](https://github.com/lancethepants)
[@lancethepants](https://github.com/lancethepants)

## Requirements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

This tier supports the Armv7-A processor running a Linux kernel and uClibc-ng standard library. It provides full support for rust and the rust standard library.

## Designated Developers
## Target Maintainers

* [@skrap](https://github.com/skrap)
[@skrap](https://github.com/skrap)

## Requirements

Expand Down
Loading