about summary refs log tree commit diff
path: root/src/libstd/sys/vxworks/stack_overflow.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-07-27 09:20:16 -0700
committerGitHub <noreply@github.com>2020-07-27 09:20:16 -0700
commite0543409d5c3835e1355831449dfd7435c4336ff (patch)
tree3cbd89c6ae7b55361e48ba6379df2ac8b8feb55f /src/libstd/sys/vxworks/stack_overflow.rs
parent7864c3f5fa709b854aeee4c45fd00f834ed75449 (diff)
parent952fd0ce5867ea65c8d760ae66e900d49669a719 (diff)
downloadrust-e0543409d5c3835e1355831449dfd7435c4336ff.tar.gz
rust-e0543409d5c3835e1355831449dfd7435c4336ff.zip
Rollup merge of #74487 - lcnr:const-in-ty-default, r=varkor
Forbid generic parameters in anon consts inside of type defaults

Emit a resolution error for `struct Foo<T, U = [u8; std::mem::size_of::<T>()]>`.
We are unable to support this with the way `ty::Generics` is currently used,
so let's just forbid it entirely for now.

Fixes some ICE on stable, e.g.
```rust
struct Foo<T, U = [u8; std::mem::size_of::<*mut T>()]>(T, U);
```

r? @varkor @eddyb
Diffstat (limited to 'src/libstd/sys/vxworks/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions