about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-25 21:33:43 +0200
committerGitHub <noreply@github.com>2024-06-25 21:33:43 +0200
commit3795c56bd1ba32f99ccefb89f8b6111f89f5e87d (patch)
tree7d11c73cb8254610116ac5d163d15d261ea4fd7f /compiler/rustc_errors/src/snippet.rs
parent6077c0ed9dab8925d9b19ff4c1d06cf263ffea88 (diff)
parent050595a82619515614674b6e5dfe16a123dab9c2 (diff)
downloadrust-3795c56bd1ba32f99ccefb89f8b6111f89f5e87d.tar.gz
rust-3795c56bd1ba32f99ccefb89f8b6111f89f5e87d.zip
Rollup merge of #126927 - workingjubilee:vaargsafe-is-unsafe, r=joboet
core: VaArgSafe is an unsafe trait

`T: VaArgSafe` is relied on for soundness. Safe impls promise nothing. Therefore this must be an unsafe trait. Slightly pedantic, as only core can impl this, but we *could* choose to unseal the trait. That would allow soundly (but unsafely) implementing this for e.g. a `#[repr(C)] struct` that should be passable by varargs.

Relates to https://github.com/rust-lang/rust/issues/44930
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions