Skip to content

Commit 3461082

Browse files
committed
rename ErrorReported -> ErrorGuaranteed
1 parent 69bd532 commit 3461082

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/constant.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Handling of `static`s, `const`s and promoted allocations
22
33
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
4-
use rustc_errors::ErrorReported;
4+
use rustc_errors::ErrorGuaranteed;
55
use rustc_middle::middle::codegen_fn_attrs::CodegenFnAttrFlags;
66
use rustc_middle::mir::interpret::{
77
read_target_uint, AllocId, Allocation, ConstValue, ErrorHandled, GlobalAlloc, Scalar,
@@ -54,7 +54,7 @@ pub(crate) fn check_constants(fx: &mut FunctionCx<'_, '_, '_>) -> bool {
5454
{
5555
all_constants_ok = false;
5656
match err {
57-
ErrorHandled::Reported(ErrorReported) | ErrorHandled::Linted => {
57+
ErrorHandled::Reported(ErrorGuaranteed) | ErrorHandled::Linted => {
5858
fx.tcx.sess.span_err(constant.span, "erroneous constant encountered");
5959
}
6060
ErrorHandled::TooGeneric => {

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use std::cell::Cell;
2929

3030
use rustc_codegen_ssa::traits::CodegenBackend;
3131
use rustc_codegen_ssa::CodegenResults;
32-
use rustc_errors::ErrorReported;
32+
use rustc_errors::ErrorGuaranteed;
3333
use rustc_metadata::EncodedMetadata;
3434
use rustc_middle::dep_graph::{WorkProduct, WorkProductId};
3535
use rustc_session::config::OutputFilenames;
@@ -209,7 +209,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
209209
ongoing_codegen: Box<dyn Any>,
210210
_sess: &Session,
211211
_outputs: &OutputFilenames,
212-
) -> Result<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>), ErrorReported> {
212+
) -> Result<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>), ErrorGuaranteed> {
213213
Ok(*ongoing_codegen
214214
.downcast::<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>)>()
215215
.unwrap())
@@ -220,7 +220,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
220220
sess: &Session,
221221
codegen_results: CodegenResults,
222222
outputs: &OutputFilenames,
223-
) -> Result<(), ErrorReported> {
223+
) -> Result<(), ErrorGuaranteed> {
224224
use rustc_codegen_ssa::back::link::link_binary;
225225

226226
link_binary::<crate::archive::ArArchiveBuilder<'_>>(sess, &codegen_results, outputs)

0 commit comments

Comments
 (0)