1
Fork 0
rust/compiler/rustc_passes/src
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
..
liveness Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
check_attr.rs avoid many &str to String conversions with MultiSpan::push_span_label 2022-06-29 21:16:43 +09:00
check_const.rs Remove #[default..] and add #[const_trait] 2022-05-30 08:52:24 +00:00
dead.rs Rewrite dead-code pass to avoid fetching HIR. 2022-06-22 20:48:18 +02:00
debugger_visualizer.rs Respond to PR comments. 2022-05-25 10:44:56 -07:00
diagnostic_items.rs remove DiagnosticItemCollector 2022-05-13 11:46:05 -04:00
entry.rs rustc_passes: De-duplicate more code with fn throw_attr_err() 2022-06-25 21:43:33 +02:00
hir_id_validator.rs remove unnecessary methods from HirIdValidator 2022-05-13 11:46:06 -04:00
hir_stats.rs Remove unused hir_id arg from visit_attribute. 2022-06-16 09:52:04 +10:00
lang_items.rs use def_span and def_kind queries instead of calling tcx.hir() methods 2022-05-06 12:11:05 -04:00
layout_test.rs remove LayoutTest 2022-05-13 11:46:05 -04:00
lib.rs Fully stabilize NLL 2022-06-03 17:16:41 -04:00
lib_features.rs Remove unused hir_id arg from visit_attribute. 2022-06-16 09:52:04 +10:00
liveness.rs Make ExprKind::Closure a struct variant. 2022-06-12 00:16:27 +02:00
loops.rs Rollup merge of #98110 - cjgillot:closure-brace, r=Aaron1011 2022-06-15 19:37:14 +09:00
naked_functions.rs Rollup merge of #98110 - cjgillot:closure-brace, r=Aaron1011 2022-06-15 19:37:14 +09:00
reachable.rs Remove a possible unnecessary assignment 2022-06-18 01:51:38 +09:00
stability.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
upvars.rs Make ExprKind::Closure a struct variant. 2022-06-12 00:16:27 +02:00
weak_lang_items.rs rustc_target: Remove some redundant target properties 2022-06-18 01:09:20 +03:00