We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5958825 + ef04c64 commit 77e9660Copy full SHA for 77e9660
compiler/rustc_parse_format/src/lib.rs
@@ -697,7 +697,12 @@ impl<'a> Parser<'a> {
697
spec.precision = self.count(start + 1);
698
}
699
let end = self.current_pos();
700
- spec.precision_span = Some(self.span(start, end));
+ let span = self.span(start, end);
701
+ if spec.precision == CountImplied {
702
+ self.err("expected numerical precision", "missing precision", span);
703
+ } else {
704
+ spec.precision_span = Some(span);
705
+ }
706
707
708
let ty_span_start = self.current_pos();
0 commit comments