Skip to content

Commit 0728b62

Browse files
varkoryodaldevoid
andcommitted
Add ct_err
Co-Authored-By: Gabriel Smith <[email protected]>
1 parent d7fdeff commit 0728b62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc/ty/context.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ pub struct CommonLifetimes<'tcx> {
231231
pub re_empty: Region<'tcx>,
232232
pub re_static: Region<'tcx>,
233233
pub re_erased: Region<'tcx>,
234+
235+
pub ct_err: &'tcx LazyConst<'tcx>,
234236
}
235237

236238
pub struct LocalTableInContext<'a, V: 'a> {
@@ -943,7 +945,7 @@ impl<'tcx> CommonTypes<'tcx> {
943945
bool: mk(Bool),
944946
char: mk(Char),
945947
never: mk(Never),
946-
err: mk(Error),
948+
err,
947949
isize: mk(Int(ast::IntTy::Isize)),
948950
i8: mk(Int(ast::IntTy::I8)),
949951
i16: mk(Int(ast::IntTy::I16)),

0 commit comments

Comments
 (0)