diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-12-20 15:02:15 +0100 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-12-20 15:02:15 +0100 |
| commit | fb79e44df6310ab449cee6ef82d7672b7e43d4e8 (patch) | |
| tree | c0eb447f0b32eba4e6d253f88ac1baa1eb494321 /compiler/rustc_metadata/src | |
| parent | eb9e5e711d3eef1998ff24ac2bc57386662652e9 (diff) | |
| download | rust-fb79e44df6310ab449cee6ef82d7672b7e43d4e8.tar.gz rust-fb79e44df6310ab449cee6ef82d7672b7e43d4e8.zip | |
Remove wrapper functions for some unstable options
They are trivial and just forward to the option. Like most other options, we can just access it directly.
Diffstat (limited to 'compiler/rustc_metadata/src')
| -rw-r--r-- | compiler/rustc_metadata/src/rmeta/encoder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/encoder.rs b/compiler/rustc_metadata/src/rmeta/encoder.rs index 4af423f2a22..6145a26f799 100644 --- a/compiler/rustc_metadata/src/rmeta/encoder.rs +++ b/compiler/rustc_metadata/src/rmeta/encoder.rs @@ -713,7 +713,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> { let computed_total_bytes: usize = stats.iter().map(|(_, size)| size).sum(); assert_eq!(total_bytes, computed_total_bytes); - if tcx.sess.meta_stats() { + if tcx.sess.opts.unstable_opts.meta_stats { self.opaque.flush(); // Rewind and re-read all the metadata to count the zero bytes we wrote. |
