rust/src/test
bors 6331023708 Auto merge of #79294 - petrochenkov:determ, r=varkor
resolve: Do not put macros into `module.unexpanded_invocations` unless necessary

Macro invocations in modules <sup>(*)</sup> need to be tracked because they can produce named items when expanded.
We cannot give definite answer to queries like "does this module declare name `n`?" until all macro calls in that module are expanded.

Previously we marked too many macros as potentially producing named items.
E.g. in this example
```rust
mod m {
    const C: u32 = line!();
}
```
`line!()` cannot emit any items into module `m`, but it was still marked.
This PR fixes that and marks macro calls as "unexpanded in module" only if they can actually emit named items into that module.

Diagnostics in UI test outputs have different order now because this change affects macro expansion order.

<sup>*</sup> Any containers for named items are called modules in resolve (that includes blocks, traits and enums in addition to `mod` items).
2020-11-24 09:17:33 +00:00
..
assembly Add asm! support for mips64 2020-10-04 12:01:21 +00:00
auxiliary
codegen Auto merge of #78439 - lzutao:rm-clouldabi, r=Mark-Simulacrum 2020-11-23 19:01:19 +00:00
codegen-units simplify-locals: Remove unused assignments regardless of rvalue kind 2020-10-26 10:48:28 +01:00
compile-fail change error for LayoutErr::SizeOverflow 2020-11-18 11:38:30 +01:00
debuginfo Auto merge of #78461 - TimDiekmann:vec-alloc, r=Amanieu 2020-11-21 22:46:50 +00:00
incremental Remove FIXME comment from incremental 2020-11-20 21:33:48 +09:00
mir-opt Qualify panic! as core::panic! in non-built-in core macros 2020-11-23 11:28:25 -08:00
pretty fix pretty print for qpath 2020-11-12 12:47:25 +01:00
run-make Auto merge of #76256 - tgnottingham:issue-74890, r=nikomatsakis 2020-11-12 15:34:09 +00:00
run-make-fulldeps Fix and re-enable two coverage tests on MacOS 2020-11-11 22:54:58 -08:00
run-pass-valgrind Drop support for cloudabi targets 2020-11-22 17:11:41 -05:00
rustdoc Auto merge of #78461 - TimDiekmann:vec-alloc, r=Amanieu 2020-11-21 22:46:50 +00:00
rustdoc-js Add test for whitespace in doc alias 2020-10-05 16:37:13 +02:00
rustdoc-js-std
rustdoc-ui x.py test --bless 2020-11-21 11:08:58 -05:00
rustfix
ui Auto merge of #79294 - petrochenkov:determ, r=varkor 2020-11-24 09:17:33 +00:00
ui-fulldeps Revert "Auto merge of #79132 - pietroalbini:beta-next, r=Mark-Simulacrum" 2020-11-18 11:18:40 +01:00
COMPILER_TESTS.md