]> git.lizzy.rs Git - rust.git/commit
change callback for expr/type to a fn pointer
authorNiko Matsakis <niko@alum.mit.edu>
Mon, 15 Aug 2016 00:25:00 +0000 (20:25 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 17 Aug 2016 19:21:45 +0000 (15:21 -0400)
commit00e699faf3ec39715477b8386fba9deab2e2c925
tree5e3777b3367f0691cbb23479d434f7e46d70ab50
parentc0c8ab9cd2728de9789ea76d8520b2be92bc1eb2
change callback for expr/type to a fn pointer

The idea is that, this way, we can cleanly isolate ALL state that is
being passed, since it goes as an argument to the fn pointer.
src/librustc_metadata/encoder.rs
src/librustc_metadata/index_builder.rs