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 9 pull requests #99735

Merged
merged 28 commits into from
Jul 26, 2022
Merged
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6c3ca7e
correct the output of a `capacity` method example
kiscad Jun 30, 2022
f6247ff
clarify how write_bytes can lead to UB due to invalid values
RalfJung Jul 9, 2022
2e0ca94
add a concrete example
RalfJung Jul 9, 2022
eed5df5
typo
RalfJung Jul 11, 2022
1b3870e
remove a dubious example
RalfJung Jul 11, 2022
c0e4230
simplify some code that depend on Deref
ouz-a May 11, 2022
c3e1e7a
simplify more, ret_deref -> has_deref
ouz-a May 16, 2022
447aace
has_deref: simpler comparison, ty fix
ouz-a May 16, 2022
9f00d83
make sure has_deref is correct
ouz-a Jul 24, 2022
9fc5463
Constify a few const `(Partial)Ord` impls
fee1-dead Dec 29, 2021
a89510e
Add issue numbers
fee1-dead Dec 29, 2021
65fca6d
add const hack comment
fee1-dead Jan 14, 2022
f80bf10
don't ICE on invalid dyn calls
RalfJung Jul 24, 2022
63e74ab
Expose size_hint() for TokenStream's iterator
dtolnay Jul 25, 2022
0c6c69f
`Inherited` always has `TypeckResults` available
lcnr Jul 25, 2022
202e32a
Fix sidebar background-color on mobile
GuillaumeGomez Jul 25, 2022
8db7249
Add GUI test to prevent sidebar background regression
GuillaumeGomez Jul 25, 2022
68b433a
Lighten up const_prop_lint, reusing const_prop
Dajamante Jul 12, 2022
e651829
removed CanConstProp + Visitor
Dajamante Jul 25, 2022
c1647e1
Rollup merge of #92390 - fee1-dead-contrib:const_cmp, r=oli-obk
JohnTitor Jul 25, 2022
2989275
Rollup merge of #97077 - ouz-a:Optimize-backend, r=oli-obk
JohnTitor Jul 25, 2022
b8aab97
Rollup merge of #98710 - mojave2:string, r=JohnTitor
JohnTitor Jul 25, 2022
aeca079
Rollup merge of #99084 - RalfJung:write_bytes, r=thomcc
JohnTitor Jul 25, 2022
74be487
Rollup merge of #99178 - Dajamante:clean_up, r=oli-obk
JohnTitor Jul 25, 2022
2973b00
Rollup merge of #99673 - RalfJung:interpret-invalid-dyn, r=oli-obk
JohnTitor Jul 25, 2022
5bbdf65
Rollup merge of #99703 - dtolnay:tokenstreamsizehint, r=petrochenkov
JohnTitor Jul 25, 2022
b37b39d
Rollup merge of #99709 - lcnr:rm-MaybeTypeckResults, r=compiler-errors
JohnTitor Jul 25, 2022
e58bfac
Rollup merge of #99713 - GuillaumeGomez:fix-sidebar-background, r=not…
JohnTitor Jul 25, 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
8 changes: 8 additions & 0 deletions library/proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
@@ -382,6 +382,14 @@ pub mod token_stream {
bridge::TokenTree::Literal(tt) => TokenTree::Literal(Literal(tt)),
})
}

fn size_hint(&self) -> (usize, Option<usize>) {
self.0.size_hint()
}

fn count(self) -> usize {
self.0.count()
}
}

#[stable(feature = "proc_macro_lib2", since = "1.29.0")]