Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bootstrap/src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41073,16 +41073,16 @@ mod tests_compiler_rejects {
assert!(r.is_err(), "malformed input must fail to compile, got Ok");
}

// Case 3: invalid width. `u3` is not a real integer width and is not in
// VALID_CAST_TYPES -> rejected; `u3` never reaches codegen.
// Case 3: invalid width. `u65` is past the 64 bits a uN cast may name (int_type_names.t27)
// and is not in VALID_CAST_TYPES -> rejected; `u65` never reaches codegen.
#[test]
fn rejects_invalid_width_u3() {
fn rejects_invalid_width_u65() {
// Hardened contract (t27#1940): a malformed statement/declaration
// is a COMPILE ERROR, not a silent drop.
let r = try_emit(
r#"module RejBadWidth {
pub fn h(x: u8) -> u8 {
return x as u3
return x as u65
}
}"#,
);
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/stage0/FROZEN_HASH
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c485c8bd3372a8c391d5b2cd0c904dfe08155750b2d5a3e0319fbbbe62555c43 bootstrap/src/compiler.rs
fad12492937aa2196d2adbf560305e367f5dd1183a3107137d5bc0c1c26033ab bootstrap/src/compiler.rs
Loading