]> git.lizzy.rs Git - rust.git/commit
Remove `MacroKind::ProcMacroStub`
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Tue, 18 Jun 2019 19:23:13 +0000 (22:23 +0300)
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Wed, 10 Jul 2019 21:12:07 +0000 (00:12 +0300)
commit48635226d8d71f18b09ea40f5cdbe34dbaaf378f
tree18c6d28bd7c6eecd2ebdfff76834f07d9947ad44
parentc6a9e766f90a5271c2356fbc7941e38559200ab5
Remove `MacroKind::ProcMacroStub`

It's internal to resolve and always results in `Res::Err` outside of resolve.
Instead put `DefKind::Fn`s themselves into the macro namespace, it's ok.

Proc macro stubs are items placed into macro namespase for functions that define proc macros.
https://github.com/rust-lang/rust/pull/52383

The rustdoc test is changed because the old test didn't actually reproduce the ICE it was supposed to reproduce.
src/librustc/ich/impls_syntax.rs
src/librustc_resolve/build_reduced_graph.rs
src/librustc_resolve/macros.rs
src/librustdoc/clean/mod.rs
src/librustdoc/html/item_type.rs
src/librustdoc/html/render.rs
src/librustdoc/passes/collect_intra_doc_links.rs
src/librustdoc/visit_ast.rs
src/libsyntax/ext/base.rs
src/test/rustdoc/proc-macro.rs