summary refs log tree commit diff
path: root/library/proc_macro/src/lib.rs
AgeCommit message (Collapse)AuthorLines
2021-04-29don't let const_fn feature flag affect impl-block-level trait boundsRalf Jung-1/+2
2021-02-19`impl PartialEq<Punct> for char`; symmetry for #78636Alexander Ronald Altman-1/+8
Also fixes the "since" version of the original.
2020-12-30Bump bootstrap compiler to 1.50 betaMark Rousskov-2/+1
2020-11-25Auto merge of #79336 - camelid:rename-feature-oibit-to-auto, r=oli-obkbors-1/+2
Rename `optin_builtin_traits` to `auto_traits` They were originally called "opt-in, built-in traits" (OIBITs), but people realized that the name was too confusing and a mouthful, and so they were renamed to just "auto traits". The feature flag's name wasn't updated, though, so that's what this PR does. There are some other spots in the compiler that still refer to OIBITs, but I don't think changing those now is worth it since they are internal and not particularly relevant to this PR. Also see <https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/opt-in.2C.20built-in.20traits.20(auto.20traits).20feature.20name>. r? `@oli-obk` (feel free to re-assign if you're not the right reviewer for this)
2020-11-24Auto merge of #78636 - dtolnay:puncteq, r=petrochenkovbors-0/+7
Add PartialEq<char> for proc_macro::Punct `punct.as_char() == '░'` is pervasive when parsing anything involving punct. I think `punct == '░'` is sufficiently unambiguous that it makes sense to provide the impl. https://github.com/rust-lang/rust/blob/1899c489d4c30b2640d30b77ac04f0a548834d81/library/proc_macro/src/quote.rs#L79 https://github.com/rust-lang/rust/blob/1899c489d4c30b2640d30b77ac04f0a548834d81/library/proc_macro/src/quote.rs#L83 https://github.com/rust-lang/rust/blob/1899c489d4c30b2640d30b77ac04f0a548834d81/src/test/ui/suggestions/auxiliary/issue-61963.rs#L26 https://github.com/rust-lang/rust/blob/1899c489d4c30b2640d30b77ac04f0a548834d81/src/test/ui/proc-macro/auxiliary/three-equals.rs#L23
2020-11-23Rename `optin_builtin_traits` to `auto_traits`Camelid-1/+2
They were originally called "opt-in, built-in traits" (OIBITs), but people realized that the name was too confusing and a mouthful, and so they were renamed to just "auto traits". The feature flag's name wasn't updated, though, so that's what this PR does. There are some other spots in the compiler that still refer to OIBITs, but I don't think changing those now is worth it since they are internal and not particularly relevant to this PR. Also see <https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/opt-in.2C.20built-in.20traits.20(auto.20traits).20feature.20name>.
2020-11-19Bump bootstrap compiler versionJake Goulding-1/+1
2020-11-05Rollup merge of #78465 - est31:proc_macro_to_string, r=jyn514Mara Bos-1/+1
Change as_str → to_string in proc_macro::Ident::span() docs There is no `as_str` function on Ident any more. Also change it to an intra doc link while we're at it.
2020-11-01Add PartialEq<char> for proc_macro::PunctDavid Tolnay-0/+7
2020-10-29Change as_str → to_string in proc_macro::Ident::span() docsest31-1/+1
There is no `as_str` function on Ident any more. Also change it to an intra doc link while we're at it.
2020-10-21switch allow_internal_unstable const fns to rustc_allow_const_fn_unstableFlorian Warzecha-0/+1
2020-10-07Bump to 1.48 bootstrap compilerMark Rousskov-1/+1
2020-09-27Add a feature gate for basic function pointer use in `const fn`Dylan MacKenzie-0/+1
2020-09-22Update library functions with stability attributesDylan MacKenzie-0/+1
This may not be strictly minimal, but all unstable functions also need a `rustc_const_unstable` attribute.
2020-08-22Use intra-doc link in `proc_macro`LeSeulArtichaut-1/+1
2020-08-03Stabilize Ident::new_rawAaron Hill-2/+5
Tracking issue: #54723 This is a continuation of PR #59002
2020-07-31Stabilize as_deref and as_deref on ResultLzu Tao-1/+0
2020-07-27mv std libs to library/mark-0/+1183