@@ -286,8 +286,7 @@ impl<'a> Builder<'a> {
286
286
doc:: Reference , doc:: Rustdoc , doc:: RustByExample , doc:: CargoBook ) ,
287
287
Kind :: Dist => describe ! ( dist:: Docs , dist:: Mingw , dist:: Rustc , dist:: DebuggerScripts ,
288
288
dist:: Std , dist:: Analysis , dist:: Src , dist:: PlainSourceTarball , dist:: Cargo ,
289
- dist:: Rls , dist:: Rustfmt , dist:: Extended , dist:: HashSign ,
290
- dist:: DontDistWithMiriEnabled ) ,
289
+ dist:: Rls , dist:: Rustfmt , dist:: Extended , dist:: HashSign ) ,
291
290
Kind :: Install => describe ! ( install:: Docs , install:: Std , install:: Cargo , install:: Rls ,
292
291
install:: Rustfmt , install:: Analysis , install:: Src , install:: Rustc ) ,
293
292
}
@@ -344,6 +343,12 @@ impl<'a> Builder<'a> {
344
343
stack : RefCell :: new ( Vec :: new ( ) ) ,
345
344
} ;
346
345
346
+ if kind == Kind :: Dist {
347
+ assert ! ( !build. config. test_miri, "Do not distribute with miri enabled.\n \
348
+ The distributed libraries would include all MIR (increasing binary size).
349
+ The distributed MIR would include validation statements." ) ;
350
+ }
351
+
347
352
StepDescription :: run ( & Builder :: get_step_descriptions ( builder. kind ) , & builder, paths) ;
348
353
}
349
354
0 commit comments