@@ -4147,43 +4147,40 @@ fn build_filter_infer_profile() {
4147
4147
4148
4148
p. cargo ( "build -v" )
4149
4149
. with_stderr_contains (
4150
- "\
4151
- [RUNNING] `rustc --crate-name foo src/lib.rs --color never --crate-type lib \
4150
+ "[RUNNING] `rustc --crate-name foo src/lib.rs --color never --crate-type lib \
4152
4151
--emit=dep-info,link[..]",
4153
4152
) . with_stderr_contains (
4154
- "\
4155
- [RUNNING] `rustc --crate-name foo src/main.rs --color never --crate-type bin \
4153
+ "[RUNNING] `rustc --crate-name foo src/main.rs --color never --crate-type bin \
4156
4154
--emit=dep-info,link[..]",
4157
4155
) . run ( ) ;
4158
4156
4159
4157
p. root ( ) . join ( "target" ) . rm_rf ( ) ;
4160
4158
p. cargo ( "build -v --test=t1" )
4161
4159
. with_stderr_contains (
4162
- "\
4163
- [RUNNING] `rustc --crate-name foo src/lib.rs --color never --crate-type lib \
4164
- --emit=dep-info,link[..]",
4160
+ "[RUNNING] `rustc --crate-name foo src/lib.rs --color never --crate-type lib \
4161
+ --emit=dep-info,link -C debuginfo=2 [..]",
4165
4162
) . with_stderr_contains (
4166
- "[RUNNING] `rustc --crate-name t1 tests/t1.rs --color never --emit=dep-info,link[..]" ,
4163
+ "[RUNNING] `rustc --crate-name t1 tests/t1.rs --color never --emit=dep-info,link \
4164
+ -C debuginfo=2 [..]",
4167
4165
) . with_stderr_contains (
4168
- "\
4169
- [RUNNING] `rustc --crate-name foo src/main.rs --color never --crate-type bin \
4170
- --emit=dep-info,link[..]",
4166
+ "[RUNNING] `rustc --crate-name foo src/main.rs --color never --crate-type bin \
4167
+ --emit=dep-info,link -C debuginfo=2 [..]",
4171
4168
) . run ( ) ;
4172
4169
4173
4170
p. root ( ) . join ( "target" ) . rm_rf ( ) ;
4171
+ // Bench uses test profile without `--release`.
4174
4172
p. cargo ( "build -v --bench=b1" )
4175
4173
. with_stderr_contains (
4176
- "\
4177
- [RUNNING] `rustc --crate-name foo src/lib.rs --color never --crate-type lib \
4178
- --emit=dep-info,link[..]",
4174
+ "[RUNNING] `rustc --crate-name foo src/lib.rs --color never --crate-type lib \
4175
+ --emit=dep-info,link -C debuginfo=2 [..]",
4179
4176
) . with_stderr_contains (
4180
- "\
4181
- [RUNNING] `rustc --crate-name b1 benches/b1.rs --color never --emit=dep-info,link \
4182
- -C opt-level=3[..]" ,
4183
- ) . with_stderr_contains (
4184
- " \
4185
- [RUNNING] `rustc --crate-name foo src/main.rs --color never --crate-type bin \
4186
- --emit=dep-info,link[..]",
4177
+ "[RUNNING] `rustc --crate-name b1 benches/b1.rs --color never --emit=dep-info,link \
4178
+ -C debuginfo=2 [..]" ,
4179
+ )
4180
+ . with_stderr_does_not_contain ( "opt-level" )
4181
+ . with_stderr_contains (
4182
+ " [RUNNING] `rustc --crate-name foo src/main.rs --color never --crate-type bin \
4183
+ --emit=dep-info,link -C debuginfo=2 [..]",
4187
4184
) . run ( ) ;
4188
4185
}
4189
4186
@@ -4213,10 +4210,6 @@ fn targets_selected_all() {
4213
4210
. with_stderr_contains ( "\
4214
4211
[RUNNING] `rustc --crate-name foo src/main.rs --color never --crate-type bin \
4215
4212
--emit=dep-info,link[..]")
4216
- // bench
4217
- . with_stderr_contains ( "\
4218
- [RUNNING] `rustc --crate-name foo src/main.rs --color never --emit=dep-info,link \
4219
- -C opt-level=3 --test [..]")
4220
4213
// unit test
4221
4214
. with_stderr_contains ( "\
4222
4215
[RUNNING] `rustc --crate-name foo src/main.rs --color never --emit=dep-info,link \
@@ -4231,10 +4224,6 @@ fn all_targets_no_lib() {
4231
4224
. with_stderr_contains ( "\
4232
4225
[RUNNING] `rustc --crate-name foo src/main.rs --color never --crate-type bin \
4233
4226
--emit=dep-info,link[..]")
4234
- // bench
4235
- . with_stderr_contains ( "\
4236
- [RUNNING] `rustc --crate-name foo src/main.rs --color never --emit=dep-info,link \
4237
- -C opt-level=3 --test [..]")
4238
4227
// unit test
4239
4228
. with_stderr_contains ( "\
4240
4229
[RUNNING] `rustc --crate-name foo src/main.rs --color never --emit=dep-info,link \
0 commit comments