]> git.lizzy.rs Git - rust.git/commit
Address more review comments
authorJoshua Nelson <jyn514@gmail.com>
Sun, 28 Mar 2021 02:16:17 +0000 (22:16 -0400)
committerJoshua Nelson <jyn514@gmail.com>
Sun, 28 Mar 2021 02:19:32 +0000 (22:19 -0400)
commitf3523544f114a4a4cc2ced3f1a53f5f3bc158751
tree9d1883421ed2f6c80ab2c9d137a206e4893c946c
parent230e396a7663d933d24c3c30f556abbc1dd9405e
Address more review comments

- Add back various diagnostic methods on `Session`.

  It seems unfortunate to duplicate these in so many places, but in the
  meantime, making the API inconsistent between `Session` and `Diagnostic`
  also seems unfortunate.

- Add back TyCtxtAt methods

  These will hopefully be used in the near future.

- Add back `with_const`, it would need to be added soon after anyway.
- Add back `split()` and `get_mut()`, they're useful.
compiler/rustc_middle/src/ty/context.rs
compiler/rustc_middle/src/ty/mod.rs
compiler/rustc_middle/src/ty/sty.rs
compiler/rustc_mir/src/interpret/machine.rs
compiler/rustc_session/src/session.rs