Skip to content

Commit a3c77f6

Browse files
authoredDec 8, 2018
Merge pull request #3512 from matthiaskrgr/rustup
rustup rust-lang/rust#56502 ( .hir -> .hir() )
2 parents 26602dd + d93ea1e commit a3c77f6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+182
-169
lines changed
 

‎.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ before_install:
3030
install:
3131
- |
3232
if [ -z ${INTEGRATION} ]; then
33-
rustup component add rustfmt-preview || cargo install --git https://github.com/rust-lang/rustfmt/ --force
33+
rustup component add rustfmt || cargo install --git https://github.com/rust-lang/rustfmt/ --force
3434
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
3535
. $HOME/.nvm/nvm.sh
3636
nvm install stable

‎clippy_lints/src/arithmetic.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Arithmetic {
121121
}
122122

123123
fn check_body(&mut self, cx: &LateContext<'_, '_>, body: &hir::Body) {
124-
let body_owner = cx.tcx.hir.body_owner(body.id());
124+
let body_owner = cx.tcx.hir().body_owner(body.id());
125125

126-
match cx.tcx.hir.body_owner_kind(body_owner) {
126+
match cx.tcx.hir().body_owner_kind(body_owner) {
127127
hir::BodyOwnerKind::Static(_) | hir::BodyOwnerKind::Const => {
128-
let body_span = cx.tcx.hir.span(body_owner);
128+
let body_span = cx.tcx.hir().span(body_owner);
129129

130130
if let Some(span) = self.const_span {
131131
if span.contains(body_span) {
@@ -139,8 +139,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Arithmetic {
139139
}
140140

141141
fn check_body_post(&mut self, cx: &LateContext<'_, '_>, body: &hir::Body) {
142-
let body_owner = cx.tcx.hir.body_owner(body.id());
143-
let body_span = cx.tcx.hir.span(body_owner);
142+
let body_owner = cx.tcx.hir().body_owner(body.id());
143+
let body_span = cx.tcx.hir().span(body_owner);
144144

145145
if let Some(span) = self.const_span {
146146
if span.contains(body_span) {

0 commit comments

Comments
 (0)
Please sign in to comment.