rustc-ap-rustc_errors 469.0.0

Automatically published version of the package `rustc_errors` in the rust-lang/rust repository from commit 39401465da4ce27aeeb2c2a26133ac35c63aa515 The publishing script for this crate lives at:
use rustc_data_structures::fx::FxHashMap;

pub struct Registry {
    descriptions: FxHashMap<&'static str, &'static str>,

impl Registry {
    pub fn new(descriptions: &[(&'static str, &'static str)]) -> Registry {
        Registry { descriptions: descriptions.iter().cloned().collect() }

    pub fn find_description(&self, code: &str) -> Option<&'static str> {