We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9325535 commit 7bd6a92Copy full SHA for 7bd6a92
src/librust/rust.rs
@@ -60,7 +60,13 @@ struct Command<'self> {
60
usage_full: UsageSource<'self>,
61
}
62
63
-static COMMANDS: &'static [Command<'static>] = &[
+static NUM_OF_COMMANDS: uint = 7;
64
+
65
+// FIXME(#7617): should just be &'static [Command<'static>]
66
+// but mac os doesn't seem to like that and tries to loop
67
+// past the end of COMMANDS in usage thus passing garbage
68
+// to str::repeat and eventually malloc and crashing.
69
+static COMMANDS: [Command<'static>, .. NUM_OF_COMMANDS] = [
70
Command{
71
cmd: "build",
72
action: CallMain("rustc", rustc::main),
0 commit comments