]> git.lizzy.rs Git - rust.git/commit
expand: Get rid of `resolve_macro_path`
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Fri, 28 Jun 2019 23:30:53 +0000 (02:30 +0300)
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Wed, 10 Jul 2019 21:12:07 +0000 (00:12 +0300)
commita138e9d625bf83c45d3835b12d7689b730dc4e9a
tree408540b0a11f8f3f63e86892b9d40e31aa393b3b
parent62a1f5dbc0bbcf875b21dce643ae8b2ae971c74e
expand: Get rid of `resolve_macro_path`

It was used to choose whether to apply derive markers like `#[rustc_copy_clone_marker]` or not,
but it was called before all the data required for resolution is available, so it could work incorrectly in some corner cases (like user-defined derives name `Copy` or `Eq`).
Delay the decision about markers until the proper resolution results are available instead.
src/librustc_resolve/macros.rs
src/libsyntax/ext/base.rs
src/libsyntax/ext/expand.rs