diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-01 10:50:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-01 10:50:23 +0100 |
| commit | 4f252f1a91e8c46508443ea92c6f221e6de5beb1 (patch) | |
| tree | 78397810624b52cc485ce911abfbc6ab50561579 /compiler/rustc_codegen_gcc/example/std_example.rs | |
| parent | ce197e2bceca00372c172a02a966b96287476c55 (diff) | |
| parent | e7ee8230ced7c14043ca51191063c13e7fbc7212 (diff) | |
| download | rust-4f252f1a91e8c46508443ea92c6f221e6de5beb1.tar.gz rust-4f252f1a91e8c46508443ea92c6f221e6de5beb1.zip | |
Rollup merge of #91404 - nnethercote:fix-bad-NodeId-limit-checking, r=dtolnay
Fix bad `NodeId` limit checking. `Resolver::next_node_id` converts a `u32` to a `usize` (which is possibly bigger), does a checked add, and then converts the result back to a `u32`. The `usize` conversion completely subverts the checked add! This commit removes the conversion to/from `usize`.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions
