diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-03-26 19:40:27 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-26 19:40:27 +1100 |
| commit | 7eb27a9cf93f2c21626da278edab1235564d097c (patch) | |
| tree | 824e6b708f973d626fee755c5457a5f502e8a87b /compiler/rustc_parse/src | |
| parent | 6e8abb5ec65ac50f934df6cf0e8f248dc8e8805e (diff) | |
| parent | 6ccaea19895cc8c0861f3a8707f888a15f8be3a1 (diff) | |
| download | rust-7eb27a9cf93f2c21626da278edab1235564d097c.tar.gz rust-7eb27a9cf93f2c21626da278edab1235564d097c.zip | |
Rollup merge of #138483 - azhogin:azhogin/target-modifiers-bool-fix, r=fee1-dead
Target modifiers fix for bool flags without value
Fixed support of boolean flags without values: `-Zbool-flag` is now consistent with `-Zbool-flag=true` in another crate.
When flag is explicitly set to default value, target modifier will not be set in crate metainfo (`-Zflag=false` when `false` is a default value for the flag).
Improved error notification when target modifier flag is absent in a crate ("-Zflag unset").
Example:
```
note: `-Zreg-struct-return=true` in this crate is incompatible with unset `-Zreg-struct-return` in dependency `default_reg_struct_return`
```
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions
