1
Fork 0

port of locator.rs to SessionDiagnostics, fix some of the errors

revealed by tests, manually add a panic to test for dead code
This commit is contained in:
Nathan Stocks 2022-08-24 12:14:41 -06:00
parent bd8e312d73
commit d0ba1fbaa4
4 changed files with 450 additions and 215 deletions

View file

@ -1,7 +1,6 @@
use rustc_ast::{NestedMetaItem, CRATE_NODE_ID};
use rustc_attr as attr;
use rustc_data_structures::fx::FxHashSet;
use rustc_errors::struct_span_err;
use rustc_hir as hir;
use rustc_hir::def::DefKind;
use rustc_middle::ty::{List, ParamEnv, ParamEnvAnd, Ty, TyCtxt};