diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-09-14 18:12:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-14 18:12:14 +0200 |
| commit | 2b40fdbb28009e8f23f34169c6f5579a037eaec5 (patch) | |
| tree | 12177a67c549ad18e5497556fbc769b775890ba7 /tests/codegen/try_question_mark_nop.rs | |
| parent | d1701a53340a6dc65a777d0564163522f84bdcbe (diff) | |
| parent | 4cb5849f017a1873e5b62f3ca5585f41db81108a (diff) | |
| download | rust-2b40fdbb28009e8f23f34169c6f5579a037eaec5.tar.gz rust-2b40fdbb28009e8f23f34169c6f5579a037eaec5.zip | |
Rollup merge of #130349 - ShE3py:break_up_float, r=fmease
Fix `Parser::break_up_float`'s right span
```rs
use std::mem::offset_of;
fn main() {
offset_of!((u8,), 0.0);
}
```
Before:
```
error[E0609]: no field `0` on type `u8`
--> ./main.rs:4:25
|
4 | offset_of!((u8,), 0.0);
| _____--------------------^-
| | |
| | in this macro invocation
5 | | }
... |
|
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 1 previous error
```
After:
```
error[E0609]: no field `0` on type `u8`
--> ./main.rs:4:25
|
4 | offset_of!((u8,), 0.0);
| ^
error: aborting due to 1 previous error
```
---
`@rustbot` label +A-parser +D-imprecise-spans
Diffstat (limited to 'tests/codegen/try_question_mark_nop.rs')
0 files changed, 0 insertions, 0 deletions
