Skip to content

Rollup of 10 pull requests #82330

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

Closed
wants to merge 35 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
f165f49
Slight perf improvement on char::to_ascii_lowercase
gilescope Feb 6, 2021
f30c51a
Pulling out constant.
gilescope Feb 6, 2021
cadcf5e
Unify way to flip 6th bit. (Same assembly generated)
gilescope Feb 8, 2021
0060c91
Make WASI's `hard_link` behavior match other platforms.
sunfishcode Feb 11, 2021
daa55ac
Slightly more explicit
gilescope Feb 12, 2021
eace240
use option<PlaceRef<'tcx>> to clean up mir code a little
henryboisdequin Feb 14, 2021
33d8b04
Move const def nearer usage.
gilescope Feb 14, 2021
c675af8
Add internal `collect_into_array[_unchecked]` to remove duplicate code
LukasKalbertodt Feb 14, 2021
30c5125
update formating
henryboisdequin Feb 16, 2021
5ec4b06
make `visit_projection` take a `PlaceRef`
henryboisdequin Feb 16, 2021
b08bc78
fix MIR fn-ptr pretty-printing
RalfJung Feb 16, 2021
5fd1ebe
Fix panic in 'remove semicolon' when types are not local
osa1 Feb 11, 2021
ad47fb1
Check opaque type def ids before bailing out
osa1 Feb 11, 2021
15fdccc
Update 'match-prev-arm-needing-semi'
osa1 Feb 11, 2021
9ef67e0
Add regression test
osa1 Feb 18, 2021
343b673
Consider auto derefs before warning about write only fields
tmiasko Feb 19, 2021
48b5c09
add s390x-unknown-linux-musl target
kaniini Feb 16, 2021
597118b
add s390x-unknown-linux-musl target to platform support
kaniini Feb 16, 2021
62ee3ec
remove checkboxes from s390x-unknown-linux-musl triplet
kaniini Feb 19, 2021
1abcdfe
x.py fmt
sunfishcode Feb 19, 2021
0fddc2f
Support `pub` on `macro_rules`
petrochenkov Oct 20, 2020
b3000ec
Update pub_macro_rules since version
spastorino Feb 19, 2021
1839748
`impl PartialEq<Punct> for char`; symmetry for #78636
pthariensflame Jan 1, 2021
e906745
fn ptr pretty printing: fall back to raw ptr printing
RalfJung Feb 20, 2021
a9c6188
make `super_projection` take a `PlaceRef`
henryboisdequin Feb 20, 2021
e37adf5
Rollup merge of #80595 - pthariensflame:patch-1, r=m-ou-se
Dylan-DPC Feb 20, 2021
6468333
Rollup merge of #81837 - gilescope:to_ascii_speedups, r=dtolnay
Dylan-DPC Feb 20, 2021
b7b2d58
Rollup merge of #81984 - sunfishcode:wasi-link, r=alexcrichton
Dylan-DPC Feb 20, 2021
71ee3c8
Rollup merge of #81991 - osa1:issue81839, r=estebank
Dylan-DPC Feb 20, 2021
06e04fd
Rollup merge of #82091 - henryboisdequin:use-place-ref-more, r=RalfJung
Dylan-DPC Feb 20, 2021
bb89479
Rollup merge of #82098 - LukasKalbertodt:add-collect-into-array, r=dt…
Dylan-DPC Feb 20, 2021
886e995
Rollup merge of #82166 - kaniini:s390x-musl-target, r=nagisa
Dylan-DPC Feb 20, 2021
7109440
Rollup merge of #82176 - RalfJung:mir-fn-ptr-pretty, r=oli-obk
Dylan-DPC Feb 20, 2021
50272eb
Rollup merge of #82296 - spastorino:pubrules, r=nikomatsakis
Dylan-DPC Feb 20, 2021
3b80aef
Rollup merge of #82297 - tmiasko:write-only, r=oli-obk
Dylan-DPC Feb 20, 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
9 changes: 8 additions & 1 deletion library/proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -842,13 +842,20 @@ impl fmt::Debug for Punct {
}
}

#[stable(feature = "proc_macro_punct_eq", since = "1.49.0")]
#[stable(feature = "proc_macro_punct_eq", since = "1.50.0")]
impl PartialEq<char> for Punct {
fn eq(&self, rhs: &char) -> bool {
self.as_char() == *rhs
}
}

#[stable(feature = "proc_macro_punct_eq_flipped", since = "1.52.0")]
impl PartialEq<Punct> for char {
fn eq(&self, rhs: &Punct) -> bool {
*self == rhs.as_char()
}
}

/// An identifier (`ident`).
#[derive(Clone)]
#[stable(feature = "proc_macro_lib2", since = "1.29.0")]
Expand Down