rust/compiler/rustc_passes/src
bors 4354192429 Auto merge of #114201 - Centri3:explicit-repr-rust, r=WaffleLapkin
Allow explicit `#[repr(Rust)]`

This is identical to no `repr()` at all. For `Rust, packed` and `Rust, align(x)`, it should be the same as no `Rust` at all (as, afaik, `#[repr(align(16))]` uses the Rust ABI.)

The main use case for this is being able to explicitly say "I want to use the Rust ABI" in very very rare circumstances where the first obvious choice would be the C ABI yet is undesirable, which is already possible with functions as `extern "Rust"`. This would be useful for silencing https://github.com/rust-lang/rust-clippy/pull/11253. It's also more consistent with `extern`.

The lack of this also tripped me up a bit when I was new to Rust, as I expected this to be possible.
2023-08-25 00:02:54 +00:00
..
liveness Match unmatched backticks in compiler/ that are part of rustdoc 2023-03-03 08:39:00 +01:00
check_attr.rs Auto merge of #114201 - Centri3:explicit-repr-rust, r=WaffleLapkin 2023-08-25 00:02:54 +00:00
check_const.rs Rollup merge of #114819 - estebank:issue-78124, r=compiler-errors 2023-08-15 20:34:25 +02:00
dead.rs Use {Local}ModDefId in many queries 2023-08-14 07:22:48 +00:00
debugger_visualizer.rs Don't sort output of debugger_visualizer query because it already is in deterministic order. 2023-05-17 16:02:22 +02:00
diagnostic_items.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
entry.rs Remove reached_eof from ParseSess 2023-08-13 13:33:37 +00:00
errors.rs check_attrs: Warn when #[macro_export] is used on macros 2.0 2023-08-07 21:14:28 +02:00
hir_id_validator.rs inline format!() args from rustc_codegen_llvm to the end (4) 2023-07-25 23:20:28 +02:00
hir_stats.rs Parse unnamed fields and anonymous structs or unions 2023-08-24 11:17:54 +08:00
lang_items.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
layout_test.rs remove redundant var rebindings 2023-08-19 14:09:30 +02:00
lib.rs Turn debugger_visualizers from feed- into regular query. 2023-05-16 18:50:36 +02:00
lib_features.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
liveness.rs remove redundant var rebindings 2023-08-19 14:09:30 +02:00
loops.rs Use {Local}ModDefId in many queries 2023-08-14 07:22:48 +00:00
naked_functions.rs Use {Local}ModDefId in many queries 2023-08-14 07:22:48 +00:00
reachable.rs Contents of reachable statics is reachable 2023-08-22 00:00:00 +00:00
stability.rs Rollup merge of #114772 - fee1-dead-contrib:typed-did, r=b-naber 2023-08-15 14:29:45 +02:00
upvars.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
weak_lang_items.rs rustc: Move crate_types from Session to GlobalCtxt 2023-08-09 14:17:54 +08:00