about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-04-07 13:07:15 +0200
committerGitHub <noreply@github.com>2021-04-07 13:07:15 +0200
commitd554385bbf94c063220319b856bfa7b6d9f63aaf (patch)
tree6b3706d27f73231c25bc192648b73e5346f42880 /compiler/rustc_codegen_llvm/src/builder.rs
parentb81c6cdb570957b5d6d4261b908f7e0364a67d81 (diff)
parentee79f8312985a456391ee2c55c0f725a78b2a0a5 (diff)
downloadrust-d554385bbf94c063220319b856bfa7b6d9f63aaf.tar.gz
rust-d554385bbf94c063220319b856bfa7b6d9f63aaf.zip
Rollup merge of #83935 - SNCPlay42:param-default-impl-trait, r=varkor
forbid `impl Trait` in generic param defaults

Fixes #83929

Forbid using `impl Trait` in the default types of generic parameters, e.g. `struct Foo<T = impl Trait>`. I assume this was never supposed to be allowed - it seems no UI test used it.

Note that using `impl Trait` in this position did not hit a feature gate error; however, this *shouldn't* be a breaking change as any attempt to use it should have hit the ICE in #83929 and/or failed to provide a defining use of the `impl Trait`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions