about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-08-22 15:00:19 -0400
committerJoshua Nelson <jyn514@gmail.com>2020-08-23 22:40:20 -0400
commit47b8a5258df2e8ca59bf989b2dca2f1619e24092 (patch)
treed60d8b88740bdd46078d478d8f4e15b8238f34d6 /compiler/rustc_codegen_llvm/src
parent8fdce9bbb9eb25defd9429cc5122fe6eb59f5ffd (diff)
downloadrust-47b8a5258df2e8ca59bf989b2dca2f1619e24092.tar.gz
rust-47b8a5258df2e8ca59bf989b2dca2f1619e24092.zip
Report an ambiguity if both modules and primitives are in scope
- Add a new `prim@` disambiguator, since both modules and primitives are
in the same namespace
- Refactor `report_ambiguity` into a closure

Additionally, I noticed that rustdoc would previously allow
`[struct@char]` if `char` resolved to a primitive (not if it had a
DefId). I fixed that and added a test case.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions