File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,27 @@ pub fn compile_ws<'a>(
245
245
ref export_dir,
246
246
} = * options;
247
247
248
+ match build_config. mode {
249
+ CompileMode :: Test
250
+ | CompileMode :: Build
251
+ | CompileMode :: Check { .. }
252
+ | CompileMode :: Bench
253
+ | CompileMode :: RunCustomBuild => {
254
+ if std:: env:: var ( "RUST_FLAGS" ) . is_ok ( ) {
255
+ config. shell ( ) . warn (
256
+ "Cargo does not read `RUST_FLAGS` environment variable. Did you mean `RUSTFLAGS`?" ,
257
+ ) ?;
258
+ }
259
+ }
260
+ CompileMode :: Doc { .. } | CompileMode :: Doctest => {
261
+ if std:: env:: var ( "RUSTDOC_FLAGS" ) . is_ok ( ) {
262
+ config. shell ( ) . warn (
263
+ "Cargo does not read `RUSTDOC_FLAGS` environment variable. Did you mean `RUSTDOCFLAGS`?"
264
+ ) ?;
265
+ }
266
+ }
267
+ }
268
+
248
269
let default_arch_kind = if build_config. requested_target . is_some ( ) {
249
270
Kind :: Target
250
271
} else {
You can’t perform that action at this time.
0 commit comments