]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoRustup to rust-lang/rust#69181
Yuki Okushi [Tue, 18 Feb 2020 22:33:19 +0000 (07:33 +0900)]
Rustup to rust-lang/rust#69181

4 years agoAuto merge of #5193 - krishna-veerareddy:add-more-log-consts, r=flip1995
bors [Tue, 18 Feb 2020 16:27:41 +0000 (16:27 +0000)]
Auto merge of #5193 - krishna-veerareddy:add-more-log-consts, r=flip1995

Add `LOG2_10` and `LOG10_2` to `approx_const` lint

changelog: Add constants `LOG2_10` and `LOG10_2` to `approx_const` lint

4 years agoAdd `LOG2_10` and `LOG10_2` to `approx_const` lint
Krishna Sai Veera Reddy [Tue, 18 Feb 2020 16:04:02 +0000 (08:04 -0800)]
Add `LOG2_10` and `LOG10_2` to `approx_const` lint

4 years agoAuto merge of #5191 - JohnTitor:clean-up, r=flip1995
bors [Tue, 18 Feb 2020 15:06:49 +0000 (15:06 +0000)]
Auto merge of #5191 - JohnTitor:clean-up, r=flip1995

Minor cleanup

- Use `Vec::with_capacity()` as possible
- Clean up imports

changelog: none

4 years agoClean up imports
Yuki Okushi [Tue, 18 Feb 2020 13:28:18 +0000 (22:28 +0900)]
Clean up imports

4 years agoUse `Vec::with_capacity()` as possible
Yuki Okushi [Tue, 18 Feb 2020 11:50:10 +0000 (20:50 +0900)]
Use `Vec::with_capacity()` as possible

4 years agoAuto merge of #5189 - jonhoo:async-fn-main-not-needless, r=llogiq
bors [Mon, 17 Feb 2020 20:49:21 +0000 (20:49 +0000)]
Auto merge of #5189 - jonhoo:async-fn-main-not-needless, r=llogiq

needless_doctest_main: False positive for async fn

Fixes #5188.

---

changelog: none

4 years agoneedless_doctest_main: False positive for async fn
Jon Gjengset [Mon, 17 Feb 2020 18:47:42 +0000 (13:47 -0500)]
needless_doctest_main: False positive for async fn

Fixes #5188.

4 years agoAuto merge of #5181 - daxpedda:future-missing-errors-doc, r=flip1995
bors [Mon, 17 Feb 2020 13:57:01 +0000 (13:57 +0000)]
Auto merge of #5181 - daxpedda:future-missing-errors-doc, r=flip1995

Expand `missing_errors_doc` to also work on async functions

This adds the `missing_errors_doc` lint to async functions.

changelog: Make [`missing_errors_doc`] lint also trigger on `async` functions

4 years agoRemove use of `TyKind`.
daxpedda [Mon, 17 Feb 2020 13:19:09 +0000 (14:19 +0100)]
Remove use of `TyKind`.

4 years agoUse `if_chain`.
daxpedda [Mon, 17 Feb 2020 11:18:00 +0000 (12:18 +0100)]
Use `if_chain`.

4 years agoFix ICE.
daxpedda [Mon, 17 Feb 2020 01:38:48 +0000 (02:38 +0100)]
Fix ICE.

4 years agoAdd tests and improve checks.
daxpedda [Mon, 17 Feb 2020 00:17:14 +0000 (01:17 +0100)]
Add tests and improve checks.

4 years agoAdd `Future` detection for `missing_errors_doc`.
daxpedda [Sun, 16 Feb 2020 21:49:47 +0000 (22:49 +0100)]
Add `Future` detection for `missing_errors_doc`.

4 years agoAuto merge of #5186 - JohnTitor:rename-fnretty, r=flip1995
bors [Mon, 17 Feb 2020 13:01:21 +0000 (13:01 +0000)]
Auto merge of #5186 - JohnTitor:rename-fnretty, r=flip1995

Rename `FunctionRetTy` to `FnRetTy`

Rustup to rust-lang/rust#69179

changelog: none

4 years agoRename `FunctionRetTy` to `FnRetTy`
Yuki Okushi [Mon, 17 Feb 2020 09:36:17 +0000 (18:36 +0900)]
Rename `FunctionRetTy` to `FnRetTy`

4 years agoAuto merge of #5185 - krishna-veerareddy:issue-5160-lossy-float-literal, r=flip1995
bors [Mon, 17 Feb 2020 09:18:25 +0000 (09:18 +0000)]
Auto merge of #5185 - krishna-veerareddy:issue-5160-lossy-float-literal, r=flip1995

Lint lossy whole number float literals

changelog: Extend `excessive_precision` to lint lossy whole number float literals

Fixes #5160

4 years agoUplift `excessive_precision` to the correctness category
Krishna Sai Veera Reddy [Mon, 17 Feb 2020 08:17:26 +0000 (00:17 -0800)]
Uplift `excessive_precision` to the correctness category

4 years agoAdd tests for lossy whole number float literals
Krishna Sai Veera Reddy [Mon, 17 Feb 2020 07:55:16 +0000 (23:55 -0800)]
Add tests for lossy whole number float literals

4 years agoAdd lint to detect lossy float literals
Krishna Sai Veera Reddy [Mon, 17 Feb 2020 07:48:10 +0000 (23:48 -0800)]
Add lint to detect lossy float literals

4 years agoAuto merge of #5184 - JohnTitor:reduce-dep-size, r=phansch
bors [Mon, 17 Feb 2020 05:54:44 +0000 (05:54 +0000)]
Auto merge of #5184 - JohnTitor:reduce-dep-size, r=phansch

Reduce `pulldown-cmark` size

Should reduce `pulldown-cmark` size.
ref. https://github.com/raphlinus/pulldown-cmark#build-options

changelog: none

4 years agoReduce pulldown-cmark size
Yuki Okushi [Mon, 17 Feb 2020 04:39:48 +0000 (13:39 +0900)]
Reduce pulldown-cmark size

4 years agoAuto merge of #5183 - JohnTitor:fix-fp-import, r=matthiaskrgr
bors [Mon, 17 Feb 2020 03:33:01 +0000 (03:33 +0000)]
Auto merge of #5183 - JohnTitor:fix-fp-import, r=matthiaskrgr

Don't lint `single_component_path_imports` in macros

Fixes #5154

changelog: Fix false positive in `single_component_path_imports`

4 years agoAuto merge of #5182 - JohnTitor:infer, r=matthiaskrgr
bors [Mon, 17 Feb 2020 03:04:00 +0000 (03:04 +0000)]
Auto merge of #5182 - JohnTitor:infer, r=matthiaskrgr

Rustup to rust-lang/rust#67953

changelog: none

4 years agoDon't lint `single_component_path_imports` in macros
Yuki Okushi [Sun, 16 Feb 2020 20:44:38 +0000 (05:44 +0900)]
Don't lint `single_component_path_imports` in macros

4 years agoRustup to rust-lang/rust#67953
Yuki Okushi [Mon, 17 Feb 2020 02:07:26 +0000 (11:07 +0900)]
Rustup to rust-lang/rust#67953

4 years agoAuto merge of #5177 - matthewjasper:own-infer, r=flip1995
bors [Sat, 15 Feb 2020 16:47:06 +0000 (16:47 +0000)]
Auto merge of #5177 - matthewjasper:own-infer, r=flip1995

Avoid using regions from `TypeckTables`

