about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorChayim Refael Friedman <chayimfr@gmail.com>2023-01-23 14:42:32 +0200
committerGitHub <noreply@github.com>2023-01-23 14:42:32 +0200
commit236f8231a64241d3fb3b9d81a8cd3175367e691d (patch)
treedfc381b6f3a71c384ab991ddf8953049bab6e0ca /compiler/rustc_codegen_llvm/src/errors.rs
parent6b3cd03fdb285781c60f5962194719fdfd46d910 (diff)
downloadrust-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