diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-04-05 18:47:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-05 18:47:45 +0200 |
| commit | c2595539e7fd3e8b1986d30c25d8bf8717402bec (patch) | |
| tree | e55ef7c5a7087789f63b6ec958b1315ac02df93f /src/librustc_codegen_llvm | |
| parent | 829154f9807801b55317c4c4eea887829434c758 (diff) | |
| parent | 101085ad9fd26a5e18f4c76dcc72b34d8edbdbe6 (diff) | |
| download | rust-c2595539e7fd3e8b1986d30c25d8bf8717402bec.tar.gz rust-c2595539e7fd3e8b1986d30c25d8bf8717402bec.zip | |
Rollup merge of #70777 - faern:use-assoc-int-consts2, r=dtolnay
Don't import integer and float modules, use assoc consts Stop importing the standard library integer and float modules to reach the `MIN`, `MAX` and other constants. They are available directly on the primitive types now. This PR is a follow up of #69860 which made sure we use the new constants in documentation. This type of change touches a lot of files, and previously all my assoc int consts PRs had collisions and were accepted only after a long delay. So I'd prefer to do it in smaller steps now. Just removing these imports seem like a good next step. r? @dtolnay
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/intrinsic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/intrinsic.rs b/src/librustc_codegen_llvm/intrinsic.rs index 5734eae7d59..63730c56f0e 100644 --- a/src/librustc_codegen_llvm/intrinsic.rs +++ b/src/librustc_codegen_llvm/intrinsic.rs @@ -25,7 +25,7 @@ use rustc_span::Span; use rustc_target::abi::{self, HasDataLayout, LayoutOf, Primitive}; use std::cmp::Ordering; -use std::{i128, iter, u128}; +use std::iter; fn get_simple_intrinsic(cx: &CodegenCx<'ll, '_>, name: &str) -> Option<&'ll Value> { let llvm_name = match name { |
