]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_dev/src/ra_setup.rs
Auto merge of #81132 - bugadani:map-prealloc, r=matthewjasper
[rust.git] / src / tools / clippy / clippy_dev / src / ra_setup.rs
index a8a6a2cb1bd6fbd4fdfa27a707679450d7838bc5..a3c329b578b2050d411c9ee0d010354a5c176699 100644 (file)
@@ -8,6 +8,9 @@
 // This allows rust analyzer to analyze rustc internals and show proper information inside clippy
 // code. See https://github.com/rust-analyzer/rust-analyzer/issues/3517 and https://github.com/rust-lang/rust-clippy/issues/5514 for details
 
+/// # Panics
+///
+/// Panics if `rustc_path` does not lead to a rustc repo or the files could not be read
 pub fn run(rustc_path: Option<&str>) {
     // we can unwrap here because the arg is required by clap
     let rustc_path = PathBuf::from(rustc_path.unwrap());