about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-08-15 09:46:22 +0000
committerbors <bors@rust-lang.org>2020-08-15 09:46:22 +0000
commit1e58871d25c9ef4d2edbc331dedcc7f0543eea15 (patch)
tree9cb5e10d1d8bb7b5e301235fb706378534f1bbdd /compiler/rustc_errors/src
parent5205b974d588a41798a7438b91bf26a6f084e0dd (diff)
parentbf3ef26713b8208e0127f4c51725897dbcd11bd9 (diff)
downloadrust-1e58871d25c9ef4d2edbc331dedcc7f0543eea15.tar.gz
rust-1e58871d25c9ef4d2edbc331dedcc7f0543eea15.zip
Auto merge of #75518 - davidtwco:issue-75326-polymorphization-symbol-mangling-v0-predicates, r=lcnr
polymorphize: `I` used if `T` used in `I: Foo<T>`

Fixes #75326.

This PR adjusts polymorphization's handling of predicates so that after ensuring that `T` is used in `I: Foo<T>` if `I` is used, it now ensures that `I` is used if `T` is used in `I: Foo<T>`. This is necessary to mark generic parameters that only exist in impl parameters as used - thereby avoiding symbol clashes when using the new mangling scheme.

With this PR, rustc will now fully bootstrap with polymorphization and the new symbol mangling scheme enabled - not all tests pass, but I'm not sure how much of that is the interaction of the two features, I'll be looking into that soon. All tests pass with only polymorphization enabled.

r? @lcnr (this isn't sufficiently complex that I need to add to eddy's review queue)
cc @eddyb
Diffstat (limited to 'compiler/rustc_errors/src')
0 files changed, 0 insertions, 0 deletions