Skip to content

Commit 8851621

Browse files
committed
Auto merge of #11929 - flip1995:rustup, r=flip1995
Rustup r? `@xFrednet` changelog: none out of cycle sync to fix integration test failure for the XFAIL integration test, as the `delayed_span_bug` attribute name was updated.
2 parents da27c97 + a7acfa2 commit 8851621

File tree

14 files changed

+33
-37
lines changed

14 files changed

+33
-37
lines changed

.github/workflows/clippy_bors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ jobs:
206206
max-parallel: 6
207207
matrix:
208208
integration:
209+
- 'matthiaskrgr/clippy_ci_panic_test'
209210
- 'rust-lang/cargo'
210211
- 'rust-lang/chalk'
211212
- 'rust-lang/rustfmt'
@@ -220,7 +221,6 @@ jobs:
220221
- 'rust-itertools/itertools'
221222
- 'rust-lang-nursery/failure'
222223
- 'rust-lang/log'
223-
- 'matthiaskrgr/clippy_ci_panic_test'
224224

225225
runs-on: ubuntu-latest
226226

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "nightly-2023-12-01"
2+
channel = "nightly-2023-12-05"
33
components = ["cargo", "llvm-tools", "rust-src", "rust-std", "rustc", "rustc-dev", "rustfmt"]

src/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ pub fn main() {
183183
// as simple as moving the call from the hook to main, because `install_ice_hook` doesn't
184184
// accept a generic closure.
185185
let version_info = rustc_tools_util::get_version_info!();
186-
handler.note_without_error(format!("Clippy version: {version_info}"));
186+
handler.note(format!("Clippy version: {version_info}"));
187187
});
188188

189189
exit(rustc_driver::catch_with_exit_code(move || {

tests/integration.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ fn integration_test() {
6969
// debug:
7070
eprintln!("{stderr}");
7171

72-
// this is an internal test to make sure we would correctly panic on a delay_span_bug
72+
// this is an internal test to make sure we would correctly panic on a span_delayed_bug
7373
if repo_name == "matthiaskrgr/clippy_ci_panic_test" {
7474
// we need to kind of switch around our logic here:
7575
// if we find a panic, everything is fine, if we don't panic, SOMETHING is broken about our testing
7676

77-
// the repo basically just contains a delay_span_bug that forces rustc/clippy to panic:
77+
// the repo basically just contains a span_delayed_bug that forces rustc/clippy to panic:
7878
/*
7979
#![feature(rustc_attrs)]
80-
#[rustc_error(delay_span_bug_from_inside_query)]
80+
#[rustc_error(span_delayed_bug_from_inside_query)]
8181
fn main() {}
8282
*/
8383

@@ -86,7 +86,7 @@ fn integration_test() {
8686
return;
8787
}
8888

89-
panic!("panic caused by delay_span_bug was NOT detected! Something is broken!");
89+
panic!("panic caused by span_delayed_bug was NOT detected! Something is broken!");
9090
}
9191

9292
if let Some(backtrace_start) = stderr.find("error: internal compiler error") {

tests/ui-cargo/module_style/fail_mod_remap/Cargo.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ error: `mod.rs` files are required, found `src/bad.rs`
88
= note: `-D clippy::self-named-module-files` implied by `-D warnings`
99
= help: to override `-D warnings` add `#[allow(clippy::self_named_module_files)]`
1010

11-
error: could not compile `fail-mod-remap` (bin "fail-mod-remap") due to previous error
11+
error: could not compile `fail-mod-remap` (bin "fail-mod-remap") due to 1 previous error

tests/ui-cargo/module_style/fail_no_mod/Cargo.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ error: `mod.rs` files are not allowed, found `src/bad/mod.rs`
88
= note: `-D clippy::mod-module-files` implied by `-D warnings`
99
= help: to override `-D warnings` add `#[allow(clippy::mod_module_files)]`
1010

11-
error: could not compile `fail-no-mod` (bin "fail-no-mod") due to previous error
11+
error: could not compile `fail-no-mod` (bin "fail-no-mod") due to 1 previous error

tests/ui-cargo/multiple_crate_versions/fail/Cargo.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ error: multiple versions for dependency `winapi`: 0.2.8, 0.3.9
33
= note: `-D clippy::multiple-crate-versions` implied by `-D warnings`
44
= help: to override `-D warnings` add `#[allow(clippy::multiple_crate_versions)]`
55

6-
error: could not compile `multiple_crate_versions` (bin "multiple_crate_versions") due to previous error
6+
error: could not compile `multiple_crate_versions` (bin "multiple_crate_versions") due to 1 previous error

tests/ui-cargo/wildcard_dependencies/fail/Cargo.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ error: wildcard dependency for `regex`
33
= note: `-D clippy::wildcard-dependencies` implied by `-D warnings`
44
= help: to override `-D warnings` add `#[allow(clippy::wildcard_dependencies)]`
55

6-
error: could not compile `wildcard_dependencies` (bin "wildcard_dependencies") due to previous error
6+
error: could not compile `wildcard_dependencies` (bin "wildcard_dependencies") due to 1 previous error

tests/ui/needless_raw_string.fixed

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![allow(clippy::needless_raw_string_hashes, clippy::no_effect, unused)]
22
#![warn(clippy::needless_raw_strings)]
3-
#![feature(c_str_literals)]
43

54
fn main() {
65
"aaa";

tests/ui/needless_raw_string.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![allow(clippy::needless_raw_string_hashes, clippy::no_effect, unused)]
22
#![warn(clippy::needless_raw_strings)]
3-
#![feature(c_str_literals)]
43

54
fn main() {
65
r#"aaa"#;

0 commit comments

Comments
 (0)