Skip to content

Commit 849f6a3

Browse files
authored
chore: Updated compiler errors for Rust 1.93 (#16543)
### What does this PR try to resolve? Fixes the docs CI jobs that are currently failing since Rust 1.93 was released Example failed job: https://github.com/rust-lang/cargo/actions/runs/21252805301/job/61158769843?pr=16542 ### How to test and review this PR? See the CI jobs status r? @weihanglo
2 parents f0c243f + 97b7949 commit 849f6a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/doc/src/reference/semver.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ pub struct Example {
471471
// Example usage that will break.
472472
fn main() {
473473
let f = updated_crate::Example { f1: 1, f2: 2 };
474-
let x = &f.f2; // Error: reference to packed field is unaligned
474+
let x = &f.f2; // Error: error[E0793]: reference to field of packed struct is unaligned
475475
}
476476
```
477477

@@ -656,7 +656,7 @@ use updated_crate::Packed;
656656
657657
fn main() {
658658
let p = Packed { a: 1, b: 2 };
659-
let x = &p.b; // Error: reference to packed field is unaligned
659+
let x = &p.b; // Error: error[E0793]: reference to field of packed struct is unaligned
660660
}
661661
```
662662

0 commit comments

Comments
 (0)