File tree 3 files changed +9
-0
lines changed
3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1000,6 +1000,7 @@ impl Build {
1000
1000
}
1001
1001
1002
1002
#[ must_use = "Groups should not be dropped until the Step finishes running" ]
1003
+ #[ track_caller]
1003
1004
fn msg_check (
1004
1005
& self ,
1005
1006
what : impl Display ,
@@ -1009,6 +1010,7 @@ impl Build {
1009
1010
}
1010
1011
1011
1012
#[ must_use = "Groups should not be dropped until the Step finishes running" ]
1013
+ #[ track_caller]
1012
1014
fn msg_doc (
1013
1015
& self ,
1014
1016
compiler : Compiler ,
@@ -1019,6 +1021,7 @@ impl Build {
1019
1021
}
1020
1022
1021
1023
#[ must_use = "Groups should not be dropped until the Step finishes running" ]
1024
+ #[ track_caller]
1022
1025
fn msg_build (
1023
1026
& self ,
1024
1027
compiler : Compiler ,
@@ -1032,6 +1035,7 @@ impl Build {
1032
1035
///
1033
1036
/// [`Step`]: crate::builder::Step
1034
1037
#[ must_use = "Groups should not be dropped until the Step finishes running" ]
1038
+ #[ track_caller]
1035
1039
fn msg (
1036
1040
& self ,
1037
1041
action : impl Into < Kind > ,
@@ -1059,6 +1063,7 @@ impl Build {
1059
1063
///
1060
1064
/// [`Step`]: crate::builder::Step
1061
1065
#[ must_use = "Groups should not be dropped until the Step finishes running" ]
1066
+ #[ track_caller]
1062
1067
fn msg_unstaged (
1063
1068
& self ,
1064
1069
action : impl Into < Kind > ,
@@ -1071,6 +1076,7 @@ impl Build {
1071
1076
}
1072
1077
1073
1078
#[ must_use = "Groups should not be dropped until the Step finishes running" ]
1079
+ #[ track_caller]
1074
1080
fn msg_sysroot_tool (
1075
1081
& self ,
1076
1082
action : impl Into < Kind > ,
@@ -1089,6 +1095,7 @@ impl Build {
1089
1095
self . group ( & msg)
1090
1096
}
1091
1097
1098
+ #[ track_caller]
1092
1099
fn group ( & self , msg : & str ) -> Option < gha:: Group > {
1093
1100
match self . config . dry_run {
1094
1101
DryRun :: SelfCheck => None ,
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ struct ToolBuild {
34
34
}
35
35
36
36
impl Builder < ' _ > {
37
+ #[ track_caller]
37
38
fn msg_tool (
38
39
& self ,
39
40
mode : Mode ,
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ pub mod gha {
43
43
/// All github actions log messages from this call to the Drop of the return value
44
44
/// will be grouped and hidden by default in logs. Note that nesting these does
45
45
/// not really work.
46
+ #[ track_caller]
46
47
pub fn group ( name : impl std:: fmt:: Display ) -> Group {
47
48
if std:: env:: var_os ( "GITHUB_ACTIONS" ) . is_some ( ) {
48
49
eprintln ! ( "::group::{name}" ) ;
You can’t perform that action at this time.
0 commit comments