These regions will all be `ReErased` soon. (rust-lang/rust#69189)

changelog: none

4 years agoAvoid using regions from `TypeckTables`
Matthew Jasper [Sat, 15 Feb 2020 16:24:49 +0000 (16:24 +0000)]
Avoid using regions from `TypeckTables`

These regions will all be `ReErased` soon.

4 years agoAuto merge of #4809 - iankronquist:patch-1, r=flip1995
bors [Sat, 15 Feb 2020 15:12:14 +0000 (15:12 +0000)]
Auto merge of #4809 - iankronquist:patch-1, r=flip1995

Typo in literal_representation.rs

Octal numbers can't have 8 in them ;)

changelog: none

4 years agoAuto merge of #5156 - flip1995:dev_add_internal, r=phansch
bors [Sat, 15 Feb 2020 10:25:54 +0000 (10:25 +0000)]
Auto merge of #5156 - flip1995:dev_add_internal, r=phansch

Let update_lints also generate the internal lints

r? @phansch

changelog: none

4 years agoAdapt gen_lint_group_list test to also generate internal lints
flip1995 [Fri, 14 Feb 2020 13:42:24 +0000 (14:42 +0100)]
Adapt gen_lint_group_list test to also generate internal lints

4 years agoRename lint_count -> usable_lint_count
flip1995 [Wed, 12 Feb 2020 08:12:19 +0000 (09:12 +0100)]
Rename lint_count -> usable_lint_count

4 years agoUpdate some documentation
flip1995 [Tue, 11 Feb 2020 10:29:03 +0000 (11:29 +0100)]
Update some documentation

4 years agoLet update_lints also generate the internal lints
flip1995 [Tue, 11 Feb 2020 10:11:43 +0000 (11:11 +0100)]
Let update_lints also generate the internal lints

4 years agoSave Lint::module as full path of module
flip1995 [Tue, 11 Feb 2020 10:10:54 +0000 (11:10 +0100)]
Save Lint::module as full path of module

4 years agoMake Lint::by_lint_group take impl Iterator as argument
flip1995 [Tue, 11 Feb 2020 10:07:38 +0000 (11:07 +0100)]
Make Lint::by_lint_group take impl Iterator as argument

4 years agoAuto merge of #5171 - flip1995:deploy, r=Manishearth
bors [Fri, 14 Feb 2020 13:05:29 +0000 (13:05 +0000)]
Auto merge of #5171 - flip1995:deploy, r=Manishearth

Improve deployment and documentation

**This should be merged shortly after** #5172

This extracts the python code that generated the `versions.json` file and now sorts the versions. in addition to that it improves the order on the website, respecting the new `rust-*` directories.

The new appearance of the documentation site can be previewed here: https://flip1995.github.io/rust-clippy/

changelog: Add documentation for Clippy stable releases at https://rust-lang.github.io/rust-clippy/

4 years agoRename current -> stable
flip1995 [Fri, 14 Feb 2020 11:03:48 +0000 (12:03 +0100)]
Rename current -> stable

4 years agoAuto merge of #5173 - matthiaskrgr:pulldown, r=flip1995
bors [Thu, 13 Feb 2020 22:09:38 +0000 (22:09 +0000)]
Auto merge of #5173 - matthiaskrgr:pulldown, r=flip1995

deps: update pulldown-cmark from 0.6 to 0.7

changelog: none

4 years agodeps: update pulldown-cmark from 0.6 to 0.7
Matthias Krüger [Thu, 13 Feb 2020 21:01:26 +0000 (22:01 +0100)]
deps: update pulldown-cmark from 0.6 to 0.7

4 years agoUse python3 instead of python
flip1995 [Thu, 13 Feb 2020 17:07:56 +0000 (18:07 +0100)]
Use python3 instead of python

This changes the formatting a bit of json.dump(..)

4 years agoBetter version ordering of documentation
flip1995 [Thu, 13 Feb 2020 16:32:29 +0000 (17:32 +0100)]
Better version ordering of documentation

4 years agoSort versions in json output
flip1995 [Thu, 13 Feb 2020 16:29:40 +0000 (17:29 +0100)]
Sort versions in json output

4 years agoAuto merge of #5168 - lily-commure:chars_next_style, r=flip1995
bors [Thu, 13 Feb 2020 12:54:28 +0000 (12:54 +0000)]
Auto merge of #5168 - lily-commure:chars_next_style, r=flip1995

Reclassify chars_next_cmp as a style lint.

This makes it consistent with chars_last_cmp.

changelog: none

4 years agoAuto merge of #5170 - JohnTitor:fix-prefix, r=flip1995
bors [Thu, 13 Feb 2020 12:26:29 +0000 (12:26 +0000)]
Auto merge of #5170 - JohnTitor:fix-prefix, r=flip1995

Fix false positive in `zero_prefixed_literal`

Fixes #5169

changelog: Fix false positive in `zero_prefixed_literal`

4 years agoFix false positive in `zero_prefixed_literal`
Yuki Okushi [Thu, 13 Feb 2020 05:39:29 +0000 (14:39 +0900)]
Fix false positive in `zero_prefixed_literal`

4 years agochange in the right place, run update_lints
Lily Chung [Thu, 13 Feb 2020 01:03:49 +0000 (17:03 -0800)]
change in the right place, run update_lints

4 years agoReclassify chars_next_cmp as a style lint.
Lily Chung [Thu, 13 Feb 2020 00:50:29 +0000 (16:50 -0800)]
Reclassify chars_next_cmp as a style lint.

This makes it consistent with chars_last_cmp.

4 years agoAuto merge of #5163 - flip1995:gha_fix, r=flip1995
bors [Wed, 12 Feb 2020 15:41:03 +0000 (15:41 +0000)]
Auto merge of #5163 - flip1995:gha_fix, r=flip1995

Change badge branch from master to auto

For some reason GHA classifies the bors merges on the master branch as a
push to the auto branch, even though the workflow got triggered by a
push to the master branch. I guess this has something to do with the
same commit hash on master+auto directly after the merge?

changelog: none

4 years agoAuto merge of #5165 - matthiaskrgr:ci_cargo_cache_autoclean, r=flip1995
bors [Wed, 12 Feb 2020 15:11:32 +0000 (15:11 +0000)]
Auto merge of #5165 - matthiaskrgr:ci_cargo_cache_autoclean, r=flip1995

gha: install cargo-cache with ci-autoclean feature which speeds up build time by a large margin.

changelog: none

4 years agogha: install cargo-cache with ci-autoclean feature which speeds up build time by...
Matthias Krüger [Wed, 12 Feb 2020 13:02:38 +0000 (14:02 +0100)]
gha: install cargo-cache with ci-autoclean feature which speeds up build time by a large margin.

4 years agoAuto merge of #5164 - flip1995:gha_deploy_fix, r=flip1995
bors [Wed, 12 Feb 2020 14:08:20 +0000 (14:08 +0000)]
Auto merge of #5164 - flip1995:gha_deploy_fix, r=flip1995

Fix tag deployment on GHA

I just want to test some things here currently.

changelog: none

4 years agoRun deploy workflow on tags, instead of releases
flip1995 [Wed, 12 Feb 2020 13:49:08 +0000 (14:49 +0100)]
Run deploy workflow on tags, instead of releases

4 years agoChange badge branch master -> auto
flip1995 [Wed, 12 Feb 2020 11:13:59 +0000 (12:13 +0100)]
Change badge branch master -> auto

For some reason GHA classifies the bors merges on the master branch as a
push to the auto branch, even though the workflow got triggered by a
push to the master branch. I guess this has something to do with the
same commit hash on master+auto directly after the merge?

4 years agoAuto merge of #5162 - flip1995:gha_fix, r=flip1995
bors [Wed, 12 Feb 2020 10:24:27 +0000 (10:24 +0000)]
Auto merge of #5162 - flip1995:gha_fix, r=flip1995

Fix GHA after the merge

changelog: none

4 years agoUse list instead of array for branch names
flip1995 [Wed, 12 Feb 2020 10:02:07 +0000 (11:02 +0100)]
Use list instead of array for branch names

This is the officially supported method

4 years agoAuto merge of #5088 - rust-lang:gha, r=Manishearth,flip1995
bors [Wed, 12 Feb 2020 09:02:18 +0000 (09:02 +0000)]
Auto merge of #5088 - rust-lang:gha, r=Manishearth,flip1995

Switch to GitHub Actions - Part 2 - From within

This is a continuation of #5071. This time from a branch inside the rust-lang/rust-clippy repo, not from my fork, since secrets are not available in PRs from forks.

Copying the description of #5071 to here:

Closes #4577

~~This is just an experiment. I don't think we have a consensus _if_ we should move away from travis/appveyor.~~ We have consensus: https://github.com/rust-lang/rust-clippy/pull/5071#issuecomment-576647638

~~GHA would let us run up to 20 concurrent jobs. Since we have 15 integration tests and 4 (linux, linux 32-bit, macos, windows) basic tests, we would be able to run everything concurrently.~~ The org has a limit of 60 jobs across the org, so we limit the matrix of the integration tests to 6 concurrent jobs.

~~Also IIUC we only have to build Clippy once for every initegration test and then only check the repos.~~ Nope, dependent jobs exist, but they won't keep the artifacts (not even the checkout).

TODO before merge:

- [x] Add `DEPLOY_KEY` secret to github repo
- [x] test deployment on test branch `gh-test`#
  - [x] Test normal deployment
  - [x] Test deployment no changes
  - [x] Test deployment of tag
- [x] talk with `@rust-lang/infra` for bors, `@rust-lang/infra` is good with the move (crater also uses GHA+bors)
- [x] ~~Get remark + clippy_dev check to work on pushes (https://github.community/t5/GitHub-Actions/~Builds-are-not-triggered-with-on-paths/m-p/44075; I contacted GH support about this) ~~That seems to start working again yesterday. Let's hope it keeps working.~~ Or not: df9be48. Now it works again: 723786a. I think we should wait, until this is reliable. It appears, that it doesn't work on force pushes (sometimes?): 5814142~~ We need to run the bors tests unconditionally anyway (47138d1) so it doesn't really matter.
- [x] ~~impl homu checks for GHA https://github.com/rust-lang/rust-clippy/pull/5071#issuecomment-576642983 -- I prepared: https://github.com/flip1995/rust-central-station/commit/f40230dc3cebfe4120c9dce027f61c18dd8935cb. I'd suggest to first add GHA and keep the travis and appveyor checks for a few days and to remove them in a second pass. The bors dummy jobs are added in https://github.com/rust-lang/rust-clippy/pull/5088/commits/1a83b7ad7a45aa8db4db7da55a45931e725a1ca3 and work as expected: https://github.com/rust-lang/rust-clippy/pull/5088#issuecomment-582055695. I opened https://github.com/rust-lang/rust-central-station/pull/578~~ See https://github.com/rust-lang/rust-clippy/pull/5088#issuecomment-584581420
- [x] ~Add GHA badge to Cargo.toml (blocked on rust-lang/crates.io # 1838)~ Added a FIXME in
2332b57
- [x] ~Maybe we should also wait until GHA supports yaml anchors. https://github.community/t5/GitHub-Actions/Support-for-YAML-anchors/td-p/30336/~ WIll probably not be implemented in the near future.
- [x] Add back travis + appveyor files for transition period (!)

changelog: none

4 years agoDon't upload target/release in integration_build
flip1995 [Wed, 12 Feb 2020 09:01:19 +0000 (10:01 +0100)]
Don't upload target/release in integration_build

This dir was generated by compiling RTIM, when no cache is available

4 years agoUse nightly cargo to install cargo-cache
flip1995 [Sun, 9 Feb 2020 15:29:03 +0000 (16:29 +0100)]
Use nightly cargo to install cargo-cache

Stable cargo install still errors when packages exists, instead of updating it

4 years agoInstall all required remark packages in travis
flip1995 [Fri, 7 Feb 2020 21:33:05 +0000 (22:33 +0100)]
Install all required remark packages in travis

4 years agoRemove deployment from travis
flip1995 [Fri, 7 Feb 2020 21:27:14 +0000 (22:27 +0100)]
Remove deployment from travis

4 years agoApply review comments
flip1995 [Fri, 7 Feb 2020 21:24:41 +0000 (22:24 +0100)]
Apply review comments

4 years agoRun bors checks unconditionally
flip1995 [Tue, 4 Feb 2020 17:42:45 +0000 (18:42 +0100)]
Run bors checks unconditionally

This is important, since bors doesn't know optional jobs. Otherwise bors
would time out, when a check doesn't get run.

4 years agoAdd bors dummy jobs
flip1995 [Tue, 4 Feb 2020 16:33:50 +0000 (17:33 +0100)]
Add bors dummy jobs

4 years agoUse hash of Cargo.lock file in cache name
flip1995 [Fri, 31 Jan 2020 13:44:55 +0000 (14:44 +0100)]
Use hash of Cargo.lock file in cache name

4 years agoAdd two more error causes to integration test
flip1995 [Fri, 31 Jan 2020 13:43:02 +0000 (14:43 +0100)]
Add two more error causes to integration test

4 years agoBuild Clippy before running integration tests
flip1995 [Fri, 31 Jan 2020 13:42:44 +0000 (14:42 +0100)]
Build Clippy before running integration tests

4 years agoAllow non-ascii characters in changelog check
flip1995 [Thu, 30 Jan 2020 16:03:45 +0000 (17:03 +0100)]
Allow non-ascii characters in changelog check

4 years agoExtract deployment
flip1995 [Sun, 26 Jan 2020 14:40:53 +0000 (15:40 +0100)]
Extract deployment

4 years agoExtract driver test
flip1995 [Sun, 26 Jan 2020 14:13:14 +0000 (15:13 +0100)]
Extract driver test

4 years agoSort output of export.py script
flip1995 [Fri, 24 Jan 2020 13:34:25 +0000 (14:34 +0100)]
Sort output of export.py script

4 years agoLimit parallel jobs on try/r+ runs
flip1995 [Thu, 23 Jan 2020 14:47:11 +0000 (15:47 +0100)]
Limit parallel jobs on try/r+ runs

Rate limit of 60 applies org wide, let's not spam.
Thanks pietroalbini for the hint

4 years agoCancle builds on new commits
flip1995 [Thu, 23 Jan 2020 13:40:37 +0000 (14:40 +0100)]
Cancle builds on new commits

4 years agoAdd GHA badge to README.md
flip1995 [Thu, 23 Jan 2020 09:22:02 +0000 (10:22 +0100)]
Add GHA badge to README.md

Add a FIXME to Cargo.toml

4 years agoSmall change to comment in .gitignore
flip1995 [Thu, 23 Jan 2020 09:36:51 +0000 (10:36 +0100)]
Small change to comment in .gitignore

4 years agoAdd deployment to GHA
flip1995 [Wed, 22 Jan 2020 20:00:31 +0000 (21:00 +0100)]
Add deployment to GHA

4 years agoMove integration tests in clippy_bors.yml
flip1995 [Wed, 22 Jan 2020 19:00:41 +0000 (20:00 +0100)]
Move integration tests in clippy_bors.yml

Some call it the integration integration

4 years agoAdd Clippy Test to GHA
flip1995 [Wed, 22 Jan 2020 16:06:13 +0000 (17:06 +0100)]
Add Clippy Test to GHA

4 years agoGet {RUSTUP,MULTIRUST}_{HOME,TOOLCHAIN} from runtime environment
flip1995 [Wed, 22 Jan 2020 13:56:08 +0000 (14:56 +0100)]
Get {RUSTUP,MULTIRUST}_{HOME,TOOLCHAIN} from runtime environment

Keep the fallback to compile-time environment

4 years agoCheck if changelog exists
flip1995 [Tue, 21 Jan 2020 20:40:40 +0000 (21:40 +0100)]
Check if changelog exists

4 years agoIgnore fmt test in GHA CI
flip1995 [Tue, 21 Jan 2020 17:44:30 +0000 (18:44 +0100)]
Ignore fmt test in GHA CI

This is already checked by clippy_dev.yml GHA

4 years agoAdd Clippy Test (bors) to GHA
flip1995 [Tue, 21 Jan 2020 17:43:57 +0000 (18:43 +0100)]
Add Clippy Test (bors) to GHA

4 years agoFix markdown Files
flip1995 [Tue, 21 Jan 2020 15:39:58 +0000 (16:39 +0100)]
Fix markdown Files

Rendered:

[CHANGELOG.md](https://github.com/flip1995/rust-clippy/blob/gha/CHANGELOG.md)
[CODE_OF_CONDUCT.md](https://github.com/flip1995/rust-clippy/blob/gha/CODE_OF_CONDUCT.md)
[CONTRIBUTING.md](https://github.com/flip1995/rust-clippy/blob/gha/CONTRIBUTING.md)
[README.md](https://github.com/flip1995/rust-clippy/blob/gha/README.md)
[clippy_dummy/PUBLISH.md](https://github.com/flip1995/rust-clippy/blob/gha/clippy_dummy/PUBLISH.md)
[doc/adding_lints.md](https://github.com/flip1995/rust-clippy/blob/gha/doc/adding_lints.md)
[etc/relicense/RELICENSE_DOCUMENTATION.md](https://github.com/flip1995/rust-clippy/blob/gha/etc/relicense/RELICENSE_DOCUMENTATION.md)

4 years agoRename .remarkrc.json -> .remarkrc and fix file
flip1995 [Tue, 21 Jan 2020 15:32:25 +0000 (16:32 +0100)]
Rename .remarkrc.json -> .remarkrc and fix file

4 years agoAdd remark check to GHA
flip1995 [Tue, 21 Jan 2020 14:29:54 +0000 (15:29 +0100)]
Add remark check to GHA

4 years agoAdd clippy_dev checks to GitHub Actions
flip1995 [Tue, 21 Jan 2020 12:46:53 +0000 (13:46 +0100)]
Add clippy_dev checks to GitHub Actions

4 years agoAdd integration test GitHub action
flip1995 [Mon, 20 Jan 2020 15:03:26 +0000 (16:03 +0100)]
Add integration test GitHub action

4 years agoAuto merge of #5158 - lzutao:callbackshook, r=flip1995
bors [Tue, 11 Feb 2020 22:22:05 +0000 (22:22 +0000)]
Auto merge of #5158 - lzutao:callbackshook, r=flip1995

Impl DefaultCallbacks on our side

cc https://github.com/rust-lang/rust/pull/69059#discussion_r377643560

changelog: none

4 years agoAuto merge of #5152 - flip1995:rustup, r=flip1995
bors [Tue, 11 Feb 2020 20:54:49 +0000 (20:54 +0000)]
Auto merge of #5152 - flip1995:rustup, r=flip1995

Rustup to rust-lang/rust#68725

Preparation for rust-lang/rust#68725

changelog: none

4 years agoImpl DefaultCallbacks on our side
Lzu Tao [Tue, 11 Feb 2020 15:52:00 +0000 (22:52 +0700)]
Impl DefaultCallbacks on our side

4 years agoAuto merge of #5155 - krishna-veerareddy:remove-unused-imports, r=flip1995
bors [Tue, 11 Feb 2020 14:25:21 +0000 (14:25 +0000)]
Auto merge of #5155 - krishna-veerareddy:remove-unused-imports, r=flip1995

Remove unnecessary `Lint{Array|Pass}` imports

changelog: none

4 years agoRemove unnecessary imports from tests
Krishna Sai Veera Reddy [Tue, 11 Feb 2020 14:20:47 +0000 (06:20 -0800)]
Remove unnecessary imports from tests

4 years agoRemove unnecessary imports from documentation
Krishna Sai Veera Reddy [Tue, 11 Feb 2020 03:37:25 +0000 (19:37 -0800)]
Remove unnecessary imports from documentation

4 years agoRemove unnecessary imports from `new_lint` tool
Krishna Sai Veera Reddy [Tue, 11 Feb 2020 03:24:01 +0000 (19:24 -0800)]
Remove unnecessary imports from `new_lint` tool

4 years agoAuto merge of #5151 - flip1995:fix_run_pass_tests, r=flip1995
bors [Mon, 10 Feb 2020 16:02:30 +0000 (16:02 +0000)]
Auto merge of #5151 - flip1995:fix_run_pass_tests, r=flip1995

Fix run-pass tests when CARGO_TARGET_DIR is not set

r? @lzutao

I got

```
thread '[ui] ui/crashes/ice-1969.rs' panicked at 'failed to exec `"target/debug/test_build_base/crashes/ice-1969.stage-id"`: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/pkrones/.cargo/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.4.0/src/runtest.rs:1350:25
```

on tests with `// run-pass` locally. The reason for this is, that I haven't set `CARGO_TARGET_DIR` and then `"target"` was used as the `CARGO_TARGET_DIR`. It seems, that `compiletest-rs` cannot deal with relative paths for `// run-pass` tests.

changelog: none

4 years agoUse current_dir instead of cargo_metadata
Philipp Krones [Mon, 10 Feb 2020 15:42:50 +0000 (16:42 +0100)]
Use current_dir instead of cargo_metadata

Co-Authored-By: lzutao <taolzu@gmail.com>
4 years agoRustup to rust-lang/rust#68725
flip1995 [Mon, 10 Feb 2020 14:59:14 +0000 (15:59 +0100)]
Rustup to rust-lang/rust#68725

4 years agoFix run-pass tests when CARGO_TARGET_DIR is not set
flip1995 [Mon, 10 Feb 2020 14:51:51 +0000 (15:51 +0100)]
Fix run-pass tests when CARGO_TARGET_DIR is not set

4 years agoAuto merge of #5148 - krishna-veerareddy:issue-5147-option-env-unwrap, r=flip1995
bors [Mon, 10 Feb 2020 08:08:53 +0000 (08:08 +0000)]
Auto merge of #5148 - krishna-veerareddy:issue-5147-option-env-unwrap, r=flip1995

Add `option-env-unwrap` lint

changelog: Add `option-env-unwrap` lint

Fixes #5147

4 years agoUse `PATH` environment variable for testing
Krishna Sai Veera Reddy [Sun, 9 Feb 2020 22:12:40 +0000 (14:12 -0800)]
Use `PATH` environment variable for testing

The tests were failing on windows because the `HOME` env variable
doesn't exist on it so using the `PATH` variable to test instead.