@@ -687,12 +687,13 @@ rustc_queries! {
687687 desc { |tcx| "processing `{}`" , tcx. def_path_str( key. to_def_id( ) ) }
688688 }
689689
690- /// The signature of functions .
690+ /// Computes the signature of the function .
691691 query fn_sig( key: DefId ) -> ty:: PolyFnSig <' tcx> {
692692 desc { |tcx| "computing function signature of `{}`" , tcx. def_path_str( key) }
693693 separate_provide_extern
694694 }
695695
696+ /// Performs lint checking for the module.
696697 query lint_mod( key: LocalDefId ) -> ( ) {
697698 desc { |tcx| "linting {}" , describe_as_module( key, tcx) }
698699 }
@@ -702,6 +703,7 @@ rustc_queries! {
702703 desc { |tcx| "checking attributes in {}" , describe_as_module( key, tcx) }
703704 }
704705
706+ /// Checks for uses of unstable APIs in the module.
705707 query check_mod_unstable_api_usage( key: LocalDefId ) -> ( ) {
706708 desc { |tcx| "checking for unstable API usage in {}" , describe_as_module( key, tcx) }
707709 }
@@ -928,6 +930,7 @@ rustc_queries! {
928930 desc { |tcx| "computing drop scopes for `{}`" , tcx. def_path_str( def_id) }
929931 }
930932
933+ /// Generates a MIR body for the shim.
931934 query mir_shims( key: ty:: InstanceDef <' tcx>) -> mir:: Body <' tcx> {
932935 storage( ArenaCacheSelector <' tcx>)
933936 desc { |tcx| "generating MIR shim for `{}`" , tcx. def_path_str( key. def_id( ) ) }
@@ -946,11 +949,13 @@ rustc_queries! {
946949 separate_provide_extern
947950 }
948951
952+ /// Gets the span for the definition.
949953 query def_span( def_id: DefId ) -> Span {
950954 desc { |tcx| "looking up span for `{}`" , tcx. def_path_str( def_id) }
951955 separate_provide_extern
952956 }
953957
958+ /// Gets the span for the identifier of the definition.
954959 query def_ident_span( def_id: DefId ) -> Option <Span > {
955960 desc { |tcx| "looking up span for `{}`'s identifier" , tcx. def_path_str( def_id) }
956961 separate_provide_extern
@@ -1466,6 +1471,8 @@ rustc_queries! {
14661471 desc { "fetching what a dependency looks like" }
14671472 separate_provide_extern
14681473 }
1474+
1475+ /// Gets the name of the crate.
14691476 query crate_name( _: CrateNum ) -> Symbol {
14701477 eval_always
14711478 desc { "fetching what a crate is named" }
0 commit comments