about summary refs log tree commit diff
path: root/src/librustdoc/html/static/source-script.js
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-07-16 11:18:46 -0700
committerGitHub <noreply@github.com>2020-07-16 11:18:46 -0700
commit6ef0dfa42f8fa559f98c51dcd7c926fbf410a367 (patch)
tree52c9039411769928c23db2265739eeb20c9b2d1f /src/librustdoc/html/static/source-script.js
parent61a3f6701b5e1d8cd87be83c2b6a8322f812c8d8 (diff)
parent09ba0bda2caa448d381b952d2b52df1782c44966 (diff)
downloadrust-6ef0dfa42f8fa559f98c51dcd7c926fbf410a367.tar.gz
rust-6ef0dfa42f8fa559f98c51dcd7c926fbf410a367.zip
Rollup merge of #74159 - lcnr:const-generic-ty-decl, r=varkor
forbid generic params in the type of const params

implements and closes #74152

fixes #74101, closes #71169, fixes #73491, closes #62878

@eddyb and I talked [on zulip](https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/type.20of.20const.20parameters/near/203405696) about this and we probably want to also forbid generic consts in the default
type of a parameter, e.g. `struct Foo<T, U = [u8; std::mem::size_of::<T>()]>`, this is currently still allowed
and I will probably fix that in a followup PR.

r? @varkor @eddyb
Diffstat (limited to 'src/librustdoc/html/static/source-script.js')
0 files changed, 0 insertions, 0 deletions