]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoMark `fn_to_numeric_cast` lints as MaybeIncorrect
Philipp Hansch [Wed, 31 Jul 2019 19:05:31 +0000 (21:05 +0200)]
Mark `fn_to_numeric_cast` lints as MaybeIncorrect

At least for now so that `cargo fix --clippy` is not causing problems
with this lint.

cc #3630, #3896

5 years agoAuto merge of #4313 - Manishearth:owl, r=yaahallo
bors [Wed, 31 Jul 2019 17:57:57 +0000 (17:57 +0000)]
Auto merge of #4313 - Manishearth:owl, r=yaahallo

Don't nudge people towards toilet closures when producing owl results

`.map_err(drop)` should never be linted since sometimes you want to produce `Result<(), ()>` and the alternative is `.map_err(|_| ())`, which can be ugly. We don't seem to, but it's good to specifically test for this.

changelog: none

r? @yaahallo

5 years agoDon't nudge people towards toilet closures when producing owl results
Manish Goregaokar [Wed, 31 Jul 2019 15:38:08 +0000 (08:38 -0700)]
Don't nudge people towards toilet closures when producing owl results

5 years agoAuto merge of #4308 - jakubadamw:use-self-variant-scope, r=flip1995
bors [Wed, 31 Jul 2019 14:50:01 +0000 (14:50 +0000)]
Auto merge of #4308 - jakubadamw:use-self-variant-scope, r=flip1995

Extend the `use_self` lint to suggest uses of `Self::Variant`

Fixes #4296.

changelog: Extend the `use_self` lint to suggest uses of `Self::Variant`

5 years agoUpdate all the code to pass the updated `use_self` lint.
Jakub Wieczorek [Wed, 31 Jul 2019 00:25:35 +0000 (00:25 +0000)]
Update all the code to pass the updated `use_self` lint.

One struct required a temporary `#[allow(dead_code)]` annotation due to
a bug in the Rust compiler: https://github.com/rust-lang/rust/issues/63151.

5 years agoExtend the `use_self` lint to suggest uses of `Self::Variant`.
Jakub Wieczorek [Wed, 31 Jul 2019 00:24:28 +0000 (00:24 +0000)]
Extend the `use_self` lint to suggest uses of `Self::Variant`.

5 years agoAuto merge of #3766 - xd009642:issue-3764, r=flip1995
bors [Tue, 30 Jul 2019 12:11:17 +0000 (12:11 +0000)]
Auto merge of #3766 - xd009642:issue-3764, r=flip1995

trait bounds lint - repeated types

This PR is to tackle https://github.com/rust-lang/rust-clippy/issues/3764 it's still a WIP and doesn't work but this is an initial stab. It builds though I haven't added any tests as I'm not sure where lint tests should go?

Unfortunately, it seems id isn't tied to the type itself but I guess where it is in the AST? Looking at https://manishearth.github.io/rust-internals-docs/syntax/ast/struct.Ty.html I can't see any members that would let me tell if a type was repeated in multiple trait bounds.

There may be other issues with how I've implemented this so any assistance is appreciated!

changelog: Add new lint: `type_repetition_in_bounds`

5 years agoAuto merge of #4306 - mikerite:fix-breakage-20190730, r=flip1995
bors [Tue, 30 Jul 2019 08:57:29 +0000 (08:57 +0000)]
Auto merge of #4306 - mikerite:fix-breakage-20190730, r=flip1995

Fix breakage due to rust-lang/rust#61856

changelog: none

5 years agoFix breakage due to rust-lang/rust#61856
Michael Wright [Tue, 30 Jul 2019 04:37:49 +0000 (06:37 +0200)]
Fix breakage due to rust-lang/rust#61856

5 years agoFix dogfood test
xd009642 [Sun, 28 Jul 2019 08:31:05 +0000 (09:31 +0100)]
Fix dogfood test

5 years agoHash discriminant of lifetime.name
xd009642 [Sat, 27 Jul 2019 22:04:36 +0000 (23:04 +0100)]
Hash discriminant of lifetime.name

5 years agoHash discriminant of Lifetime::Name
xd009642 [Sat, 27 Jul 2019 21:59:46 +0000 (22:59 +0100)]
Hash discriminant of Lifetime::Name

5 years agoUpdated tests.
xd009642 [Sat, 27 Jul 2019 21:53:26 +0000 (22:53 +0100)]
Updated tests.

Removed unnecessary type repetition in float test and regenerated stderr
Regenerated type_repetition stderr

5 years agoRespond to review comments
xd009642 [Sat, 27 Jul 2019 20:58:29 +0000 (21:58 +0100)]
Respond to review comments

Update README and CHANGELOG using the util scripts, refine the help message and fix the float_cmp error.

5 years agoAuto merge of #4301 - flip1995:dummy, r=Manishearth
bors [Sat, 27 Jul 2019 16:53:00 +0000 (16:53 +0000)]
Auto merge of #4301 - flip1995:dummy, r=Manishearth

Bump version of clippy_dummy

The crates.io page of clippy still suggest to install `clippy-preview`
instead of `clippy` I think it's time to change this.

Thanks to the Stuttgart Meetup for discovering this!

r? @Manishearth could you also publish this after merging?

changelog: none

5 years agoAuto merge of #4302 - matthiaskrgr:rustup_13, r=phansch
bors [Sat, 27 Jul 2019 15:52:14 +0000 (15:52 +0000)]
Auto merge of #4302 - matthiaskrgr:rustup_13, r=phansch

rustup https://github.com/rust-lang/rust/pull/62964

changelog: none

5 years agoci: temporarily disable rustfmt checks/tetss since it's broken for nightly
Matthias Krüger [Fri, 26 Jul 2019 21:33:02 +0000 (23:33 +0200)]
ci: temporarily disable rustfmt checks/tetss since it's broken for nightly

5 years agoUpdated test stderr
xd009642 [Sat, 27 Jul 2019 11:07:02 +0000 (12:07 +0100)]
Updated test stderr

5 years agoAdded doc comment fixed type printout
xd009642 [Sat, 27 Jul 2019 11:06:25 +0000 (12:06 +0100)]
Added doc comment fixed type printout

Added a doc comment for the lint and fixed the printout of the type so it prints T not type(T)

5 years agoRespond to comments and improve printout
xd009642 [Sat, 27 Jul 2019 10:51:27 +0000 (11:51 +0100)]
Respond to comments and improve printout

Now get the trait names for the diagnostic message and removed more
`let c: fn(_) -> _ = T; hashes from hir_utils

5 years agorustup https://github.com/rust-lang/rust/pull/62964
Matthias Krüger [Fri, 26 Jul 2019 20:58:31 +0000 (22:58 +0200)]
rustup https://github.com/rust-lang/rust/pull/62964

5 years agoBump version of clippy_dummy
flip1995 [Fri, 26 Jul 2019 19:01:18 +0000 (21:01 +0200)]
Bump version of clippy_dummy

The crates.io page of clippy still suggest to install `clippy-preview`
instead of `clippy` I think it's time to change this.

Thanks to the Stuttgart Meetup for discovering this!

5 years agoResponded to comments and fixed compile bug
xd009642 [Fri, 26 Jul 2019 15:46:47 +0000 (16:46 +0100)]
Responded to comments and fixed compile bug

Removed the hash of `let c: fn(_,_) -> _ = ExprKind::Cast` and
fixed compile issue by collecting HirVec into an actual Vec

5 years agoFixed more compile errors
xd009642 [Wed, 24 Jul 2019 21:59:32 +0000 (22:59 +0100)]
Fixed more compile errors

Moved to rustc::hir::Ty

5 years agoFix some of the compile errors
xd009642 [Wed, 24 Jul 2019 21:27:12 +0000 (22:27 +0100)]
Fix some of the compile errors

5 years agoChanged Ty to ty, added lifetime 'tcx
xd009642 [Sat, 22 Jun 2019 21:22:11 +0000 (22:22 +0100)]
Changed Ty to ty, added lifetime 'tcx

5 years agoLint for type repetition in trait bounds.
xd009642 [Fri, 15 Feb 2019 20:21:13 +0000 (20:21 +0000)]
Lint for type repetition in trait bounds.

This lint adds warning if types are redundantly repeated in trait bounds i.e. `T: Copy, T: Clone` instead of `T: Copy + Clone`. This is a late pass trait lint and has necessitated the addition of code to allow hashing of TyKinds without taking into account Span information.

5 years agoAuto merge of #4297 - matthiaskrgr:rustup_12, r=matthiaskrgr
bors [Wed, 24 Jul 2019 04:56:28 +0000 (04:56 +0000)]
Auto merge of #4297 - matthiaskrgr:rustup_12, r=matthiaskrgr

rustup

changelog: none

5 years agoupdate test stderr, not sure which rustc pull request caused this.
Matthias Krüger [Wed, 24 Jul 2019 00:24:27 +0000 (02:24 +0200)]
update test stderr, not sure which rustc pull request caused this.

5 years agorustup https://github.com/rust-lang/rust/pull/62859
Matthias Krüger [Wed, 24 Jul 2019 00:20:36 +0000 (02:20 +0200)]
rustup https://github.com/rust-lang/rust/pull/62859

5 years agoAuto merge of #4266 - uHOOCCOOHu:fix/async_fn_lifetime, r=flip1995
bors [Tue, 23 Jul 2019 09:52:18 +0000 (09:52 +0000)]
Auto merge of #4266 - uHOOCCOOHu:fix/async_fn_lifetime, r=flip1995

Ignore generated fresh lifetimes in elision check

<!--
Thank you for making Clippy better!

We're collecting our changelog from pull request descriptions.
If your PR only updates to the latest nightly, you can leave the
`changelog` entry as `none`. Otherwise, please write a short comment
explaining your change.

If your PR fixes an issue, you can add "fixes #issue_number" into this
PR description. This way the issue will be automatically closed when
your PR is merged.

If you added a new lint, here's a checklist for things that will be
checked during review or continuous integration.

- [ ] Followed [lint naming conventions][lint_naming]
- [ ] Added passing UI tests (including committed `.stderr` file)
- [ ] `cargo test` passes locally
- [ ] Executed `util/dev update_lints`
- [ ] Added lint documentation
- [ ] Run `cargo fmt`

Note that you can skip the above if you are just opening a WIP PR in
order to get feedback.

Delete this line and everything above before opening your PR -->

fixes #3988

changelog: Ignore generated fresh lifetimes in elision check.

**HELP**: It seems `tests/ui` are compiled under edition 2015, and I don't know how to add tests for this properly.

Here is the test input it had already passed:
```rust
#![feature(async_await)]
#![allow(dead_code)]

async fn sink1<'a>(_: &'a str) {} // lint
async fn sink1_elided(_: &str) {} // ok

async fn one_to_one<'a>(s: &'a str) -> &'a str { s } // lint
async fn one_to_one_elided(s: &str) -> &str { s } // ok
async fn all_to_one<'a>(a: &'a str, _b: &'a str) -> &'a str { a } // ok
// async fn unrelated(_: &str, _: &str) {} // Not allowed in async fn

// #3988
struct Foo;
impl Foo {
    pub async fn foo(&mut self) {} // ok
}

// rust-lang/rust#61115
async fn print(s: &str) { // ok
    println!("{}", s);
}

fn main() {}

