librust: Remove unnecessary workaround. Closes #7617

This commit is contained in:
Luqman Aden 2013-09-12 00:25:08 -04:00
parent 62166611e7
commit cbe79bbbd3

View File

@ -60,13 +60,7 @@ struct Command<'self> {
usage_full: UsageSource<'self>,
}
static NUM_OF_COMMANDS: uint = 7;
// FIXME(#7617): should just be &'static [Command<'static>]
// but mac os doesn't seem to like that and tries to loop
// past the end of COMMANDS in usage thus passing garbage
// to str::repeat and eventually malloc and crashing.
static COMMANDS: [Command<'static>, .. NUM_OF_COMMANDS] = [
static COMMANDS: &'static [Command<'static>] = &'static [
Command {
cmd: "build",
action: CallMain("rustc", rustc::main_args),