about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorJosh Stone <cuviper@gmail.com>2019-03-27 18:15:41 -0700
committerGitHub <noreply@github.com>2019-03-27 18:15:41 -0700
commit44c411ec6f5aea339fe66d5f22548323cbad2edb (patch)
tree79eec0b76f2f6aecfa619a897f3355fcfb27aba1 /src/libstd/sys/unix/stack_overflow.rs
parent6e65ae779f84ae7e103c202d41338180988b4a62 (diff)
parent8733b2ab0c6bfe60df594e41ee9b1ce1f8caeaa0 (diff)
downloadrust-44c411ec6f5aea339fe66d5f22548323cbad2edb.tar.gz
rust-44c411ec6f5aea339fe66d5f22548323cbad2edb.zip
Rollup merge of #59451 - TimDiekmann:patch-1, r=sfackler
Add `Default` to `std::alloc::System`

`System` is a unit struct, thus, it can be constructed without any additional information. Therefore `Default` is a noop. However, in generic code, a `T: Default` may happen as in

```rust
#[derive(Default)]
struct Foo<A> {
    allocator: A
}
```

Does this need a feature gate?
Should I also add `PartialEq/Eq/PartialOrd/Ord/Hash`?
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions