rust/compiler/rustc_parse/src
Dylan DPC 6c3cbcd333
Rollup merge of #113803 - compiler-errors:const-interp-block, r=fee1-dead
Fix inline_const with interpolated block

Interpolation already worked when we had a `const $block` that wasn't a statement expr:

```
fn foo() {
  let _ = const $block;
}
```

But it was failing when the const block was in statement expr position:

```
fn foo() {
  const $block;
}
```

... because of a bug in a check for const items. This fixes that.

---

cc https://github.com/rust-lang/rust/pull/112953#issuecomment-1631354481, though I don't think this requires an FCP since it's already supported in exprs and seems to me to be fully a parser bug.
2023-07-19 22:37:08 +05:30
..
lexer Use a better link 2023-06-10 14:46:11 -04:00
parser Rollup merge of #113803 - compiler-errors:const-interp-block, r=fee1-dead 2023-07-19 22:37:08 +05:30
errors.rs Add suggestion for bad block fragment error 2023-06-23 19:18:20 +00:00
lib.rs Restrict From<S> for {D,Subd}iagnosticMessage. 2023-05-03 08:44:39 +10:00
validate_attr.rs Avoid &format("...") calls in error message code. 2023-05-16 17:59:56 +10:00