]> git.lizzy.rs Git - rust.git/commit
Auto merge of #62705 - petrochenkov:oh-bye-mark, r=matthewjasper
authorbors <bors@rust-lang.org>
Fri, 19 Jul 2019 21:11:23 +0000 (21:11 +0000)
committerbors <bors@rust-lang.org>
Fri, 19 Jul 2019 21:11:23 +0000 (21:11 +0000)
commit5c26b523686497a46d10104c7295f366099a298c
treedca53611133677adf1316b97433535c8a0c8808a
parente3cebcb3bd4ffaf86bb0cdfd2af5b7e698717b01
parent8f30d260304ffc260764e51b2d3e40d1734df502
Auto merge of #62705 - petrochenkov:oh-bye-mark, r=matthewjasper

libsyntax: Rename `Mark` into `ExpnId`

"`Mark`" is an ID that identifies both a macro invocation (`foo!()`), and expansion process, and expansion result of that macro invocation.
The problem is that it's pretty hard to infer that from its name.

This PR renames it into `ExpnId` reflecting its meaning in most contexts.
(The contexts where it's meaning is closer to "macro invocation ID" are rarer.)

I've kept "mark" in the names of functions that add or remove marks to/from syntactic contexts, those marks are not just expansion IDs, but something more complex.