rust/compiler/rustc_passes
Matthias Krüger 7352c7b6cd
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:
8aab472d52/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.)
2022-07-04 06:08:07 +02:00
..
src Rollup merge of #98501 - Enselic:err_if_attr_found, r=compiler-errors 2022-07-04 06:08:07 +02:00
Cargo.toml collapse dead code warnings into a single diagnostic 2022-06-19 18:32:56 +09:00