Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #13000 - epage:inherit, r=weihanglo
refactor(toml): Further clean up inheritance ### What does this PR try to resolve? This is a follow up to #12971 that was found as I continued working towards #12801. The first is a more general purpose API cleanup. I was bothered by the idea that a caller could create a `field.workspace = false` when that is disallowed, so I modified the API to prevent that. The second is part of needing to find a home for everything in `toml/mod.rs`. I figured `IneheritableField::as_value` is reasonable in the API, so I carried that forward. It would be reasonable to add other methods, from an API perspective, but I left that for future exploration. ### How should we test and review this PR? ### Additional information
- Loading branch information