about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-02-04 21:51:50 +0100
committerGitHub <noreply@github.com>2020-02-04 21:51:50 +0100
commit48ea0fa416077e89f036c5081020730a7743df88 (patch)
tree00fe341a535b9fb9ee18ba4ab70f6f40a993768c /src/test/debuginfo/enum-thinlto.rs
parent1921fc099403a2d1bc030771a9976573339d9ec5 (diff)
parent152811d8bf389fce7328ba7bc50c26c34afb0d81 (diff)
downloadrust-48ea0fa416077e89f036c5081020730a7743df88.tar.gz
rust-48ea0fa416077e89f036c5081020730a7743df88.zip
Rollup merge of #68758 - daboross:fix-59191, r=petrochenkov
Fix 59191 - ICE when macro replaces crate root with non-module item

Hi,

This should fix #59191! My friend and I are working on learning the rustc codebase through contributions, so please feel free to mention anything amiss or that could be done better.

The code adds an explicit case for when a macro applied to the crate root (via an inner attribute) replaces it with something nonsensical, like a function. The crate root must be a module, and the error message reflects this.

---

I should note that there are a few other weird edge cases here, like if they do output a module, it succeeds but uses that module's name as a prefix for all names in the crate. I'm assuming that's an issue for stabilizing #54726, though.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions