]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #82066 - matthewjasper:trait-ref-fix, r=jackh726
authorDylan DPC <dylan.dpc@gmail.com>
Thu, 18 Feb 2021 15:57:34 +0000 (16:57 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Feb 2021 15:57:34 +0000 (16:57 +0100)
commit66211f6657971bdaf18996400435b6a416aa3343
treefc0bfa6c8cf3b7c7344a4373cab51d2947a6dc5e
parent55ab2e38797ad1661ff4cfa95074a3d81636fde0
parenteeb82e45fe42ec77efd99b706f96b3e66bcfb524
Rollup merge of #82066 - matthewjasper:trait-ref-fix, r=jackh726

Ensure valid TraitRefs are created for GATs

This fixes `ProjectionTy::trait_ref` to use the correct substs. Places that need all of the substs have been updated to not use `trait_ref`.

r? ````@jackh726````
compiler/rustc_ast_pretty/src/pprust/state.rs
compiler/rustc_hir/src/lang_items.rs
compiler/rustc_middle/src/ty/error.rs
compiler/rustc_middle/src/ty/sty.rs
compiler/rustc_privacy/src/lib.rs
compiler/rustc_trait_selection/src/traits/fulfill.rs
compiler/rustc_trait_selection/src/traits/project.rs
compiler/rustc_trait_selection/src/traits/select/mod.rs
compiler/rustc_typeck/src/astconv/mod.rs
compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs
compiler/rustc_typeck/src/check/method/suggest.rs