Skip to content

Commit

Permalink
Auto merge of rust-lang#4125 - Manishearth:rustup, r=oli-obk
Browse files Browse the repository at this point in the history
Rustup to rustc 1.36.0-nightly (dbfe70d 2019-05-22)

not 100% sure of the Symbol stuff

r? @oli-obk
  • Loading branch information
bors committed May 22, 2019
2 parents 2cc23a5 + 833ef00 commit a8eeb7c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Expand Up @@ -51,8 +51,9 @@ matrix:
# We don't want to run these always because they go towards
# the build limit within the Travis rust-lang account.
# The jobs are approximately sorted by execution time
- env: INTEGRATION=rust-lang/cargo
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
# disabled cargo integration test due to https://github.com/rust-lang/rust-clippy/issues/4121
#- env: INTEGRATION=rust-lang/cargo
# if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
- env: INTEGRATION=rust-lang-nursery/chalk
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
- env: INTEGRATION=rust-lang/rls
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/enum_variants.rs
Expand Up @@ -248,7 +248,7 @@ impl EarlyLintPass for EnumVariantNames {
if let Some(&(ref mod_name, ref mod_camel)) = self.modules.last() {
// constants don't have surrounding modules
if !mod_camel.is_empty() {
if *mod_name == item_name {
if mod_name.as_symbol() == item.ident.name {
if let ItemKind::Mod(..) = item.node {
span_lint(
cx,
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/format.rs
Expand Up @@ -61,7 +61,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UselessFormat {
then {
let (message, sugg) = if_chain! {
if let ExprKind::MethodCall(ref path, _, _) = format_arg.node;
if path.ident.as_interned_str() == "to_string";
if path.ident.as_interned_str().as_symbol() == sym!(to_string);
then {
("`to_string()` is enough",
snippet(cx, format_arg.span, "<arg>").to_string())
Expand Down
4 changes: 2 additions & 2 deletions clippy_lints/src/utils/higher.rs
Expand Up @@ -63,10 +63,10 @@ pub fn range<'a, 'b, 'tcx>(cx: &LateContext<'a, 'tcx>, expr: &'b hir::Expr) -> O
if def_path.data.len() != 3 {
return None;
}
if def_path.data.get(0)?.data.as_interned_str() != "ops" {
if def_path.data.get(0)?.data.as_interned_str().as_symbol() != sym!(ops) {
return None;
}
if def_path.data.get(1)?.data.as_interned_str() != "range" {
if def_path.data.get(1)?.data.as_interned_str().as_symbol() != sym!(range) {
return None;
}
let type_name = def_path.data.get(2)?.data.as_interned_str();
Expand Down

0 comments on commit a8eeb7c

Please sign in to comment.