]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_errors/src/registry.rs
Merge commit 'd9ddce8a223cb9916389c039777b6966ea448dc8' into clippyup
[rust.git] / compiler / rustc_errors / src / registry.rs
index b1d770d5bd5237e12f3a571d510512c822dff184..da764d993bbdb2ad7996a963677f2e696d16f771 100644 (file)
@@ -13,10 +13,6 @@ pub fn new(long_descriptions: &[(&'static str, Option<&'static str>)]) -> Regist
         Registry { long_descriptions: long_descriptions.iter().copied().collect() }
     }
 
-    /// This will panic if an invalid error code is passed in
-    pub fn find_description(&self, code: &str) -> Option<&'static str> {
-        self.long_descriptions[code]
-    }
     /// Returns `InvalidErrorCode` if the code requested does not exist in the
     /// registry. Otherwise, returns an `Option` where `None` means the error
     /// code is valid but has no extended information.