about summary refs log tree commit diff
path: root/src/test/ui/proc-macro/dollar-crate-issue-62325.stdout
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-110/+0
2022-10-04Improve spans when splitting multi-char operator tokens for proc macros.Nicholas Nethercote-4/+4
2021-05-15Remove some unncessary spaces from pretty-printed tokenstream outputAaron Hill-2/+2
In addition to making the output look nicer for all crates, this also aligns the pretty-printing output with what the `rental` crate expects. This will allow us to eventually disable a backwards-compat hack in a follow-up PR.
2020-09-12Properly encode spans with a dummy location and non-root `SyntaxContext`Aaron Hill-22/+22
Previously, we would throw away the `SyntaxContext` of any span with a dummy location during metadata encoding. This commit makes metadata Span encoding consistent with incr-cache Span encoding - an 'invalid span' tag is only used when it doesn't lose any information.
2020-08-09Remove normalization of `Span` debug output in proc-macro testsAaron Hill-22/+22
Fixes #74800 The definition of `is_x86_feature_detected!` (and similar macros) depends on the platform - it is produced by a `cfg_if!` invocation on x86, and a plain `#[cfg]` on other platforms. Since it is part of the prelude, we will end up importing different hygiene information depending on the platform. This previously required us to avoid printing raw `SyntaxContext` ids in any tests that uses the standard library, since the captured output will be platform-dependent. Previously, we replaced all `SyntaxContext` ids with "#CTXT", and the raw `Span` lo/hi bytes with "LO..HI". This commit adds `#![no_std]` and `extern crate std` to all proc-macro tests that print spans. This suppresses the prelude import, while still using lang items from `std` (which gives us a buildable binary). With this apporach, we will only load hygiene information for things which we explicitly import. This lets us re-add `-Z unpretty=expanded,hygiene`, since its output can now be made stable across all platforms. Additionally, we use `-Z span-debug` in more places, which lets us avoid the "LO..HI" normalization hack.
2020-07-26Normalize the test output of hygiene-related testsAaron Hill-22/+22
A raw SyntaxContext id is implicitly dependent on the target platform, since libstd and libcore have platform-dependent #[cfg]s which affect which macros are invoked. As a result, we must strip out any SyntaxContext ids from test output to ensure that the captured stdout is not platform-dependent.
2020-07-26Hygiene serialization implementationAaron Hill-22/+22
2020-07-01expand: Stop using nonterminals for passing tokens to attribute and derive ↵Vadim Petrochenkov-4/+2
macros
2020-03-17Update pretty testsGuillaume Gomez-2/+2
2019-10-03proc_macro: Add `Span::mixed_site` exposing `macro_rules` hygieneVadim Petrochenkov-11/+11
2019-09-05Add `with_{def_site,call_site,legacy}_ctxt,` methods to `Span`Vadim Petrochenkov-22/+22
Use these to create call-site spans for AST passes when needed.
2019-07-15pprust: Use `print_mac_common` for delimited token groupsVadim Petrochenkov-2/+2
2019-07-11pretty-print: Do not lose the `$crate` printing flag in `print_tt`Vadim Petrochenkov-2/+2
2019-07-09Add a test case with `$crate` from other crateVadim Petrochenkov-0/+56
2019-07-09Resolve `$crate` in all hygienic contexts for pretty-pringingVadim Petrochenkov-19/+14
Stop visiting AST to discover those contexts, just iterate through hygiene data instead
2019-07-09Add a test for `$crate` inside macro invocationVadim Petrochenkov-0/+61