Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 17 pull requests #56757

Closed
wants to merge 44 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
934e4d3
Remove not used mod
yui-knk Nov 28, 2018
eaeebb5
Clearer error message for dead assign
JohnGinger Dec 2, 2018
54026c1
Fix line length
JohnGinger Dec 2, 2018
4cf5702
Fix stderr files
JohnGinger Dec 3, 2018
70536d4
Fix stderr file (unused variable)
JohnGinger Dec 3, 2018
c0e3f4b
Change to give a help message
JohnGinger Dec 7, 2018
aa04285
Add lint for items deprecated in future
aheart Dec 9, 2018
562f33b
Document time of back operations of a Linked List
Dec 10, 2018
a336228
Add test to check library traits have #[must_use] attribute
aelred Dec 10, 2018
ecc4ca5
Add #[must_use] attribute to stdlib traits
aelred Dec 10, 2018
3246f49
Add trailing newline
aelred Dec 10, 2018
c3c2de9
reject invalid external doc attributes
euclio Nov 28, 2018
7f7045f
improve diagnostics for invalid external docs
euclio Nov 28, 2018
5586c04
debug logging, added conditional error message, tests updated
kevgrasso Nov 12, 2018
07a3d69
Update the stdsimd submodule
alexcrichton Dec 10, 2018
3d23e55
fix install broken link
mishaker Dec 10, 2018
f8c03b6
Add lint for stlib
aheart Dec 10, 2018
30f531b
generate invalidations from 2-phase-borrow activations
nikomatsakis Dec 4, 2018
8ee2c06
adopt polonius-engine 0.6.1
nikomatsakis Dec 4, 2018
1006425
Test capacity of ZST vector
KamilaBorowska Dec 11, 2018
5acab2d
Always set the RDRAND and RDSEED features on SGX
Dec 11, 2018
45b97f2
miri: use backtrace crate printing instead of rolling our own
RalfJung Dec 11, 2018
b17a3f2
fix rust-lang/rust issue #50583
piersfinlayson Dec 11, 2018
8e994a2
bump backtrace version to get prettier pretty-printing
RalfJung Dec 11, 2018
b96186b
Add missing urls in ffi module docs
GuillaumeGomez Dec 11, 2018
517bfe0
Fix private_no_mangle_fns message grammar
turboladen Dec 12, 2018
29e7ca9
Add test of current behavior (infer free region within closure body) …
pnkfelix Dec 10, 2018
e983b55
Rollup merge of #56203 - aheart:master, r=varkor
pietroalbini Dec 12, 2018
96b909e
Rollup merge of #56343 - yui-knk:remove_mir_stats_mod, r=nikomatsakis
pietroalbini Dec 12, 2018
93c8c5e
Rollup merge of #56439 - JohnGinger:master, r=nikomatsakis
pietroalbini Dec 12, 2018
8667b2b
Rollup merge of #56507 - nikomatsakis:polonius-integrate, r=MatthewJa…
pietroalbini Dec 12, 2018
289d480
Rollup merge of #56572 - kevgrasso:let_self_err_dev, r=estebank
pietroalbini Dec 12, 2018
c33046b
Rollup merge of #56672 - ccouzens:master, r=nikic
pietroalbini Dec 12, 2018
d862bc3
Rollup merge of #56677 - aelred:must-use-on-traits, r=estebank
pietroalbini Dec 12, 2018
c2655e1
Rollup merge of #56679 - euclio:external-doc-parse, r=estebank
pietroalbini Dec 12, 2018
d160d8f
Rollup merge of #56682 - alexcrichton:update-stdsimd, r=nikomatsakis
pietroalbini Dec 12, 2018
c96c1fb
Rollup merge of #56691 - mishaker:fix_doc_install_broken_link, r=jona…
pietroalbini Dec 12, 2018
a7bfe8a
Rollup merge of #56710 - jethrogb:jb/sgx-target-features, r=alexcrichton
pietroalbini Dec 12, 2018
6911f20
Rollup merge of #56713 - xfix:vec-test-zst-capacity, r=TimNN
pietroalbini Dec 12, 2018
9d888a2
Rollup merge of #56718 - RalfJung:use-libbacktrace-printing, r=alexcr…
pietroalbini Dec 12, 2018
dbd08c1
Rollup merge of #56725 - piersfinlayson:master, r=alexcrichton
pietroalbini Dec 12, 2018
d9fc1df
Rollup merge of #56731 - GuillaumeGomez:ffi-doc-urls, r=Centril
pietroalbini Dec 12, 2018
7f82fe1
Rollup merge of #56738 - turboladen:fix-private_no_mangle_fns-message…
pietroalbini Dec 12, 2018
d6814a3
Rollup merge of #56746 - pnkfelix:issue-56537-add-test-of-closure-usi…
pietroalbini Dec 12, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Test capacity of ZST vector
Initially, #50233 accidentally changed the capacity of empty ZST. This
was pointed out during code review. This commit adds a test to prevent
capacity of ZST vectors from accidentally changing to prevent that
from happening again.
KamilaBorowska committed Dec 11, 2018
commit 1006425769ada70d0f394ccdab3caecaf6fa3e77
5 changes: 5 additions & 0 deletions src/liballoc/tests/vec.rs
Original file line number Diff line number Diff line change
@@ -79,6 +79,11 @@ fn test_reserve() {
assert!(v.capacity() >= 33)
}

#[test]
fn test_zst_capacity() {
assert_eq!(Vec::<()>::new().capacity(), usize::max_value());
}

#[test]
fn test_extend() {
let mut v = Vec::new();