Unify all uses of 'gcx and 'tcx.
This commit is contained in:
parent
0e4a56b4b0
commit
f3f9d6dfd9
341 changed files with 3109 additions and 3327 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue