@@ -687,12 +687,13 @@ rustc_queries! {
687
687
desc { |tcx| "processing `{}`" , tcx. def_path_str( key. to_def_id( ) ) }
688
688
}
689
689
690
- /// The signature of functions .
690
+ /// Computes the signature of the function .
691
691
query fn_sig( key: DefId ) -> ty:: PolyFnSig <' tcx> {
692
692
desc { |tcx| "computing function signature of `{}`" , tcx. def_path_str( key) }
693
693
separate_provide_extern
694
694
}
695
695
696
+ /// Performs lint checking for the module.
696
697
query lint_mod( key: LocalDefId ) -> ( ) {
697
698
desc { |tcx| "linting {}" , describe_as_module( key, tcx) }
698
699
}
@@ -702,6 +703,7 @@ rustc_queries! {
702
703
desc { |tcx| "checking attributes in {}" , describe_as_module( key, tcx) }
703
704
}
704
705
706
+ /// Checks for uses of unstable APIs in the module.
705
707
query check_mod_unstable_api_usage( key: LocalDefId ) -> ( ) {
706
708
desc { |tcx| "checking for unstable API usage in {}" , describe_as_module( key, tcx) }
707
709
}
@@ -928,6 +930,7 @@ rustc_queries! {
928
930
desc { |tcx| "computing drop scopes for `{}`" , tcx. def_path_str( def_id) }
929
931
}
930
932
933
+ /// Generates a MIR body for the shim.
931
934
query mir_shims( key: ty:: InstanceDef <' tcx>) -> mir:: Body <' tcx> {
932
935
storage( ArenaCacheSelector <' tcx>)
933
936
desc { |tcx| "generating MIR shim for `{}`" , tcx. def_path_str( key. def_id( ) ) }
@@ -946,11 +949,13 @@ rustc_queries! {
946
949
separate_provide_extern
947
950
}
948
951
952
+ /// Gets the span for the definition.
949
953
query def_span( def_id: DefId ) -> Span {
950
954
desc { |tcx| "looking up span for `{}`" , tcx. def_path_str( def_id) }
951
955
separate_provide_extern
952
956
}
953
957
958
+ /// Gets the span for the identifier of the definition.
954
959
query def_ident_span( def_id: DefId ) -> Option <Span > {
955
960
desc { |tcx| "looking up span for `{}`'s identifier" , tcx. def_path_str( def_id) }
956
961
separate_provide_extern
@@ -1466,6 +1471,8 @@ rustc_queries! {
1466
1471
desc { "fetching what a dependency looks like" }
1467
1472
separate_provide_extern
1468
1473
}
1474
+
1475
+ /// Gets the name of the crate.
1469
1476
query crate_name( _: CrateNum ) -> Symbol {
1470
1477
eval_always
1471
1478
desc { "fetching what a crate is named" }
0 commit comments