diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-12-11 11:40:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-11 11:40:37 +0100 |
| commit | c89672e1483be98b97a5532f0aca78d5470869f1 (patch) | |
| tree | 6ded0500a347ad95e0337690d9023769d042b751 /compiler/rustc_codegen_gcc/src/context.rs | |
| parent | f712d7310800dd258e4776cab0b9fb9767e693dc (diff) | |
| parent | 7162cb95500a066da51bc8ba7929809ec02bc835 (diff) | |
| download | rust-c89672e1483be98b97a5532f0aca78d5470869f1.tar.gz rust-c89672e1483be98b97a5532f0aca78d5470869f1.zip | |
Rollup merge of #118812 - notriddle:notriddle/assoc-name-intern, r=GuillaumeGomez
rustdoc-search: do not treat associated type names as types [Before](http://notriddle.com/rustdoc-html-demo-6/tor-before/tor_config/list_builder/trait.DirectDefaultEmptyListBuilderAccessors.html?search=DirectDefaultEmptyListBuilderAccessors%3CT%3DT%3E%20-%3E%20Vec%3CT%3E#associatedtype.T) [After](http://notriddle.com/rustdoc-html-demo-6/tor-after/tor_config/list_builder/trait.DirectDefaultEmptyListBuilderAccessors.html?search=DirectDefaultEmptyListBuilderAccessors%3CT%3DT%3E%20-%3E%20Vec%3CT%3E#associatedtype.T) [Profile](http://notriddle.com/rustdoc-html-demo-6/tor-profile/index.html) As a bit of background information: in type-based queries, a type name that does not exist gets treated as a generic type variable. This causes a counterintuitive behavior in the `tor_config` crate, which has a trait with an associated type variable called `T`. This isn't a searchable concrete type, but its name still gets stored in the typeNameIdMap, as a convenient way to intern its name. (The second commit is a mostly unrelated bugfix.)
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/context.rs')
0 files changed, 0 insertions, 0 deletions
