Skip to content

Commit e4f7cab

Browse files
authored
Merge pull request #275 from oli-obk/fix_clippy
Fix overriding editions and similar custom flags
2 parents cb80865 + 3ca0b2d commit e4f7cab

File tree

14 files changed

+45
-11
lines changed

14 files changed

+45
-11
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Changed
1515

16+
### Removed
17+
18+
## [0.26.4] - 2024-09-09
19+
20+
### Added
21+
22+
### Fixed
23+
24+
* custom flags were not overriding the default, but the other way around.
25+
26+
### Changed
27+
1628
* Made more code public for miri to use
1729
* Replaced `lazy_static` with std's `OnceLock`
1830

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ui_test"
3-
version = "0.26.3"
3+
version = "0.26.4"
44
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
description = "A test framework for testing rustc diagnostics output"

src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ impl CommentParser<Comments> {
453453
}
454454

455455
for (k, v) in base.custom {
456-
custom.entry(k).or_insert(v);
456+
custom.insert(k, v);
457457
}
458458

459459
*self.base() = defaults;

tests/integrations/basic-bin/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integrations/basic-fail-mode/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integrations/basic-fail/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integrations/basic-fail/Cargo.stdout

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ Building aux file tests/actual_tests_bless/auxiliary/the_proc_macro.rs ... ok
463463
tests/actual_tests_bless/aux_proc_macro_no_main.rs ... FAILED
464464
tests/actual_tests_bless/compile_flags_quotes.rs ... FAILED
465465
tests/actual_tests_bless/compiletest-rs-command.rs ... FAILED
466+
tests/actual_tests_bless/edition_override.rs ... ok
466467
tests/actual_tests_bless/failing_executable.rs ... ok
467468
tests/actual_tests_bless/failing_executable.rs (revision `run`) ... FAILED
468469
Building aux file tests/actual_tests_bless/auxiliary/foomp.rs ... ok
@@ -1079,7 +1080,7 @@ FAILURES:
10791080
tests/actual_tests_bless/unknown_revision2.rs
10801081
tests/actual_tests_bless/wrong_diagnostic_code.rs
10811082

1082-
test result: FAIL. 23 failed; 25 passed; 3 ignored
1083+
test result: FAIL. 23 failed; 26 passed; 3 ignored
10831084

10841085
Building dependencies ... ok
10851086
tests/actual_tests_bless_yolo/revisions_bad.rs (revision `foo`) ... ok
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//@edition: 2018
2+
//@check-pass
3+
4+
fn main() {
5+
match 42 {
6+
0...1 => {}
7+
_ => {}
8+
}
9+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
warning: `...` range patterns are deprecated
2+
--> tests/actual_tests_bless/edition_override.rs:6:10
3+
|
4+
6 | 0...1 => {}
5+
| ^^^ help: use `..=` for an inclusive range
6+
|
7+
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
8+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
9+
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
10+
11+
warning: 1 warning emitted
12+

tests/integrations/basic/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integrations/cargo-run/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integrations/dep-fail/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integrations/ui_test_dep_bug/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)