mod common;
mod unstable;
use std::{cell::RefCell, marker::PhantomData};
use marker_api::Lint;
use rustc_hash::FxHashMap;
thread_local! {
static LINTS_MAP: RefCell<FxHashMap<&'static Lint, &'static rustc_lint::Lint>> = RefCell::default();
}
pub struct RustcConverter<'ast, 'tcx> {
_lifetime: PhantomData<&'ast ()>,
rustc_cx: rustc_middle::ty::TyCtxt<'tcx>,
}
impl<'ast, 'tcx> RustcConverter<'ast, 'tcx> {
#[must_use]
pub fn new(rustc_cx: rustc_middle::ty::TyCtxt<'tcx>) -> Self {
Self {
_lifetime: PhantomData,
rustc_cx,
}
}
}