@@ -109,7 +109,7 @@ pub use plumbing::{IntoQueryParam, TyCtxtAt, TyCtxtEnsure, TyCtxtEnsureWithValue
109
109
// as they will raise an fatal error on query cycles instead.
110
110
rustc_queries! {
111
111
/// This exists purely for testing the interactions between span_delayed_bug and incremental.
112
- query trigger_span_delayed_bug(key: DefId) -> () {
112
+ query trigger_span_delayed_bug(key: DefId) {
113
113
desc { "triggering a span delayed bug for testing incremental" }
114
114
}
115
115
@@ -119,7 +119,7 @@ rustc_queries! {
119
119
desc { "compute registered tools for crate" }
120
120
}
121
121
122
- query early_lint_checks(_: ()) -> () {
122
+ query early_lint_checks(_: ()) {
123
123
desc { "perform lints prior to macro expansion" }
124
124
}
125
125
@@ -299,7 +299,7 @@ rustc_queries! {
299
299
/// name. This is useful for cases were not all linting code from rustc
300
300
/// was called. With the default `None` all registered lints will also
301
301
/// be checked for expectation fulfillment.
302
- query check_expectations(key: Option<Symbol>) -> () {
302
+ query check_expectations(key: Option<Symbol>) {
303
303
eval_always
304
304
desc { "checking lint expectations (RFC 2383)" }
305
305
}
@@ -906,39 +906,39 @@ rustc_queries! {
906
906
}
907
907
908
908
/// Performs lint checking for the module.
909
- query lint_mod(key: LocalModDefId) -> () {
909
+ query lint_mod(key: LocalModDefId) {
910
910
desc { |tcx| "linting {}", describe_as_module(key, tcx) }
911
911
}
912
912
913
- query check_unused_traits(_: ()) -> () {
913
+ query check_unused_traits(_: ()) {
914
914
desc { "checking unused trait imports in crate" }
915
915
}
916
916
917
917
/// Checks the attributes in the module.
918
- query check_mod_attrs(key: LocalModDefId) -> () {
918
+ query check_mod_attrs(key: LocalModDefId) {
919
919
desc { |tcx| "checking attributes in {}", describe_as_module(key, tcx) }
920
920
}
921
921
922
922
/// Checks for uses of unstable APIs in the module.
923
- query check_mod_unstable_api_usage(key: LocalModDefId) -> () {
923
+ query check_mod_unstable_api_usage(key: LocalModDefId) {
924
924
desc { |tcx| "checking for unstable API usage in {}", describe_as_module(key, tcx) }
925
925
}
926
926
927
927
/// Checks the const bodies in the module for illegal operations (e.g. `if` or `loop`).
928
- query check_mod_const_bodies(key: LocalModDefId) -> () {
928
+ query check_mod_const_bodies(key: LocalModDefId) {
929
929
desc { |tcx| "checking consts in {}", describe_as_module(key, tcx) }
930
930
}
931
931
932
932
/// Checks the loops in the module.
933
- query check_mod_loops(key: LocalModDefId) -> () {
933
+ query check_mod_loops(key: LocalModDefId) {
934
934
desc { |tcx| "checking loops in {}", describe_as_module(key, tcx) }
935
935
}
936
936
937
- query check_mod_naked_functions(key: LocalModDefId) -> () {
937
+ query check_mod_naked_functions(key: LocalModDefId) {
938
938
desc { |tcx| "checking naked functions in {}", describe_as_module(key, tcx) }
939
939
}
940
940
941
- query check_mod_privacy(key: LocalModDefId) -> () {
941
+ query check_mod_privacy(key: LocalModDefId) {
942
942
desc { |tcx| "checking privacy in {}", describe_as_module(key.to_local_def_id(), tcx) }
943
943
}
944
944
@@ -958,7 +958,7 @@ rustc_queries! {
958
958
desc { "finding live symbols in crate" }
959
959
}
960
960
961
- query check_mod_deathness(key: LocalModDefId) -> () {
961
+ query check_mod_deathness(key: LocalModDefId) {
962
962
desc { |tcx| "checking deathness of variables in {}", describe_as_module(key, tcx) }
963
963
}
964
964
@@ -972,7 +972,7 @@ rustc_queries! {
972
972
ensure_forwards_result_if_red
973
973
}
974
974
975
- query collect_mod_item_types(key: LocalModDefId) -> () {
975
+ query collect_mod_item_types(key: LocalModDefId) {
976
976
desc { |tcx| "collecting item types in {}", describe_as_module(key, tcx) }
977
977
}
978
978
@@ -1121,7 +1121,7 @@ rustc_queries! {
1121
1121
eval_always
1122
1122
desc { "checking effective visibilities" }
1123
1123
}
1124
- query check_private_in_public(_: ()) -> () {
1124
+ query check_private_in_public(_: ()) {
1125
1125
eval_always
1126
1126
desc { "checking for private elements in public interfaces" }
1127
1127
}
0 commit comments