daxpedda
e2e33b4d35
Pick up clippy.toml
in ui-cargo
tests.
2021-02-06 17:57:31 +01:00
bors
3577cf79de
Auto merge of #6500 - Javier-varez:case_sensitive_file_extensions, r=llogiq
...
Case sensitive file extensions
Closes #6425
Looks for ends_with methods calls with case sensitive extension comparisons.
changelog: Add new lint that warns about case-sensitive file extension comparisons.
2021-01-15 19:49:39 +00:00
flip1995
547ce0db27
Change env var used for testing Clippy
...
This changes the variable used for testing Clippy in the internal test
suite:
```
CLIPPY_TESTS -> __CLIPPY_INTERNAL_TESTS
```
`CLIPPY_TESTS` is understandably used in environments of Clippy users,
so we shouldn't use it in our test suite.
2021-01-07 12:38:10 +01:00
Javier Alvarez
1527fb61b9
Fix case-sensitive extension check
2021-01-05 14:22:26 +01:00
Matthias Krüger
2838b04487
add internal-lints feature to enable clippys internal lints (off by default)
2020-11-29 21:07:43 +01:00
Philipp Hansch
9b4ceee593
integration tests: Replace lazy_static with SyncLazy
2020-10-06 08:20:18 +02:00
Eduardo Broto
fd0656109f
Add emit=metadata to UI tests build flags
...
This should improve the performance by avoiding codegen
2020-09-25 15:20:04 +02:00
bors
09bd400243
Auto merge of #5891 - flip1995:rustup, r=flip1995
...
Rustup
r? @ghost
Sync back rust-lang/rust#75098
changelog: none
2020-08-11 12:32:10 +00:00
flip1995
9311c11d7c
Fix sync fallout
2020-08-11 14:21:27 +02:00
flip1995
0e44ed5ca9
Fix ui-cargo tests in CI
2020-08-03 18:18:11 +02:00
flip1995
6f25adbd5a
Merge commit '2ca58e7dda4a9eb142599638c59dc04d15961175' into clippyup
2020-07-14 14:59:59 +02:00
JarredAllen
6e2d55c8db
Update compile-test to follow new lint
2020-07-03 16:51:44 -07:00
flip1995
018440c11e
Merge remote-tracking branch 'upstream/master' into rustup
2020-06-23 02:18:17 +02:00
Aaron Hill
e11b873c70
Stop using old version of syn
in rustc-workspace-hack
...
None of the tools seem to need syn 0.15.35, so we can just build syn
1.0.
This was causing an issue with clippy's `compile-test` program: since
multiple versions of `syn` would exist in the build directory, we would
non-deterministically pick one based on filesystem iteration order. If
the pre-1.0 version of `syn` was picked, a strange build error would
occur (see
https://github.com/rust-lang/rust/pull/73594#issuecomment-647671463 )
To prevent this kind of issue from happening again, we now panic if we
find multiple versions of a crate in the build directly, instead of
silently picking the first version we find.
2020-06-22 13:29:39 -04:00
Lzu Tao
8db24840f7
Merge commit 'ff0993c5e9162ddaea78e83d0f0161e68bd4ea73' into clippy
2020-06-09 14:36:01 +00:00
Eduardo Broto
c325c120c2
Fix cargo ui tests when running inside rust repo
2020-06-05 22:30:14 +02:00
Eduardo Broto
14e9100543
cargo-ui tests: check that <dir>/src exists before processing test
2020-05-31 20:38:48 +02:00
flip1995
37381d33a4
Fix sync fallout
2020-05-31 14:05:57 +02:00
flip1995
b6c58f0d72
Temp fix: don't run cargo lint tests in rustc test suite
2020-05-28 17:19:30 +02:00
flip1995
a0e9f9bd0d
Merge commit '7ea7cd165ad6705603852771bf82cc2fd6560db5' into clippyup2
2020-05-28 15:45:24 +02:00
Lzu Tao
9eb913a7e2
Fix error E0460 when compiled on Rustc repo
2020-02-09 19:02:27 +07:00
Lzu Tao
4c2a5f857a
compile-test: Handle CARGO_TARGET_DIR and transitive deps
2020-02-05 21:55:03 +07:00
xiongmao86
bf9e6ca9f6
Fix lint warning in compile-test.rs
2020-01-12 19:54:17 +08:00
Manish Goregaokar
aa5a95f00c
Rustup to rustc 1.41.0-nightly ( a0d40f8bd
2019-11-18)
2019-11-18 23:49:58 -08:00
msizanoen1
805fef0301
Only pass rlibs in target deps directory
2019-11-10 11:14:29 +07:00
msizanoen1
7d2e813634
Add target libs directory to search path
2019-11-08 12:54:28 +07:00
msizanoen1
52f9927ff5
Add the TARGET_LIBS environment variable for rustc CI testing
2019-11-07 22:48:14 +07:00
Andre Bogus
cc622608db
new lints around #[must_use]
fns
...
`must_use_unit` lints unit-returning functions with a `#[must_use]`
attribute, suggesting to remove it.
`double_must_use` lints functions with a plain `#[must_use]`
attribute, but which return a type which is already `#[must_use]`,
so the attribute has no benefit.
`must_use_candidate` is a pedantic lint that lints functions and
methods that return some non-unit type that is not already
`#[must_use]` and suggests to add the annotation.
2019-10-14 12:09:04 +02:00
Shotaro Yamada
555f5a49a2
Test fixes
2019-10-03 08:10:29 +09:00
Eric Huss
a8bf501239
Fix compile-test from forcing a rebuild.
2019-05-19 13:25:06 -07:00
André Luis Leal Cardoso Junior
e428862c95
Update find(p).map(p) occurrences to use find_map(p)
2019-04-30 16:45:32 -03:00
Igor Matuszewski
56389f36a3
compiletest: Disambiguate extern crate deps shared with the compiler
2019-04-23 10:32:41 +02:00
Manish Goregaokar
ee69237274
Re-allow clippy::identity_conversion in compiletest
2019-04-07 12:07:20 -07:00
Manish Goregaokar
ba8712c5fd
Revert tests/compile-test.rs to 61aa5c957c
2019-04-07 12:01:39 -07:00
flip1995
55f67fc7f4
Set level of identity_conversion FP to warn
2019-04-01 20:37:05 +02:00
Félix Fischer
3cff06a0eb
Fix some test failures
2019-03-26 13:57:03 -03:00
Oliver Scherer
d020565ed2
Hacky rustup
2019-03-26 10:55:03 +01:00
Philipp Hansch
a586f52a0f
Move run-pass tests to UI tests
...
This should give us more UI coverage for free.
It also removes the `run-pass` suite, so we now only have the `ui` suite.
2019-02-06 08:17:39 +01:00
Philipp Hansch
38d4ac7cea
Remove all copyright license headers
...
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2019-01-08 21:46:39 +01:00
Konrad Borowski
0edb49792f
Apply cargo fix --edition-idioms fixes
2018-12-29 17:46:25 +01:00
flip1995
9fddb2afce
Use -Zui-testing flag
2018-12-28 12:39:28 +01:00
Matthias Krüger
a9509eb598
Revert "Merge pull request #3257 from o01eg/remove-sysroot"
...
This reverts commit 041c49c1ed
, reversing
changes made to 1df5766cbb
.
2018-12-14 21:42:01 +01:00
O01eg
278b94e6db
Fix format.
2018-12-06 13:46:23 +03:00
O01eg
571d4cc7bf
Add sysroot getting code to tests.
2018-12-06 12:23:47 +03:00
flip1995
2953ae0702
Run rustfmt on the tests
2018-11-27 21:11:50 +01:00
Matthias Krüger
be7656d992
compiletest: clean rmeta data (from "cargo check") before running compiletest.
...
Fixes #2896
Fixes #2139
2018-10-29 12:29:40 +01:00
Manish Goregaokar
e9c025ea70
Add license header to Rust files
2018-10-06 09:43:08 -07:00
Mateusz Mikuła
3693a4ea53
Formatting
2018-06-07 22:01:46 +02:00
Wim Looman
edcb8f6976
Use compiletest::make_tests to allow it to setup the output folders
2018-05-30 21:26:09 +02:00
Wim Looman
3244d122fd
Get compile-test tests for configuration working
2018-05-30 20:37:18 +02:00