about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-06 13:27:43 +0100
committerGitHub <noreply@github.com>2022-12-06 13:27:43 +0100
commit0a07ffe4ad8f29e22a237cad8099401faf3995b4 (patch)
tree3addaf85970f6a3a833a9f00c4c1cc857b377aad /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentddb98e0aace469b3bc361cb273ca44e32d1c3aa8 (diff)
parent6dc2aa26759578f09974041f19767a75b8c6320e (diff)
downloadrust-0a07ffe4ad8f29e22a237cad8099401faf3995b4.tar.gz
rust-0a07ffe4ad8f29e22a237cad8099401faf3995b4.zip
Rollup merge of #105287 - compiler-errors:issue-105275, r=eholk
Synthesize substitutions for bad auto traits in dyn types

Auto traits are stored as just `DefId`s inside a `dyn Trait`'s existential predicates list. This is usually fine, since auto traits are forbidden to have generics -- but this becomes a problem for an ill-formed auto trait.

But since this will always result in an error, just synthesize some dummy (error) substitutions which are used at least to keep trait selection code happy about the number of substs in a trait ref.

Fixes #104808
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions