Remove redundant assignment
`crate.name` is already set by `tcx.crate_name`, there's no need to override it.
This commit is contained in:
parent
f76ecd0668
commit
c18c7c7059
1 changed files with 0 additions and 5 deletions
|
@ -519,17 +519,12 @@ fn main_options(options: config::Options) -> MainResult {
|
||||||
// compiler all the way through the analysis passes. The rustdoc output is
|
// compiler all the way through the analysis passes. The rustdoc output is
|
||||||
// then generated from the cleaned AST of the crate. This runs all the
|
// then generated from the cleaned AST of the crate. This runs all the
|
||||||
// plug/cleaning passes.
|
// plug/cleaning passes.
|
||||||
let crate_name = options.crate_name.clone();
|
|
||||||
let crate_version = options.crate_version.clone();
|
let crate_version = options.crate_version.clone();
|
||||||
let output_format = options.output_format;
|
let output_format = options.output_format;
|
||||||
let (mut krate, renderinfo, renderopts, sess) = core::run_core(options);
|
let (mut krate, renderinfo, renderopts, sess) = core::run_core(options);
|
||||||
|
|
||||||
info!("finished with rustc");
|
info!("finished with rustc");
|
||||||
|
|
||||||
if let Some(name) = crate_name {
|
|
||||||
krate.name = name
|
|
||||||
}
|
|
||||||
|
|
||||||
krate.version = crate_version;
|
krate.version = crate_version;
|
||||||
|
|
||||||
if show_coverage {
|
if show_coverage {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue