Add missing_panics_doc lint

This commit is contained in:
Caden Haustein 2020-12-30 16:37:59 -06:00 committed by flip1995
parent f870876d92
commit bde667af7e
No known key found for this signature in database
GPG key ID: 1CA0DF2AF59D68A5
16 changed files with 346 additions and 38 deletions

View file

@ -8,6 +8,9 @@ use std::path::{Path, PathBuf};
// 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());