diff options
| author | Hirochika Matsumoto <git@hkmatsumoto.com> | 2021-10-03 15:53:02 +0900 |
|---|---|---|
| committer | Hirochika Matsumoto <git@hkmatsumoto.com> | 2021-10-03 16:16:28 +0900 |
| commit | 3818981ca12ca79dc446fad849d48ebe1257cbc7 (patch) | |
| tree | 35f2bda3785b1c5b5c167c3018e4c2758b8f5eb0 /compiler/rustc_const_eval/src | |
| parent | 77f1e504a953efbbd59673a75c3cd530d5b3c530 (diff) | |
| download | rust-3818981ca12ca79dc446fad849d48ebe1257cbc7.tar.gz rust-3818981ca12ca79dc446fad849d48ebe1257cbc7.zip | |
Practice diagnostic message convention
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/check_consts/ops.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/ops.rs b/compiler/rustc_const_eval/src/transform/check_consts/ops.rs index 1d0ee949a22..a39fca0d8be 100644 --- a/compiler/rustc_const_eval/src/transform/check_consts/ops.rs +++ b/compiler/rustc_const_eval/src/transform/check_consts/ops.rs @@ -407,7 +407,7 @@ impl NonConstOp for RawPtrComparison { let mut err = ccx .tcx .sess - .struct_span_err(span, "pointers cannot be reliably compared during const eval."); + .struct_span_err(span, "pointers cannot be reliably compared during const eval"); err.note( "see issue #53020 <https://github.com/rust-lang/rust/issues/53020> \ for more information", @@ -443,7 +443,7 @@ impl NonConstOp for RawPtrToIntCast { let mut err = ccx .tcx .sess - .struct_span_err(span, "pointers cannot be cast to integers during const eval."); + .struct_span_err(span, "pointers cannot be cast to integers during const eval"); err.note("at compile-time, pointers do not have an integer value"); err.note( "avoiding this restriction via `transmute`, `union`, or raw pointers leads to compile-time undefined behavior", |
