Skip to content

Rollup of 10 pull requests #91627

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

Merged
merged 26 commits into from
Dec 7, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
9e5939a
Remove a code path that is neither documented nor can I see the reaso…
oli-obk Aug 20, 2021
93564c3
Tweak "call this function" suggestion to have smaller span
estebank Dec 3, 2021
14c6193
Add test for evaluate_obligation: Ok(EvaluatedToOkModuloRegions) ICE
wesleywiser Nov 19, 2021
98e9b32
Add test with `#[rustc_evaluate_where_clauses]`
wesleywiser Nov 22, 2021
6fe13f6
Add test case that evals to `EvaluatedToOkModuloRegions`
wesleywiser Dec 4, 2021
aa3370c
doc: suggest try_reserve in try_reserve_exact
TennyZhuang Dec 5, 2021
a9f14c1
Add pretty printer test for async blocks
dtolnay Dec 5, 2021
33c29a3
Pretty print async block without redundant space
dtolnay Dec 5, 2021
a30f963
Add `array::IntoIter::{empty, from_raw_parts}`
scottmcm Nov 28, 2021
ef7c833
Move the doc test to edition2021
scottmcm Nov 29, 2021
0b90204
Add tracking issue; make `empty` const too (unstably)
scottmcm Dec 6, 2021
a0fb992
Fix AnonConst ICE
terrarier2111 Nov 28, 2021
6a17ee6
Recommend fix `count()` -> `len()` on slices
notriddle Jul 30, 2021
880eb59
Update books
ehuss Dec 7, 2021
f50070b
:arrow_up: rust-analyzer
lnicola Dec 7, 2021
9b86c59
s/from_raw_parts/new_unchecked/
scottmcm Dec 7, 2021
f84a734
Rollup merge of #87614 - notriddle:notriddle-count2len, r=Mark-Simula…
matthiaskrgr Dec 7, 2021
42d0f83
Rollup merge of #91065 - wesleywiser:add_incr_test, r=jackh726
matthiaskrgr Dec 7, 2021
57ae43d
Rollup merge of #91312 - terrarier2111:anon-const-ice, r=jackh726
matthiaskrgr Dec 7, 2021
677f878
Rollup merge of #91341 - scottmcm:array-iter-frp, r=kennytm
matthiaskrgr Dec 7, 2021
dd929ae
Rollup merge of #91493 - oli-obk:cleanup, r=michaelwoerister
matthiaskrgr Dec 7, 2021
a8f47dc
Rollup merge of #91503 - estebank:call-fn-span, r=michaelwoerister
matthiaskrgr Dec 7, 2021
1c2fba6
Rollup merge of #91547 - TennyZhuang:suggest_try_reserve, r=scottmcm
matthiaskrgr Dec 7, 2021
b2dcfdd
Rollup merge of #91562 - dtolnay:asyncspace, r=Mark-Simulacrum
matthiaskrgr Dec 7, 2021
a3a1402
Rollup merge of #91620 - ehuss:update-books, r=ehuss
matthiaskrgr Dec 7, 2021
099412e
Rollup merge of #91622 - lnicola:rust-analyzer-2021-12-07, r=lnicola
matthiaskrgr Dec 7, 2021
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
doc: suggest try_reserve in try_reserve_exact
Signed-off-by: TennyZhuang <zty0826@gmail.com>
  • Loading branch information
TennyZhuang committed Dec 5, 2021
commit aa3370c92be12d04db6a99c92044c56d453f94df
4 changes: 2 additions & 2 deletions library/alloc/src/collections/vec_deque/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -720,9 +720,9 @@ impl<T, A: Allocator> VecDeque<T, A> {
///
/// Note that the allocator may give the collection more space than it
/// requests. Therefore, capacity can not be relied upon to be precisely
/// minimal. Prefer [`reserve`] if future insertions are expected.
/// minimal. Prefer [`try_reserve`] if future insertions are expected.
///
/// [`reserve`]: VecDeque::reserve
/// [`try_reserve`]: VecDeque::try_reserve
///
/// # Errors
///
Expand Down
4 changes: 2 additions & 2 deletions library/alloc/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1044,9 +1044,9 @@ impl String {
///
/// Note that the allocator may give the collection more space than it
/// requests. Therefore, capacity can not be relied upon to be precisely
/// minimal. Prefer [`reserve`] if future insertions are expected.
/// minimal. Prefer [`try_reserve`] if future insertions are expected.
///
/// [`reserve`]: String::reserve
/// [`try_reserve`]: String::try_reserve
///
/// # Errors
///
Expand Down
4 changes: 2 additions & 2 deletions library/alloc/src/vec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -881,9 +881,9 @@ impl<T, A: Allocator> Vec<T, A> {
///
/// Note that the allocator may give the collection more space than it
/// requests. Therefore, capacity can not be relied upon to be precisely
/// minimal. Prefer [`reserve`] if future insertions are expected.
/// minimal. Prefer [`try_reserve`] if future insertions are expected.
///
/// [`reserve`]: Vec::reserve
/// [`try_reserve`]: Vec::try_reserve
///
/// # Errors
///
Expand Down