about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-07-04 06:08:07 +0200
committerGitHub <noreply@github.com>2022-07-04 06:08:07 +0200
commit7352c7b6cda42e7aaf8f13060ee12bd0cd15c99a (patch)
tree50e86f666ff7f347339abdd6328296e889b61000 /compiler/rustc_codegen_llvm/src
parentd46c728bcda687b1cf5f3bedca3d501e797b2a0f (diff)
parent4731d4b6d321e15f64e794ca4d95144bc29ca751 (diff)
downloadrust-7352c7b6cda42e7aaf8f13060ee12bd0cd15c99a.tar.gz
rust-7352c7b6cda42e7aaf8f13060ee12bd0cd15c99a.zip
Rollup merge of #98501 - Enselic:err_if_attr_found, r=compiler-errors
rustc_passes/src/entry.rs: De-duplicate more code with `fn throw_attr_err()`

So we can more easily re-use the code for other attributes later. More specifically [`#[unix_sigpipe]`](https://github.com/rust-lang/rust/pull/97802). This refactoring is covered by this test:
https://github.com/rust-lang/rust/blob/8aab472d52ba7314dc193c73abcd384e2586123c/src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs#L120
(Well, only `#[start]`, but the code for `#[rustc_main]` is identical.)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions