@@ -286,8 +286,7 @@ impl<'a> Builder<'a> {
286286 doc:: Reference , doc:: Rustdoc , doc:: RustByExample , doc:: CargoBook ) ,
287287 Kind :: Dist => describe ! ( dist:: Docs , dist:: Mingw , dist:: Rustc , dist:: DebuggerScripts ,
288288 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 ) ,
291290 Kind :: Install => describe ! ( install:: Docs , install:: Std , install:: Cargo , install:: Rls ,
292291 install:: Rustfmt , install:: Analysis , install:: Src , install:: Rustc ) ,
293292 }
@@ -344,6 +343,12 @@ impl<'a> Builder<'a> {
344343 stack : RefCell :: new ( Vec :: new ( ) ) ,
345344 } ;
346345
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+
347352 StepDescription :: run ( & Builder :: get_step_descriptions ( builder. kind ) , & builder, paths) ;
348353 }
349354
0 commit comments