diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-03-04 12:48:34 +0100 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-03-04 12:48:34 +0100 |
| commit | 4be2be22450a8fd70f1e5e0d66fe59fb45412ef0 (patch) | |
| tree | 13360030c97685ca70eb0205c69ede7adf383b57 | |
| parent | 7bf863653b6c06cfd987f8b5014795aed58da0ec (diff) | |
| download | rust-4be2be22450a8fd70f1e5e0d66fe59fb45412ef0.tar.gz rust-4be2be22450a8fd70f1e5e0d66fe59fb45412ef0.zip | |
Rustfmt
| -rw-r--r-- | src/intrinsics/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/intrinsics/mod.rs b/src/intrinsics/mod.rs index 5bb3d850659..85656b8b5f3 100644 --- a/src/intrinsics/mod.rs +++ b/src/intrinsics/mod.rs @@ -652,7 +652,10 @@ fn codegen_regular_intrinsic_call<'tcx>( // Use this error even for the other intrinsics as it is more precise. format!("attempted to instantiate uninhabited type `{}`", ty) } else if intrinsic == sym::assert_zero_valid { - format!("attempted to zero-initialize type `{}`, which is invalid", ty) + format!( + "attempted to zero-initialize type `{}`, which is invalid", + ty + ) } else { format!( "attempted to leave type `{}` uninitialized, which is invalid", |
