Unify all uses of 'gcx and 'tcx.
This commit is contained in:
@@ -36,7 +36,7 @@ pub mod symbol_names_test;
|
||||
/// error in codegen. This is used to write compile-fail tests
|
||||
/// that actually test that compilation succeeds without
|
||||
/// reporting an error.
|
||||
pub fn check_for_rustc_errors_attr(tcx: TyCtxt<'_, '_>) {
|
||||
pub fn check_for_rustc_errors_attr(tcx: TyCtxt<'_>) {
|
||||
if let Some((def_id, _)) = tcx.entry_fn(LOCAL_CRATE) {
|
||||
if tcx.has_attr(def_id, sym::rustc_error) {
|
||||
tcx.sess.span_fatal(tcx.def_span(def_id), "compilation successful");
|
||||
|
||||
Reference in New Issue
Block a user