diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-09-27 13:34:52 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-27 13:34:52 +0000 |
| commit | 5347c3ab5989a968b8e942104bdb3b55fb7e7d6f (patch) | |
| tree | df310c8f083cdcd1b6b0bfb15495e7d4af061bad /src/test/codegen/src-hash-algorithm | |
| parent | c4251319fd3acf7b7781275ec77b53cc0efe6140 (diff) | |
| parent | 72bb49467dbaf3d90455b82447cb3450b843910c (diff) | |
| download | rust-5347c3ab5989a968b8e942104bdb3b55fb7e7d6f.tar.gz rust-5347c3ab5989a968b8e942104bdb3b55fb7e7d6f.zip | |
Merge #10353
10353: Remove `GenericParams::new` r=SkiFire13 a=SkiFire13 Helps with #10305 I made the implementations of `HasChildSource<_>` and `ChildBySource` for `GenericDefId` use their own logic instead of relying on `GenericParams::new`. This in turn means that `GenericParams::new` is unused and can be removed. `SourceMap` becomes also unused because all the rest of the code does is insert into it, so it can be removed too. This also helps avoid creating a completly new `GenericParams` when `GenericDefId::child_source` and `GenericDefId::child_by_source_to` are called, and also creating a `SourceMap` in `item_tree::lower::Ctx::lower_generic_params`. Co-authored-by: Giacomo Stevanato <giaco.stevanato@gmail.com>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
