[RFC] Explicit ABI in `extern` by m-ou-se · Pull Request #3722 · rust-lang/rfcs

@m-ou-se

@m-ou-se

@m-ou-se m-ou-se added T-lang

Relevant to the language team, which will review and decide on the RFC.

A-defaults

Proposals relating to defaults / provided definitions

I-lang-nominated

Indicates that an issue has been nominated for prioritizing at the next lang team meeting.

A-edition-2024

Area: The 2024 edition

A-maybe-future-edition

Changes of edition-relevance not targeted for a specific edition.

T-edition

Relevant to the edition team, which will review and decide on this RFC.

labels

Oct 30, 2024

@tmandry tmandry removed the T-edition

Relevant to the edition team, which will review and decide on this RFC.

label

Oct 30, 2024

@tmandry tmandry added the T-edition

Relevant to the edition team, which will review and decide on this RFC.

label

Oct 30, 2024

est31

traviscross

@rustbot rustbot removed the I-lang-nominated

Indicates that an issue has been nominated for prioritizing at the next lang team meeting.

label

Oct 30, 2024

@m-ou-se

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Oct 31, 2024
…rrors

Improve missing_abi lint

This is for the migration lint for rust-lang/rfcs#3722

It is not yet marked as an edition migration lint, because `Edition2027` doesn't exist yet.

The lint now includes a machine applicable suggestion:

```
warning: extern declarations without an explicit ABI are deprecated
 --> src/main.rs:3:1
  |
3 | extern fn a() {}
  | ^^^^^^ help: explicitly specify the C ABI: `extern "C"`
  |
```

workingjubilee added a commit to workingjubilee/rustc that referenced this pull request

Nov 1, 2024
…rrors

Improve missing_abi lint

This is for the migration lint for rust-lang/rfcs#3722

It is not yet marked as an edition migration lint, because `Edition2027` doesn't exist yet.

The lint now includes a machine applicable suggestion:

```
warning: extern declarations without an explicit ABI are deprecated
 --> src/main.rs:3:1
  |
3 | extern fn a() {}
  | ^^^^^^ help: explicitly specify the C ABI: `extern "C"`
  |
```

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Nov 1, 2024
Rollup merge of rust-lang#132357 - m-ou-se:explicit-abi, r=compiler-errors

Improve missing_abi lint

This is for the migration lint for rust-lang/rfcs#3722

It is not yet marked as an edition migration lint, because `Edition2027` doesn't exist yet.

The lint now includes a machine applicable suggestion:

```
warning: extern declarations without an explicit ABI are deprecated
 --> src/main.rs:3:1
  |
3 | extern fn a() {}
  | ^^^^^^ help: explicitly specify the C ABI: `extern "C"`
  |
```

madsmtm

@traviscross

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jan 8, 2025
Make missing_abi lint warn-by-default.

This makes the missing_abi lint warn-by-default, as suggested here: rust-lang/rfcs#3722 (comment)

This needs a lang FCP.

@obeis obeis mentioned this pull request

Jan 10, 2025

jhpratt added a commit to jhpratt/rust that referenced this pull request

Jan 15, 2025
Make missing_abi lint warn-by-default.

This makes the missing_abi lint warn-by-default, as suggested here: rust-lang/rfcs#3722 (comment)

This needs a lang FCP.

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Jan 15, 2025
Rollup merge of rust-lang#132397 - m-ou-se:warn-missing-abi, r=Nadrieril

Make missing_abi lint warn-by-default.

This makes the missing_abi lint warn-by-default, as suggested here: rust-lang/rfcs#3722 (comment)

This needs a lang FCP.

flip1995 pushed a commit to flip1995/rust-clippy that referenced this pull request

Jan 26, 2025
Make missing_abi lint warn-by-default.

This makes the missing_abi lint warn-by-default, as suggested here: rust-lang/rfcs#3722 (comment)

This needs a lang FCP.

antoyo pushed a commit to rust-lang/rustc_codegen_gcc that referenced this pull request

Jan 30, 2025
Make missing_abi lint warn-by-default.

This makes the missing_abi lint warn-by-default, as suggested here: rust-lang/rfcs#3722 (comment)

This needs a lang FCP.

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Apr 16, 2025
…iscross,nadrieril

Add `explicit_extern_abis` Feature and Enforce Explicit ABIs

The unstable `explicit_extern_abis` feature is introduced, requiring explicit ABIs in `extern` blocks. Hard errors will be enforced with this feature enabled in a future edition.

RFC rust-lang/rfcs#3722

Update rust-lang#134986

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Apr 17, 2025
Rollup merge of rust-lang#135340 - obeis:explicit-extern-abis, r=traviscross,nadrieril

Add `explicit_extern_abis` Feature and Enforce Explicit ABIs

The unstable `explicit_extern_abis` feature is introduced, requiring explicit ABIs in `extern` blocks. Hard errors will be enforced with this feature enabled in a future edition.

RFC rust-lang/rfcs#3722

Update rust-lang#134986

github-actions bot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request

Apr 19, 2025
…adrieril

Add `explicit_extern_abis` Feature and Enforce Explicit ABIs

The unstable `explicit_extern_abis` feature is introduced, requiring explicit ABIs in `extern` blocks. Hard errors will be enforced with this feature enabled in a future edition.

RFC rust-lang/rfcs#3722

Update #134986