-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an ICE when lowering a float with missing exponent magnitude
Co-authored-by: Simonas Kazlauskas <[email protected]>
- Loading branch information
1 parent
2af5c65
commit 0003280
Showing
3 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fn main() { | ||
[9; [[9E; h]]]; | ||
//~^ ERROR: expected at least one digit in exponent | ||
//~| ERROR: cannot find value `h` in this scope [E0425] | ||
//~| ERROR: constant expression depends on a generic parameter | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
error: expected at least one digit in exponent | ||
--> $DIR/issue-91434.rs:2:11 | ||
| | ||
LL | [9; [[9E; h]]]; | ||
| ^^ | ||
|
||
error[E0425]: cannot find value `h` in this scope | ||
--> $DIR/issue-91434.rs:2:15 | ||
| | ||
LL | [9; [[9E; h]]]; | ||
| ^ not found in this scope | ||
|
||
error: constant expression depends on a generic parameter | ||
--> $DIR/issue-91434.rs:2:9 | ||
| | ||
LL | [9; [[9E; h]]]; | ||
| ^^^^^^^^^ | ||
| | ||
= note: this may fail depending on what value the parameter takes | ||
|
||
error: aborting due to 3 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0425`. |