aboutsummaryrefslogtreecommitdiff
path: root/tests/test.rs
AgeCommit message (Collapse)Author
2021-06-21Upgrade rust/crates/proc-macro2 to 1.0.27Joel Galenson
Test: make Change-Id: I66869c4d506555c12bd054d731e818b2aafa6720
2021-04-01Upgrade rust/crates/proc-macro2 to 1.0.26Elliott Hughes
Test: make Change-Id: Iccb8f35110814aa6ff1430a6f1382865cdc96f81
2020-10-26Upgrade rust/crates/proc-macro2 to 1.0.24Chih-Hung Hsieh
Test: make Change-Id: I7dc9b736c5e3fbda483c73c222fb1e5c6e1f3261
2020-09-25Upgrade rust/crates/proc-macro2 to 1.0.22Haibo Huang
Test: make Change-Id: I4e5c3b7decadba6dae1687c73d6e336b8cc55e9a
2020-06-01Upgrade rust/crates/proc-macro2 to 1.0.18Haibo Huang
Change-Id: I2e474c5ade42619065e92227367d0588a936c43c
2020-05-27Upgrade rust/crates/proc-macro2 to 1.0.17Chih-Hung Hsieh
* Add new test case into Android.bp and TEST_MAPPING. * Remove optional relative_install_path in Android.bp. * Fix missing dependency error in Android.bp. Test: make Test: atest --host --rebuild-module-info -c --include-subdirs external/rust Change-Id: I684f2dd5e1ff4de630b031c9e135990ed63e04a1
2020-05-15Upgrade rust/crates/proc-macro2 to 1.0.13Haibo Huang
Test: None Change-Id: I381957d40d3f8b94d168ebdc1dd31eb4f024b22d
2020-05-01Upgrade rust/crates/proc-macro2 to 1.0.12Haibo Huang
Test: None Change-Id: I29a2c259837c3d4306c930241a77a1fba33dc9d5
2019-08-11Accept arbitrary lit suffixesDavid Tolnay
2019-07-19Update to 2018 editionDavid Tolnay
2019-04-22Avoid needless escape of quotesDavid Tolnay
2019-04-20Rename private functions to match rename of Term to IdentDavid Tolnay
2019-04-10Add trailing commas in test_debug_tokenstreamDavid Tolnay
2019-01-28Expose span locations on stableDavid Tolnay
2019-01-05Infer nightly feature on nightly toolchainDavid Tolnay
Before this commit, enabling procmacro2_semver_exempt would disable wrap_proc_macro, meaning that real spans would not be preserved by proc macros. One would also need to enable the "nightly" feature in order to preserve spans when using procmacro2_semver_exempt. This commit automatically enables wrap_proc_macro when building with procmacro2_semver_exempt on a nightly compiler.
2018-11-11Remove proc_macro2::FileName in favor of PathBufDavid Tolnay
2018-07-14impl Default for TokenStreamÁrpád Goretity
2018-06-02Do not test nightly's debug formatDavid Tolnay
2018-06-02Simplify Debug representation of IdentDavid Tolnay
2018-05-18Format with rustfmt 0.7.0David Tolnay
2018-05-17Parse `_` as an identAlex Crichton
Technically a breaking change but 0.4 is so new I'm tempted to leave this as 0.4.1 Closes #87
2018-05-16Track upstream proc_macro changesAlex Crichton
* Rename `Term` to `Ident` * Rename `Punct` to `Op` * Remove `Term::as_str` * Rename `Op::op` to `Punct::as_char` * `Term::new` no longer accepts lifetimes or raw idents * Lifetimes are lexed as a `Joint` `'` character followed by an `Ident` * `Ident::new_raw` is a new `procmacro2_semver_exempt` API for creating raw identifiers.
2018-04-23Format with rustfmt 0.4.2David Tolnay
2018-04-23Merge pull request #79 from alexcrichton/debugAlex Crichton
Improve Debug representations
2018-04-22Fix spacing of op followed by commentDavid Tolnay
2018-04-22Improve Debug representationsDavid Tolnay
2018-04-07Validate input in Term::newDavid Tolnay
2018-04-04Lex doc comments as attributesAlex Crichton
This means they no longer round trip but it should be more faithful to what macro_rules! is doing Closes #73
2018-03-31Format with rustfmt 0.4.1David Tolnay
2018-03-31Support raw identifiersDavid Tolnay
2018-03-31Fix typo in test nameDavid Tolnay
2018-03-29Reimplement public interface for stabilityAlex Crichton
More information to come later about this, but this is a result of the work week discussions we've had about stabilizing procedural macros
2018-01-25Allow doc comments to be terminated with EOFAlex Crichton
Closes #61
2018-01-21Add a special case for empty `/*` commentsAlex Crichton
Looks like they didn't fall into quite the right position! Closes #57
2018-01-16Fix a panic in `cooked_byte` on utf-8 charsAlex Crichton
Don't want to slice on the wrong boundary! Closes #54
2018-01-05Ensure that float literal is always formatted as floating pointDavid Tolnay
2018-01-02Rename procmacro2_unstable to procmacro2_semver_exemptDavid Tolnay
2018-01-02Rename `unstable` feature to `nightly`David Tolnay
2017-12-31Support rust 1.15.0David Tolnay
2017-12-31Merge pull request #36 from mystor/stable_spanAlex Crichton
Support meaningful spans in the stable version of proc-macro2
2017-12-30Move span tests behind a procmacro2_unstable feature flagNika Layzell
2017-12-25Lex underscore in unicode escapesDavid Tolnay
2017-12-12Remove some unnecessary eprintln logging callsNika Layzell
2017-12-11Add some tests for the join methodNika Layzell
2017-12-11Initial implementation of stable meaningful spansNika Layzell
2017-07-05Update to rust-lang/rust's proc_macro APIAlex Crichton
2017-06-01Move tests out of stable moduleDavid Tolnay
In the future this will help test that stable and unstable expose the same API.