diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-03 19:40:00 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-20 08:59:50 +1100 |
| commit | e2320b32c5268913349549fc59972443975ceec4 (patch) | |
| tree | d1525029e50c823b0689d9836911779445318644 /compiler/rustc_serialize/src/leb128.rs | |
| parent | 8121958fda43759fa94e3f74f7cdbb595ddcc0e5 (diff) | |
| download | rust-e2320b32c5268913349549fc59972443975ceec4.tar.gz rust-e2320b32c5268913349549fc59972443975ceec4.zip | |
Convert `rustc_serialize` integration tests to unit tests.
Because (a) the vast majority of compiler tests are unit tests, and (b) this works better with `unused_crate_dependencies`.
Diffstat (limited to 'compiler/rustc_serialize/src/leb128.rs')
| -rw-r--r-- | compiler/rustc_serialize/src/leb128.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_serialize/src/leb128.rs b/compiler/rustc_serialize/src/leb128.rs index 4a475805697..954c1f728f2 100644 --- a/compiler/rustc_serialize/src/leb128.rs +++ b/compiler/rustc_serialize/src/leb128.rs @@ -155,3 +155,6 @@ impl_read_signed_leb128!(read_i32_leb128, i32); impl_read_signed_leb128!(read_i64_leb128, i64); impl_read_signed_leb128!(read_i128_leb128, i128); impl_read_signed_leb128!(read_isize_leb128, isize); + +#[cfg(test)] +mod tests; |
