Skip to content

Commit 428a25c

Browse files
committed
rustc_codegen_ssa: use inspect_err instead of map_err that returns ()
1 parent b533374 commit 428a25c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/codegen_attrs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs {
444444
&& let Some((sym::align, literal)) = item.singleton_lit_list()
445445
{
446446
rustc_attr_parsing::parse_alignment(&literal.kind)
447-
.map_err(|msg| {
447+
.inspect_err(|msg| {
448448
struct_span_code_err!(
449449
tcx.dcx(),
450450
literal.span,

0 commit comments

Comments
 (0)