summary refs log tree commit diff
path: root/src/test/ui/hygiene/unpretty-debug.stdout
AgeCommit message (Collapse)AuthorLines
2021-12-01Pretty print empty blocks as {}David Tolnay-1/+1
2021-07-17Use LocalExpnId where possible.Camille GILLOT-4/+4
2021-07-10rustc_span: Revert addition of `proc_macro` field to `ExpnKind::Macro`Vadim Petrochenkov-1/+1
The flag has a vague meaning and is used for a single diagnostic change that is low benefit and appears only under `-Z macro_backtrace`.
2021-07-03rustc_ast_pretty: Don't print space after `$`Noah Lev-1/+1
For example, this code: $arg:expr used to be pretty-printed as: $ arg : expr but is now pretty-printed as: $arg : expr
2021-05-12Update stderrAaron Hill-1/+1
The spans generated by `quote!` are (intentionally) no longer all the same, so I removed that check entirely.
2020-07-15Add and use more static symbols.Nicholas Nethercote-1/+4
Note that the output of `unpretty-debug.stdout` has changed. In that test the hash values are normalized from a symbol numbers to small numbers like "0#0" and "0#1". The increase in the number of static symbols must have caused the original numbers to contain more digits, resulting in different pretty-printing prior to normalization.
2020-06-29Serialize all foreign `SourceFile`s into proc-macro crate metadataAaron Hill-2/+2
Normally, we encode a `Span` that references a foreign `SourceFile` by encoding information about the foreign crate. When we decode this `Span`, we lookup the foreign crate in order to decode the `SourceFile`. However, this approach does not work for proc-macro crates. When we load a proc-macro crate, we do not deserialzie any of its dependencies (since a proc-macro crate can only export proc-macros). This means that we cannot serialize a reference to an upstream crate, since the associated metadata will not be available when we try to deserialize it. This commit modifies foreign span handling so that we treat all foreign `SourceFile`s as local `SourceFile`s when serializing a proc-macro. All `SourceFile`s will be stored into the metadata of a proc-macro crate, allowing us to cotinue to deserialize a proc-macro crate without needing to load any of its dependencies. Since the number of foreign `SourceFile`s that we load during a compilation session may be very large, we only serialize a `SourceFile` if we have also serialized a `Span` which requires it.
2020-06-22Revert "Rollup merge of #72389 - Aaron1011:feature/move-fn-self-msg, ↵Aaron Hill-4/+0
r=nikomatsakis" This reverts commit 372cb9b69c76a042d0b9d4b48ff6084f64c84a2c, reversing changes made to 5c61a8dc34c3e2fc6d7f02cb288c350f0233f944.
2020-06-11Explain move errors that occur due to method calls involving `self`Aaron Hill-0/+4
2019-10-18Change how `Symbol::Debug` works.Nicholas Nethercote-1/+1
Currently, `Symbol::Debug` and `Symbol::Display` produce the same output; neither wraps the symbol in double quotes. This commit changes `Symbol::Debug` so it wraps the symbol in quotes. This change brings `Symbol`'s behaviour in line with `String` and `InternedString`. The change requires a couple of trivial test output adjustments.
2019-09-17Print syntax contexts and marks when printing hygiene informationMatthew Jasper-0/+10
2019-07-16Make pretty-expanded-hygiene a `ui` testMatthew Jasper-0/+15
`normalize-stdout-test` removes the need for Make, and it can be updated with `--bless` this way