8000 Rollup of 6 pull requests by matthiaskrgr · Pull Request #93085 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

Rollup of 6 pull requests #93085

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 32 commits into from
Jan 20, 2022
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
a043acd
change PhantomData type for BuildHasherDefault
steffahn Jan 6, 2022
731bbae
Also change PhantomData parameter of iter::Empty, and future::Pending
steffahn Jan 7, 2022
6a1f9e6
mangling_v0: Update tests for the rust-demangler tool
petrochenkov Dec 26, 2021
1b8daf8
mangling_v0: Add a test for mangling of foreign types
petrochenkov Dec 27, 2021
333a5cc
mangling_v0: Skip extern blocks during mangling
petrochenkov Dec 27, 2021
3c0fb7f
Add manifest docs fallback.
ehuss Jan 12, 2022
52fdd2d
Remove VERSION from manifest readme docs.
ehuss Jan 12, 2022
6a1099c
Disable docs on aarch64-apple-darwin.
ehuss Jan 18, 2022
fdb95f5
Inline Printer's advance_right method
dtolnay Jan 19, 2022
e219b2b
Inline Printer's scan_push method
dtolnay Jan 19, 2022
50d722a
Simplify ring buffer pushes
dtolnay Jan 19, 2022
e20d5ab
Inline Printer's scan_pop method
dtolnay Jan 19, 2022
2a14275
Inline Printer's scan_top method
dtolnay Jan 19, 2022
ae28ec5
Inline Printer's scan_pop_bottom method
dtolnay Jan 19, 2022
80139a0
Ensure Printer buf is always indexed using self.left or self.right
dtolnay Jan 19, 2022
947a09a
Replace `if` + `unwrap` with `if let` in check_stack
dtolnay Jan 19, 2022
0490e43
Implement check_stream nonrecursively
dtolnay Jan 19, 2022
a37d272
Implement check_stack nonrecursively
dtolnay Jan 19, 2022
377c9db
Index a single time in check_stack
dtolnay Jan 19, 2022
fe5c4ea
Eliminate a check_stack call on an empty scan stack
dtolnay Jan 19, 2022
6e8b060
Simplify the buffer push done by scan_break
dtolnay Jan 19, 2022
cc66a7f
Eliminate eof token state
dtolnay Jan 19, 2022
4d3faae
Eliminate left and right cursors in favor of ring buffer
dtolnay Jan 19, 2022
48f5dca
Move back templates into html folder
GuillaumeGomez Jan 17, 2022
4bd571c
remove `is_noop`
lcnr Jan 19, 2022
c8e6889
Add assert that fallback targets must be available.
ehuss Jan 19, 2022
715cda2
Rollup merge of #92316 - petrochenkov:extmangle, r=wesleywiser
matthiaskrgr Jan 19, 2022
dfbb6b2
Rollup merge of #92630 - steffahn:lift_bounds_on_BuildHasherDefault, …
matthiaskrgr Jan 19, 2022
bcb093e
Rollup merge of #92800 - ehuss:docs-fallback, r=Mark-Simulacrum
matthiaskrgr Jan 19, 2022
623791d
Rollup merge of #93005 - GuillaumeGomez:templates-in-html, r=notriddle
matthiaskrgr Jan 19, 2022
fe93f08
Rollup merge of #93065 - dtolnay:ringbuffer, r=lcnr
matthiaskrgr Jan 19, 2022
43d508b
Rollup merge of #93077 - lcnr:write_substs, r=oli-obk
matthiaskrgr Jan 19, 2022
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
Inline Printer's scan_pop_bottom method
  • Loading branch information
dtolnay committed Jan 19, 2022
commit ae28ec5a9c09b0ea163ccdff26b5650d4d0ea3c0
6 changes: 1 addition & 5 deletions compiler/rustc_ast_pretty/src/pp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ impl Printer {
fn check_stream(&mut self) {
if self.right_total - self.left_total > self.space {
if Some(&self.left) == self.scan_stack.back() {
let scanned = self.scan_pop_bottom();
let scanned = self.scan_stack.pop_back().unwrap();
self.buf[scanned].size = SIZE_INFINITY;
}
self.advance_left();
Expand All @@ -347,10 +347,6 @@ impl Printer {
}
}

fn scan_pop_bottom(&mut self) -> usize {
self.scan_stack.pop_back().unwrap()
}

fn advance_left(&mut self) {
let mut left_size = self.buf[self.left].size;

Expand Down
0