diff options
| author | bors <bors@rust-lang.org> | 2020-03-05 21:39:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-03-05 21:39:00 +0000 |
| commit | b818ccc74c993d41286731f67ce1e2bc2a3f1918 (patch) | |
| tree | 6743244ae1971d5aeab96ba3f6e27eb395787de4 /src/librustc_interface | |
| parent | 96bb8b31c81dc2394317f2f083c3acf8087efea1 (diff) | |
| parent | 80c843431d54a4afb7ec92ceaa37cf4faa0a0653 (diff) | |
Auto merge of #69746 - Dylan-DPC:rollup-wr6dvdk, r=Dylan-DPC
Rollup of 8 pull requests Successful merges: - #69697 (Add explanation for E0380) - #69698 (Use associated constants of integer types) - #69711 (Update macros.rs: fix documentation typo.) - #69713 (more clippy cleanups) - #69728 (Make link to `std::str` active) - #69732 (Clean E0382 and E0384 explanations) - #69736 (even more clippy cleanups) - #69742 (Fixed a typo) Failed merges: r? @ghost
Diffstat (limited to 'src/librustc_interface')
| -rw-r--r-- | src/librustc_interface/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_interface/util.rs b/src/librustc_interface/util.rs index 10a8c0a63f1..7866ddbd4cc 100644 --- a/src/librustc_interface/util.rs +++ b/src/librustc_interface/util.rs @@ -426,7 +426,7 @@ pub(crate) fn check_attr_crate_type(attrs: &[ast::Attribute], lint_buffer: &mut for a in attrs.iter() { if a.check_name(sym::crate_type) { if let Some(n) = a.value_str() { - if let Some(_) = categorize_crate_type(n) { + if categorize_crate_type(n).is_some() { return; } |
