Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit cafdd2f

Browse files
committed
Note maximum integer literal for IntLiteralTooLarge
1 parent e11cb36 commit cafdd2f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/rustc_error_messages/locales/en-US/session.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ session_invalid_float_literal_suffix = invalid suffix `{$suffix}` for float lite
8585
.help = valid suffixes are `f32` and `f64`
8686
8787
session_int_literal_too_large = integer literal is too large
88+
.note = value exceeds limit of 340282366920938463463374607431768211455
8889
8990
session_invalid_int_literal_width = invalid width `{$width}` for integer literal
9091
.help = valid widths are 8, 16, 32, 64 and 128

compiler/rustc_session/src/errors.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ pub(crate) struct InvalidFloatLiteralSuffix {
260260

261261
#[derive(Diagnostic)]
262262
#[diag(session_int_literal_too_large)]
263+
#[note]
263264
pub(crate) struct IntLiteralTooLarge {
264265
#[primary_span]
265266
pub span: Span,

0 commit comments

Comments
 (0)