]> git.lizzy.rs Git - rust.git/commit
Have Queries own the GlobalCtxt.
authorCamille GILLOT <gillot.camille@gmail.com>
Tue, 26 Nov 2019 21:51:02 +0000 (22:51 +0100)
committerCamille GILLOT <gillot.camille@gmail.com>
Tue, 26 Nov 2019 21:51:02 +0000 (22:51 +0100)
commitb99513be57bfb21c546b29999fc541a402e27a10
tree142749e00cb64c67f9175206b9e09bc298790e82
parent58a9c73bbd9e115888353aa81ee59ee4862c8cf9
Have Queries own the GlobalCtxt.

The construction of the GlobalCtxt is moved from a generator's stack to
the Queries struct.  Since the GlobalCtxt requires the HIR Forest and the
arenas to live longer, those are moved into Queries the same way.

The resulting handling of objects is more brittle, because consumers of
the Once objects need to be careful of their initialisation.
src/librustc_interface/passes.rs
src/librustc_interface/queries.rs
src/librustdoc/test.rs