rust/compiler/rustc_metadata/src
Stuart Cook 7eb27a9cf9
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`
```
2025-03-26 19:40:27 +11:00
..
rmeta Rollup merge of #138685 - nnethercote:use-Option-Ident-for-lowered-param-names, r=compiler-errors 2025-03-20 15:36:17 +01:00
creader.rs Target modifiers fix for bool flags without value 2025-03-17 12:49:34 +07:00
dependency_format.rs Support rmeta inputs for --crate-type=bin --emit=obj 2025-03-07 18:33:05 +01:00
errors.rs Target modifiers fix for bool flags without value 2025-03-17 12:49:34 +07:00
foreign_modules.rs Move some Map methods onto TyCtxt. 2025-02-17 13:21:02 +11:00
fs.rs Dogfood feature(file_buffered) 2024-09-24 14:25:16 -07:00
lib.rs Rollup merge of #138273 - petrochenkov:nonatroot, r=bjorn3 2025-03-13 10:58:23 +01:00
locator.rs Teach structured errors to display short Ty 2025-02-25 16:56:03 +00:00
native_libs.rs rustc_session: Add a helper function for obtaining staticlib prefix and suffix 2025-03-25 00:03:36 +03:00