```

5 years agoFix tests for edition 2018 compatibility
uHOOCCOOHu [Mon, 22 Jul 2019 19:59:09 +0000 (03:59 +0800)]
Fix tests for edition 2018 compatibility

5 years agoRevert "Revert global fmt config and use `rustfmt::skip`"
uHOOCCOOHu [Mon, 22 Jul 2019 18:57:49 +0000 (02:57 +0800)]
Revert "Revert global fmt config and use `rustfmt::skip`"

This reverts commit b70b3b14aa3125fe4f74a6a71fb7a7b7e78ab13f.

5 years agoAuto merge of #4292 - mikerite:fix-breakage-20190721, r=matthiaskrgr
bors [Sun, 21 Jul 2019 13:48:30 +0000 (13:48 +0000)]
Auto merge of #4292 - mikerite:fix-breakage-20190721, r=matthiaskrgr

Fix breakage due to rust-lang/rust#62705

Also rename `OUTER_EXPN_INFO` to `OUTER_EXPN_EXPN_INFO` to match new
function names.

changelog: none

5 years agoFix breakage due to rust-lang/rust#60913
Michael Wright [Sun, 21 Jul 2019 10:52:14 +0000 (12:52 +0200)]
Fix breakage due to rust-lang/rust#60913

5 years agoFix breakage due to rust-lang/rust#62705
Michael Wright [Sun, 21 Jul 2019 07:36:31 +0000 (09:36 +0200)]
Fix breakage due to rust-lang/rust#62705

Also rename `OUTER_EXPN_INFO` to `OUTER_EXPN_EXPN_INFO` to match new
function names.

5 years agoRevert global fmt config and use `rustfmt::skip`
uHOOCCOOHu [Fri, 19 Jul 2019 16:50:18 +0000 (00:50 +0800)]
Revert global fmt config and use `rustfmt::skip`

5 years agoFix fmt
uHOOCCOOHu [Fri, 19 Jul 2019 15:03:34 +0000 (23:03 +0800)]
Fix fmt

5 years agoAuto merge of #4287 - matthiaskrgr:rustup_11, r=phansch
bors [Fri, 19 Jul 2019 14:44:36 +0000 (14:44 +0000)]
Auto merge of #4287 - matthiaskrgr:rustup_11, r=phansch

rustup https://github.com/rust-lang/rust/pull/62679/

changelog: none

5 years agorustup https://github.com/rust-lang/rust/pull/62679/
Matthias Krüger [Fri, 19 Jul 2019 14:41:10 +0000 (16:41 +0200)]
rustup https://github.com/rust-lang/rust/pull/62679/

5 years agoAuto merge of #4286 - phansch:update_pulldown_cmark3, r=flip1995
bors [Fri, 19 Jul 2019 07:25:55 +0000 (07:25 +0000)]
Auto merge of #4286 - phansch:update_pulldown_cmark3, r=flip1995

Update pulldown-cmark to 0.5.3

Fixes a couple of crashes of which I added one example to our tests.

changelog: Update `pulldown-cmark` to 0.5.3 to fix potential crashes in `doc_markdown` lint

5 years agoAuto merge of #4285 - matthiaskrgr:rustup_backticks, r=phansch
bors [Fri, 19 Jul 2019 05:31:31 +0000 (05:31 +0000)]
Auto merge of #4285 - matthiaskrgr:rustup_backticks, r=phansch

rustup https://github.com/rust-lang/rust/pull/62764

(was merged as part of https://github.com/rust-lang/rust/pull/62782 )

changelog: none

5 years agoUpdate pulldown-cmark to 0.5.3
Philipp Hansch [Fri, 19 Jul 2019 05:18:10 +0000 (07:18 +0200)]
Update pulldown-cmark to 0.5.3

5 years agorustup https://github.com/rust-lang/rust/pull/62764
Matthias Krüger [Thu, 18 Jul 2019 22:35:32 +0000 (00:35 +0200)]
rustup https://github.com/rust-lang/rust/pull/62764

(was merged as part of https://github.com/rust-lang/rust/pull/62782 )

5 years agoAuto merge of #4282 - phansch:decrease_stderr_maximum_length, r=flip1995
bors [Thu, 18 Jul 2019 18:57:32 +0000 (18:57 +0000)]
Auto merge of #4282 - phansch:decrease_stderr_maximum_length, r=flip1995

Decrease maximum length for stderr files

Now at 275.

changelog: none

cc #2038

5 years agoAdd test
uHOOCCOOHu [Thu, 18 Jul 2019 18:43:10 +0000 (02:43 +0800)]
Add test

5 years agoAuto merge of #4274 - daxpedda:implicit_return_fixes, r=flip1995
bors [Thu, 18 Jul 2019 18:20:40 +0000 (18:20 +0000)]
Auto merge of #4274 - daxpedda:implicit_return_fixes, r=flip1995

false positives fixes of `implicit_return`

-  Handle returning macro statements properly (remove "this error originates in a macro outside of the current crate")
-  Handle functions that return never type
-  Handle functions that panic but do not return never type

changelog: Fix false positives in `implicit_return` lint pertaining to macros and panics

5 years agoAuto merge of #4284 - flip1995:rustfmt, r=phansch
bors [Thu, 18 Jul 2019 17:16:28 +0000 (17:16 +0000)]
Auto merge of #4284 - flip1995:rustfmt, r=phansch

Format code

changelog: none

5 years agoFormat code
flip1995 [Thu, 18 Jul 2019 15:23:22 +0000 (17:23 +0200)]
Format code

5 years agoDecrease maximum length for stderr files
Philipp Hansch [Wed, 17 Jul 2019 19:13:33 +0000 (21:13 +0200)]
Decrease maximum length for stderr files

Now at 275.

5 years agoImproved imports
daxpedda [Wed, 17 Jul 2019 18:44:09 +0000 (20:44 +0200)]
Improved imports

5 years agoAuto merge of #4280 - phansch:uitests_matches, r=flip1995
bors [Wed, 17 Jul 2019 08:08:18 +0000 (08:08 +0000)]
Auto merge of #4280 - phansch:uitests_matches, r=flip1995

UI Test Cleanup: Extract match_ref_pats tests

changelog: none

cc #2038

5 years agoAuto merge of #4259 - Darth-Revan:origin/inherent_to_string, r=flip1995
bors [Wed, 17 Jul 2019 07:23:25 +0000 (07:23 +0000)]
Auto merge of #4259 - Darth-Revan:origin/inherent_to_string, r=flip1995

Implement lint for inherent to_string() method.

Fixes #4247

changelog: Implement two new lints: `inherent_to_string` and `inherent_to_string_shadow_display`

1) Emits a warning if a type implements an inherent method `to_string(&self) -> String`
2) Emits an error if a type implements an inherent method `to_string(&self) -> String` and also implements the `Display` trait

5 years agoFix "unkown clippy lint" error in UI test.
Darth-Revan [Tue, 16 Jul 2019 16:29:37 +0000 (18:29 +0200)]
Fix "unkown clippy lint" error in UI test.

5 years agoCorrections for PR review.
Darth-Revan [Mon, 15 Jul 2019 16:43:47 +0000 (18:43 +0200)]
Corrections for PR review.

5 years agoImplement lint for inherent to_string() method.
Darth-Revan [Sat, 6 Jul 2019 18:13:38 +0000 (20:13 +0200)]
Implement lint for inherent to_string() method.

5 years agoAuto merge of #4278 - phansch:uitestcleanup_indexing, r=flip1995
bors [Wed, 17 Jul 2019 06:48:53 +0000 (06:48 +0000)]
Auto merge of #4278 - phansch:uitestcleanup_indexing, r=flip1995

UI Test Cleanup: Split out out_of_bounds_indexing

This moves the `out_of_bounds_indexing` lint tests to their own
directory.

changelog: none

cc #2038

5 years agoUI Test Cleanup: Extract match_ref_pats tests
Philipp Hansch [Wed, 17 Jul 2019 06:08:26 +0000 (08:08 +0200)]
UI Test Cleanup: Extract match_ref_pats tests

5 years agoUpdate UI tests
Philipp Hansch [Tue, 16 Jul 2019 20:26:47 +0000 (22:26 +0200)]
Update UI tests

5 years agoAuto merge of #4276 - phansch:uitestcleanup, r=flip1995
bors [Tue, 16 Jul 2019 20:24:03 +0000 (20:24 +0000)]
Auto merge of #4276 - phansch:uitestcleanup, r=flip1995

UI Test Cleanup: Split up checked_unwrap tests

Let's slowly bring that ticket closer to the finish line :snail: :checkered_flag:

This splits up `tests/ui/checked_unwrap.rs` into:

 * `tests/ui/checked_unwrap/complex.rs`
 * `tests/ui/checked_unwrap/simple.rs`

Based on the naming of the methods in the tests.

changelog: none

cc #2038

5 years agoAllow no_effect lint
Philipp Hansch [Tue, 16 Jul 2019 19:29:03 +0000 (21:29 +0200)]
Allow no_effect lint

for cleaner stderr file

Co-Authored-By: Philipp Krones <hello@philkrones.com>
5 years agoRemove comment
Philipp Hansch [Tue, 16 Jul 2019 19:28:37 +0000 (21:28 +0200)]
Remove comment

Co-Authored-By: Philipp Krones <hello@philkrones.com>
5 years agocargo fmt
Philipp Hansch [Tue, 16 Jul 2019 19:28:03 +0000 (21:28 +0200)]
cargo fmt

5 years agoUI Test Cleanup: Split up checked_unwrap tests
Philipp Hansch [Mon, 15 Jul 2019 19:27:44 +0000 (21:27 +0200)]
UI Test Cleanup: Split up checked_unwrap tests

This splits up `tests/ui/checked_unwrap.rs` into:

 * `tests/ui/checked_unwrap/complex.rs`
 * `tests/ui/checked_unwrap/simple.rs`

Based on the naming of the methods in the tests.

cc #2038

5 years agoRemoved lintining on never type.
daxpedda [Tue, 16 Jul 2019 12:46:33 +0000 (14:46 +0200)]
Removed lintining on never type.

Abstracted repeating strings into statics.

5 years agoAuto merge of #4275 - jayhardee9:fix/cmp-signum, r=flip1995
bors [Tue, 16 Jul 2019 07:33:46 +0000 (07:33 +0000)]
Auto merge of #4275 - jayhardee9:fix/cmp-signum, r=flip1995

Fix float_cmp false positive when comparing signum

fixes #4248

changelog: Fix float_cmp false positive when comparing signum

5 years agoUI Test Cleanup: Split out out_of_bounds_indexing
Philipp Hansch [Tue, 16 Jul 2019 05:30:23 +0000 (07:30 +0200)]
UI Test Cleanup: Split out out_of_bounds_indexing

This moves the `out_of_bounds_indexing` lint tests to their own
directory.

5 years agoAuto merge of #4211 - flip1995:check_changelog, r=matthiaskrgr
bors [Mon, 15 Jul 2019 23:18:42 +0000 (23:18 +0000)]
Auto merge of #4211 - flip1995:check_changelog, r=matthiaskrgr

Check for changelog entry in PR bodies

cc #4031 but now on the auto and try branches. (https://github.com/rust-lang/rust-clippy/issues/3955#issuecomment-502230021)

changelog: none

5 years agoLint
Jerry Hardee [Mon, 15 Jul 2019 19:00:07 +0000 (14:00 -0500)]
Lint

5 years agoFix float_cmp false positive when comparing signum
Jerry Hardee [Mon, 15 Jul 2019 17:46:58 +0000 (12:46 -0500)]
Fix float_cmp false positive when comparing signum

f1.signum() == f2.signum()
f1.signum() != f2.signum()
should not trigger a warning.

5 years agogrep only lines, that start with 'changelog: '
flip1995 [Tue, 18 Jun 2019 10:14:02 +0000 (12:14 +0200)]
grep only lines, that start with 'changelog: '

5 years agoGet PR number from bors commit message
flip1995 [Sat, 15 Jun 2019 11:54:46 +0000 (13:54 +0200)]
Get PR number from bors commit message

5 years agoAuthenticate with github_api_token
flip1995 [Thu, 25 Apr 2019 15:08:20 +0000 (17:08 +0200)]
Authenticate with github_api_token

5 years agoCheck PRs for changelog entry in the body
flip1995 [Thu, 25 Apr 2019 13:45:52 +0000 (15:45 +0200)]
Check PRs for changelog entry in the body

5 years agofalse positives fixes of `implicit_return`
daxpedda [Mon, 15 Jul 2019 14:02:50 +0000 (16:02 +0200)]
false positives fixes of `implicit_return`

-  Handle returning macro statements properly
-  Handle functions that return never type
-  Handle functions that panic but do not return never type

5 years agoAuto merge of #4273 - mikerite:deny-warnings, r=flip1995
bors [Mon, 15 Jul 2019 07:51:29 +0000 (07:51 +0000)]
Auto merge of #4273 - mikerite:deny-warnings, r=flip1995

Deny warnings in CI

changelog: none

5 years agoDeny warnings in CI
Michael Wright [Mon, 15 Jul 2019 05:35:02 +0000 (07:35 +0200)]
Deny warnings in CI

5 years agoAuto merge of #3418 - phansch:add_travis_windows_build, r=me,flip1995
bors [Mon, 15 Jul 2019 05:20:34 +0000 (05:20 +0000)]
Auto merge of #3418 - phansch:add_travis_windows_build, r=me,flip1995

Fix Travis Windows build

Closes #3306

5 years agoDisable dogfood on windows for faster build time on travis
flip1995 [Sun, 14 Jul 2019 13:21:50 +0000 (15:21 +0200)]
Disable dogfood on windows for faster build time on travis

5 years agoRevert "Remove `CARGO_INCREMENTAL=0` from windows build"
flip1995 [Sun, 14 Jul 2019 13:13:47 +0000 (15:13 +0200)]
Revert "Remove `CARGO_INCREMENTAL=0` from windows build"

This reverts commit 876a7e1f01cb14a63eee54cb44524a87161d5454.

Using incremental build on windows increases the build time on travis by
about 8 minutes.

5 years agoRemove `CARGO_INCREMENTAL=0` from windows build
flip1995 [Sat, 13 Jul 2019 11:26:26 +0000 (13:26 +0200)]
Remove `CARGO_INCREMENTAL=0` from windows build

5 years agoTest with different sysroots dependent on the OS
flip1995 [Sat, 13 Jul 2019 09:42:44 +0000 (11:42 +0200)]
Test with different sysroots dependent on the OS

5 years agoBuild sys_root in driver with PathBuf instead of String
flip1995 [Fri, 12 Jul 2019 12:13:15 +0000 (14:13 +0200)]
Build sys_root in driver with PathBuf instead of String

5 years agoDon't re-set the LD_LIBRARY_PATH in base_tests.sh
flip1995 [Fri, 12 Jul 2019 10:12:53 +0000 (12:12 +0200)]
Don't re-set the LD_LIBRARY_PATH in base_tests.sh

5 years agoAdd master toolchain binaries to the PATH
flip1995 [Fri, 12 Jul 2019 08:58:06 +0000 (10:58 +0200)]
Add master toolchain binaries to the PATH

5 years agoChange conditional
Philipp Hansch [Wed, 28 Nov 2018 06:29:05 +0000 (07:29 +0100)]
Change conditional

Maybe uname == Linux was true on the windows VM?
This could be a way to avoid the secret environment variable issue with
Travis CI.

5 years agoStop allowing failures in Travis windows build
Philipp Hansch [Fri, 9 Nov 2018 06:13:34 +0000 (07:13 +0100)]
Stop allowing failures in Travis windows build

5 years agoAuto merge of #4229 - euclio:lint-doc-generation-fix, r=flip1995
bors [Sat, 13 Jul 2019 10:05:15 +0000 (10:05 +0000)]
Auto merge of #4229 - euclio:lint-doc-generation-fix, r=flip1995

don't strip blank lines in lint documentation

changelog: don't strip blank lines in lint documentation

Fixes #4116.

This PR also switches the docs headings to deterministically display in the order that they are declared in the source, with "Configuration" always appearing last. It doesn't seem like there was a defined order before.

5 years agoAuto merge of #4232 - mikerite:dev-fmt-4, r=flip1995
bors [Sat, 13 Jul 2019 09:26:16 +0000 (09:26 +0000)]
Auto merge of #4232 - mikerite:dev-fmt-4, r=flip1995

Add dev fmt subcommand

changelog: none

5 years agoAuto merge of #4268 - mikerite:fix-4260, r=flip1995
bors [Sat, 13 Jul 2019 08:59:12 +0000 (08:59 +0000)]
Auto merge of #4268 - mikerite:fix-4260, r=flip1995

Fix bug in `implicit_hasher` causing crashes

Skip linting if the type is from an external macro. Closes #4260.

changelog: Fix bug in `implicit_hasher` causing crashes

5 years agoMerge branch 'master' into dev-fmt-4
Michael Wright [Sat, 13 Jul 2019 07:20:54 +0000 (09:20 +0200)]
Merge branch 'master' into dev-fmt-4

5 years agoAuto merge of #4269 - lzutao:rustup, r=flip1995
bors [Fri, 12 Jul 2019 07:26:03 +0000 (07:26 +0000)]
Auto merge of #4269 - lzutao:rustup, r=flip1995

Rustup `macro expansion and resolution`

Rustup https://github.com/rust-lang/rust/pull/62476

changelog: none

5 years agoRustup `macro expansion and resolution`
Lzu Tao [Thu, 11 Jul 2019 14:45:34 +0000 (21:45 +0700)]
Rustup `macro expansion and resolution`

5 years agoFix bug in `implicit_hasher` causing crashes
Michael Wright [Thu, 11 Jul 2019 06:47:05 +0000 (08:47 +0200)]
Fix bug in `implicit_hasher` causing crashes

Skip linting if the type is from an external macro. Closes #4260.

5 years agoAvoid rustfmt bug on Windows
Michael Wright [Thu, 11 Jul 2019 05:21:44 +0000 (05:21 +0000)]
Avoid rustfmt bug on Windows

5 years agoIgnore generated fresh lifetimes in elision check.
uHOOCCOOHu [Tue, 9 Jul 2019 17:57:25 +0000 (01:57 +0800)]
Ignore generated fresh lifetimes in elision check.

5 years agoAuto merge of #4257 - skade:improve-cast-alignment, r=flip1995
bors [Tue, 9 Jul 2019 15:28:26 +0000 (15:28 +0000)]
Auto merge of #4257 - skade:improve-cast-alignment, r=flip1995

Improve cast_ptr_alignment lint

<!--
Thank you for making Clippy better!

We're collecting our changelog from pull request descriptions.
If your PR only updates to the latest nightly, you can leave the
`changelog` entry as `none`. Otherwise, please write a short comment
explaining your change.

If your PR fixes an issue, you can add "fixes #issue_number" into this
PR description. This way the issue will be automatically closed when
your PR is merged.

If you added a new lint, here's a checklist for things that will be
checked during review or continuous integration.

- [x] Followed [lint naming conventions][lint_naming]
- [x] Added passing UI tests (including committed `.stderr` file)
- [x] `cargo test` passes locally
- [x] Executed `util/dev update_lints`
- [x] Added lint documentation
- [x] Run `cargo fmt`

Note that you can skip the above if you are just opening a WIP PR in
order to get feedback.

Delete this line and everything above before opening your PR -->

* print alignment in bytes in the lint message
* ignore ZST left-hand types

Fixes #3797 and #4256
changelog:
* `cast_ptr_alignment`: Print alignment in bytes in the lint message
* `cast_ptr_alignment`: Ignore casting from ZST left-hand types

5 years agoImprove cast_ptr_alignment lint
Florian Gilcher [Sat, 6 Jul 2019 09:40:14 +0000 (11:40 +0200)]
Improve cast_ptr_alignment lint

* print alignment in bytes in the lint message
* ignore ZST left-hand types

5 years agoAuto merge of #4265 - vks:patch-1, r=flip1995
bors [Tue, 9 Jul 2019 13:15:29 +0000 (13:15 +0000)]
Auto merge of #4265 - vks:patch-1, r=flip1995

cast_ptr_alignment: Mention legal use under known problems

Refs #2881.

changelog: Mention know problems for cast_ptr_alignment

5 years agocast_ptr_alignment: Mention legal use under known problems
Vinzent Steinberg [Tue, 9 Jul 2019 12:48:48 +0000 (14:48 +0200)]
cast_ptr_alignment: Mention legal use under known problems

Refs #2881.