diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-02-27 14:38:06 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-27 14:38:06 +0900 |
| commit | d4700a83ce1721b94f2aa3ce070cf86c82cb9979 (patch) | |
| tree | 871b191f3bb40f62f2864cab6a6a8ce5fdac791b /src/librustc | |
| parent | 4cc0295be5f9dc7089d5b762dfeaf3754b3623f2 (diff) | |
| parent | 1a6b930eebe39aa11d948815b9cd9b792a6de8b4 (diff) | |
Rollup merge of #69479 - matthiaskrgr:op_pred, r=Dylan-DPC
clarify operator precedence
Diffstat (limited to 'src/librustc')
| -rw-r--r-- | src/librustc/ty/query/on_disk_cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/query/on_disk_cache.rs b/src/librustc/ty/query/on_disk_cache.rs index 0fb5f66feca..f96bf6c110c 100644 --- a/src/librustc/ty/query/on_disk_cache.rs +++ b/src/librustc/ty/query/on_disk_cache.rs @@ -997,7 +997,7 @@ impl SpecializedEncoder<IntEncodedWithFixedSize> for opaque::Encoder { fn specialized_encode(&mut self, x: &IntEncodedWithFixedSize) -> Result<(), Self::Error> { let start_pos = self.position(); for i in 0..IntEncodedWithFixedSize::ENCODED_SIZE { - ((x.0 >> i * 8) as u8).encode(self)?; + ((x.0 >> (i * 8)) as u8).encode(self)?; } let end_pos = self.position(); assert_eq!((end_pos - start_pos), IntEncodedWithFixedSize::ENCODED_SIZE); |
