Skip to content

Commit a8eeb7c

Browse files
committed
Auto merge of rust-lang#4125 - Manishearth:rustup, r=oli-obk
Rustup to rustc 1.36.0-nightly (dbfe70d 2019-05-22) not 100% sure of the Symbol stuff r? @oli-obk
2 parents 2cc23a5 + 833ef00 commit a8eeb7c

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.travis.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ matrix:
5151
# We don't want to run these always because they go towards
5252
# the build limit within the Travis rust-lang account.
5353
# The jobs are approximately sorted by execution time
54-
- env: INTEGRATION=rust-lang/cargo
55-
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
54+
# disabled cargo integration test due to https://github.com/rust-lang/rust-clippy/issues/4121
55+
#- env: INTEGRATION=rust-lang/cargo
56+
# if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
5657
- env: INTEGRATION=rust-lang-nursery/chalk
5758
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
5859
- env: INTEGRATION=rust-lang/rls

clippy_lints/src/enum_variants.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ impl EarlyLintPass for EnumVariantNames {
248248
if let Some(&(ref mod_name, ref mod_camel)) = self.modules.last() {
249249
// constants don't have surrounding modules
250250
if !mod_camel.is_empty() {
251-
if *mod_name == item_name {
251+
if mod_name.as_symbol() == item.ident.name {
252252
if let ItemKind::Mod(..) = item.node {
253253
span_lint(
254254
cx,

clippy_lints/src/format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UselessFormat {
6161
then {
6262
let (message, sugg) = if_chain! {
6363
if let ExprKind::MethodCall(ref path, _, _) = format_arg.node;
64-
if path.ident.as_interned_str() == "to_string";
64+
if path.ident.as_interned_str().as_symbol() == sym!(to_string);
6565
then {
6666
("`to_string()` is enough",
6767
snippet(cx, format_arg.span, "<arg>").to_string())

clippy_lints/src/utils/higher.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ pub fn range<'a, 'b, 'tcx>(cx: &LateContext<'a, 'tcx>, expr: &'b hir::Expr) -> O
6363
if def_path.data.len() != 3 {
6464
return None;
6565
}
66-
if def_path.data.get(0)?.data.as_interned_str() != "ops" {
66+
if def_path.data.get(0)?.data.as_interned_str().as_symbol() != sym!(ops) {
6767
return None;
6868
}
69-
if def_path.data.get(1)?.data.as_interned_str() != "range" {
69+
if def_path.data.get(1)?.data.as_interned_str().as_symbol() != sym!(range) {
7070
return None;
7171
}
7272
let type_name = def_path.data.get(2)?.data.as_interned_str();

0 commit comments

Comments
 (0)