mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Rustup
This commit is contained in:
parent
b464432972
commit
c6a4eaeb0d
@ -1,6 +1,9 @@
|
|||||||
# Change Log
|
# Change Log
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## 0.0.171
|
||||||
|
* Rustup to *rustc 1.23.0-nightly (ff0f5de3b 2017-11-14)*
|
||||||
|
|
||||||
## 0.0.170
|
## 0.0.170
|
||||||
* Rustup to *rustc 1.23.0-nightly (d6b06c63a 2017-11-09)*
|
* Rustup to *rustc 1.23.0-nightly (d6b06c63a 2017-11-09)*
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "clippy"
|
name = "clippy"
|
||||||
version = "0.0.170"
|
version = "0.0.171"
|
||||||
authors = [
|
authors = [
|
||||||
"Manish Goregaokar <manishsmail@gmail.com>",
|
"Manish Goregaokar <manishsmail@gmail.com>",
|
||||||
"Andre Bogus <bogusandre@gmail.com>",
|
"Andre Bogus <bogusandre@gmail.com>",
|
||||||
@ -37,7 +37,7 @@ path = "src/driver.rs"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# begin automatic update
|
# begin automatic update
|
||||||
clippy_lints = { version = "0.0.170", path = "clippy_lints" }
|
clippy_lints = { version = "0.0.171", path = "clippy_lints" }
|
||||||
# end automatic update
|
# end automatic update
|
||||||
cargo_metadata = "0.2"
|
cargo_metadata = "0.2"
|
||||||
regex = "0.2"
|
regex = "0.2"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "clippy_lints"
|
name = "clippy_lints"
|
||||||
# begin automatic update
|
# begin automatic update
|
||||||
version = "0.0.170"
|
version = "0.0.171"
|
||||||
# end automatic update
|
# end automatic update
|
||||||
authors = [
|
authors = [
|
||||||
"Manish Goregaokar <manishsmail@gmail.com>",
|
"Manish Goregaokar <manishsmail@gmail.com>",
|
||||||
|
@ -9,7 +9,6 @@ use rustc::lint::{LateContext, Level, Lint, LintContext};
|
|||||||
use rustc::session::Session;
|
use rustc::session::Session;
|
||||||
use rustc::traits;
|
use rustc::traits;
|
||||||
use rustc::ty::{self, Ty, TyCtxt};
|
use rustc::ty::{self, Ty, TyCtxt};
|
||||||
use rustc::mir::transform::MirSource;
|
|
||||||
use rustc_errors;
|
use rustc_errors;
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
use std::env;
|
use std::env;
|
||||||
@ -48,9 +47,9 @@ pub fn differing_macro_contexts(lhs: Span, rhs: Span) -> bool {
|
|||||||
|
|
||||||
pub fn in_constant(cx: &LateContext, id: NodeId) -> bool {
|
pub fn in_constant(cx: &LateContext, id: NodeId) -> bool {
|
||||||
let parent_id = cx.tcx.hir.get_parent(id);
|
let parent_id = cx.tcx.hir.get_parent(id);
|
||||||
match MirSource::from_node(cx.tcx, parent_id) {
|
match cx.tcx.hir.body_owner_kind(parent_id) {
|
||||||
MirSource::GeneratorDrop(_) | MirSource::Fn(_) => false,
|
hir::BodyOwnerKind::Fn => false,
|
||||||
MirSource::Const(_) | MirSource::Static(..) | MirSource::Promoted(..) => true,
|
hir::BodyOwnerKind::Const | hir::BodyOwnerKind::Static(..) => true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user