summaryrefslogtreecommitdiffstats
path: root/src/librustdoc/scrape_examples.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustdoc/scrape_examples.rs')
-rw-r--r--src/librustdoc/scrape_examples.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/scrape_examples.rs b/src/librustdoc/scrape_examples.rs
index f28c164d6..d2fa7769b 100644
--- a/src/librustdoc/scrape_examples.rs
+++ b/src/librustdoc/scrape_examples.rs
@@ -286,7 +286,7 @@ pub(crate) fn run(
let (cx, _) = Context::init(krate, renderopts, cache, tcx).map_err(|e| e.to_string())?;
// Collect CrateIds corresponding to provided target crates
- // If two different versions of the crate in the dependency tree, then examples will be collcted from both.
+ // If two different versions of the crate in the dependency tree, then examples will be collected from both.
let all_crates = tcx
.crates(())
.iter()
@@ -331,7 +331,7 @@ pub(crate) fn run(
};
if let Err(e) = inner() {
- tcx.sess.fatal(&e);
+ tcx.sess.fatal(e);
}
Ok(())
@@ -358,7 +358,7 @@ pub(crate) fn load_call_locations(
};
inner().map_err(|e: String| {
- diag.err(&format!("failed to load examples: {}", e));
+ diag.err(format!("failed to load examples: {}", e));
1
})
}