]> git.lizzy.rs Git - rust.git/commit
Make `commit` and `rollback_to` methods take ownership of the snapshots.
authorNicholas Nethercote <nnethercote@mozilla.com>
Sun, 4 Nov 2018 23:37:23 +0000 (10:37 +1100)
committerNicholas Nethercote <nnethercote@mozilla.com>
Sun, 25 Nov 2018 06:54:06 +0000 (17:54 +1100)
commitf5624e41e819bb85408eba7b3abd550f61a2857a
tree400fe865828ee33380988c0c14527784857ba7db
parent7fe09a6551b72133e68911f3125f28642ec243ac
Make `commit` and `rollback_to` methods take ownership of the snapshots.

Because they shouldn't be reused. This provides consistency with the
`ena` crate.
src/librustc/infer/mod.rs
src/librustc/traits/project.rs
src/librustc_data_structures/snapshot_map/mod.rs
src/librustc_data_structures/snapshot_map/test.rs