FallbackDir: orports: Introduce and use VecBuilder
This is part of #447 (closed) and therefore #371 (closed) and #285 (closed)
Found with
git-ls-files | xargs perl -ne 'next unless m/^\#.*derive.*Builder/..m/^\}/; print "$ARGV:$.:$_"' 2>&1 |less +/':.*Vec'
Merge request reports
Activity
assigned to @Diziet
requested review from @nickm
I don't know if it's overkill. Maybe we just want to let derive_builder do its thing on a
Vec
.But, this branch removes an ad-hoc appender,
FallbackDirBuilder::orport
. Definitely we shouldn't have such a thing. Either it should be a completely vanillaVec
which you can only set all in one go, or it should be aFooListBuilder
.I did the latter because it seemed better to be like all the other lists.
mentioned in merge request !475 (merged)
@Diziet Let's chat on Friday about these. I'm generally wondering whether this whole "FooListBuilder" pattern is really better than just exposing a
&mut Vec<Foo>
(or&mut OtherContainer<Foo>
as appropriate) from the Builder. But we should decide one way or another on the soon side, so I don't keep blocking you on this.Mergeable, but see #451 (closed) for the fix we want to do immediately afterwards.
mentioned in merge request !481 (merged)
added 80 commits
-
4dcd67a3...ab979b0b - 72 commits from branch
tpo/core:main
- 0c001ed6 - list_builder: Actually honour attributes
- 578684f2 - list_builder: Make helper capable of handling generics
- 221fe634 - list_builder: Use Educe to derive Default
- 2487a46e - list_builder: Provide VecBuilder
- 4262a440 - list_builder: Update semver note
- 6791758d - FallbackDir: Do not consider defaulted-empty orport list to be valid
- cc394ca9 - FallbackDir: Do orport validation after autogenerated build
- 4ad4cae4 - FallbackDir: Use VecBuilder for orports
Toggle commit list-
4dcd67a3...ab979b0b - 72 commits from branch
@nickm now rebased on !481 (merged). This also contains some enhancements to !481 (merged) and one bugfix. I think it needs your re-review. Thanks.
- Resolved by Ian Jackson
- Resolved by Ian Jackson
- Resolved by Ian Jackson
- Resolved by Ian Jackson
mentioned in issue #452 (closed)
mentioned in commit Diziet/arti@df2813ed
added 1 commit
- df2813ed - list_builder: Add some xrefs about macro_rules limitations
enabled an automatic merge when the pipeline for df2813ed succeeds
mentioned in commit a334f172
mentioned in issue #447 (closed)