diff options
| author | bors <bors@rust-lang.org> | 2024-03-04 05:32:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-04 05:32:26 +0000 |
| commit | f7cb53e54b0f2a403c12c123b5583a8d0d3ba3fe (patch) | |
| tree | d5ebf7a177c0183bb766b43c9f9d48b9a7c8f135 /compiler/rustc_codegen_ssa | |
| parent | 8b1af4c6610901b23be8d3311ed493cda0665983 (diff) | |
| parent | 53dba7fb5546f5a0d450bbef6995a2d5425e72e5 (diff) | |
| download | rust-f7cb53e54b0f2a403c12c123b5583a8d0d3ba3fe.tar.gz rust-f7cb53e54b0f2a403c12c123b5583a8d0d3ba3fe.zip | |
Auto merge of #121900 - chenyukang:yukang-fix-121425-repr-pack-error, r=compiler-errors
Fix misleading message in struct repr alignment and packed Fixes #121425 By the way, fix the spans for the argument in the second commit.
Diffstat (limited to 'compiler/rustc_codegen_ssa')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/codegen_attrs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/codegen_attrs.rs b/compiler/rustc_codegen_ssa/src/codegen_attrs.rs index 9e23757fcee..9c9e134f033 100644 --- a/compiler/rustc_codegen_ssa/src/codegen_attrs.rs +++ b/compiler/rustc_codegen_ssa/src/codegen_attrs.rs @@ -441,7 +441,7 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs { .map_err(|msg| { struct_span_code_err!( tcx.dcx(), - attr.span, + literal.span, E0589, "invalid `repr(align)` attribute: {}", msg |
