diff options
| author | Chayim Refael Friedman <chayimfr@gmail.com> | 2023-01-23 14:42:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-23 14:42:32 +0200 |
| commit | 236f8231a64241d3fb3b9d81a8cd3175367e691d (patch) | |
| tree | dfc381b6f3a71c384ab991ddf8953049bab6e0ca /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 6b3cd03fdb285781c60f5962194719fdfd46d910 (diff) | |
| download | rust-236f8231a64241d3fb3b9d81a8cd3175367e691d.tar.gz rust-236f8231a64241d3fb3b9d81a8cd3175367e691d.zip | |
`sub_ptr()` is equivalent to `usize::try_from().unwrap_unchecked()`, not `usize::from().unwrap_unchecked()`.
`usize::from()` gives a `usize`, not `Result<usize>`, and `usize: From<isize>` is not implemented.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
