]> git.lizzy.rs Git - rust.git/commit
rollup merge of #20350: fhahn/issue-20340-rustdoc-version
authorAlex Crichton <alex@alexcrichton.com>
Wed, 31 Dec 2014 00:26:24 +0000 (16:26 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 31 Dec 2014 00:26:24 +0000 (16:26 -0800)
commit49f14d36e131bee318340d638aa4f94d8cf872f6
tree23d306e084741f98753e6b113754bcb95c1bb60a
parent38f9805f11721d854a59818e0ad7b8a0b6282301
parentc11e1551d1adcaa5791438e9c604068cfdbea7cb
rollup merge of #20350: fhahn/issue-20340-rustdoc-version

Patch for #20340. `rustdoc --version` panics because it uses `rustc_driver::version`, which in turn checks the `verbose` flag, which was not defined for rustdoc.  In this patch I have added a verbose flag to rustdoc, because I think it should be useful for other things besides --version.

Another possible fix would be to check if a verbose option was defined in `rustc_driver` or add an extra `version` function for rustdoc.