Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[crater] make where_clauses_object_safety forbid #124305

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

compiler-errors
Copy link
Member

cc #50781
r? lcnr

@compiler-errors compiler-errors changed the title make where_clauses_object_safety forbid [crater] make where_clauses_object_safety forbid Apr 23, 2024
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 23, 2024
@compiler-errors
Copy link
Member Author

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 23, 2024
[crater] make `where_clauses_object_safety` forbid

cc rust-lang#50781
r? lcnr
@bors
Copy link
Contributor

bors commented Apr 23, 2024

⌛ Trying commit b0f43fa with merge 4452337...

@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-llvm-17 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
#16 exporting to docker image format
#16 sending tarball 28.9s done
#16 DONE 47.9s
##[endgroup]
Setting extra environment values for docker:  --env ENABLE_GCC_CODEGEN=1 --env GCC_EXEC_PREFIX=/usr/lib/gcc/
[CI_JOB_NAME=x86_64-gnu-llvm-17]
---
sccache: Starting the server...
##[group]Configure the build
configure: processing command line
configure: 
configure: build.configure-args := ['--build=x86_64-unknown-linux-gnu', '--llvm-root=/usr/lib/llvm-17', '--enable-llvm-link-shared', '--set', 'rust.thin-lto-import-instr-limit=10', '--set', 'change-id=99999999', '--enable-verbose-configure', '--enable-sccache', '--disable-manage-submodules', '--enable-locked-deps', '--enable-cargo-native-static', '--set', 'rust.codegen-units-std=1', '--set', 'dist.compression-profile=balanced', '--dist-compression-formats=xz', '--disable-dist-src', '--release-channel=nightly', '--enable-debug-assertions', '--enable-overflow-checks', '--enable-llvm-assertions', '--set', 'rust.verify-llvm-ir', '--set', 'rust.codegen-backends=llvm,cranelift,gcc', '--set', 'llvm.static-libstdcpp', '--enable-new-symbol-mangling']
configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/lib/llvm-17/bin/llvm-config
configure: llvm.link-shared     := True
configure: rust.thin-lto-import-instr-limit := 10
configure: change-id            := 99999999
---

---- [ui] tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs stdout ----
diff of stderr:

+ error[E0453]: deny(where_clauses_object_safety) incompatible with previous forbid
+    |
+    |
+ LL | #![deny(where_clauses_object_safety)]
+    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid
+    |
+    = note: `forbid` lint level is the default for where_clauses_object_safety
1 error: the trait `Foo` cannot be made into an object
2   --> $DIR/object-safety-err-where-bounds.rs:9:8
3    |


20 LL | #![deny(where_clauses_object_safety)]
22 
- error: aborting due to 1 previous error
+ error: aborting due to 2 previous errors
+ 
+ 
+ For more information about this error, try `rustc --explain E0453`.
+ Future incompatibility report: Future breakage diagnostic:
+ error: the trait `Foo` cannot be made into an object
+   --> $DIR/object-safety-err-where-bounds.rs:9:8
+    |
+ LL |     fn test(&self) where [u8; bar::<Self>()]: Sized;
+    |
+    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+    = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
+ note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
+ note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
+   --> $DIR/object-safety-err-where-bounds.rs:9:8
+    |
+ LL | trait Foo {
+    |       --- this trait cannot be made into an object...
+ LL |     fn test(&self) where [u8; bar::<Self>()]: Sized;
+    |        ^^^^ ...because method `test` references the `Self` type in its `where` clause
+    = help: consider moving `test` to another trait
+ note: the lint level is defined here
+    |
+    |
+ LL | #![deny(where_clauses_object_safety)]
24 
25 



The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds/object-safety-err-where-bounds.stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args const-generics/generic_const_exprs/object-safety-err-where-bounds.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds/auxiliary"
--- stderr -------------------------------
--- stderr -------------------------------
error[E0453]: deny(where_clauses_object_safety) incompatible with previous forbid
   |
   |
LL | #![deny(where_clauses_object_safety)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid
   |
   = note: `forbid` lint level is the default for where_clauses_object_safety
error: the trait `Foo` cannot be made into an object
##[error]  --> /checkout/tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs:9:8
   |
   |
LL |     fn test(&self) where [u8; bar::<Self>()]: Sized;
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
  --> /checkout/tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs:9:8
   |
LL | trait Foo {
   |       --- this trait cannot be made into an object...
LL |     fn test(&self) where [u8; bar::<Self>()]: Sized;
   |        ^^^^ ...because method `test` references the `Self` type in its `where` clause
   = help: consider moving `test` to another trait
  --> /checkout/tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs:3:9
   |
   |
LL | #![deny(where_clauses_object_safety)]

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0453`.
For more information about this error, try `rustc --explain E0453`.
Future incompatibility report: Future breakage diagnostic:
error: the trait `Foo` cannot be made into an object
##[error]  --> /checkout/tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs:9:8
   |
LL |     fn test(&self) where [u8; bar::<Self>()]: Sized;
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
  --> /checkout/tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs:9:8
   |
LL | trait Foo {
   |       --- this trait cannot be made into an object...
LL |     fn test(&self) where [u8; bar::<Self>()]: Sized;
   |        ^^^^ ...because method `test` references the `Self` type in its `where` clause
   = help: consider moving `test` to another trait
  --> /checkout/tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs:3:9
   |
   |
LL | #![deny(where_clauses_object_safety)]
------------------------------------------


---- [ui] tests/ui/future-incompatible-lint-group.rs stdout ----
---- [ui] tests/ui/future-incompatible-lint-group.rs stdout ----
diff of stderr:

+ error[E0453]: deny(future_incompatible) incompatible with previous forbid
+    |
+    |
+ LL | #![deny(future_incompatible)]
+    |         ^^^^^^^^^^^^^^^^^^^ overruled by previous forbid
+    |
+    = note: `forbid` lint level is the default for where_clauses_object_safety
1 warning: anonymous parameters are deprecated and will be removed in the next edition
2   --> $DIR/future-incompatible-lint-group.rs:7:10
3    |


17    = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
18    = note: `#[deny(invalid_doc_attributes)]` on by default
- error: aborting due to 1 previous error; 1 warning emitted
+ error: aborting due to 2 previous errors; 1 warning emitted
21 
+ For more information about this error, try `rustc --explain E0453`.
---
To only update this specific test, also pass `--test-args future-incompatible-lint-group.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/future-incompatible-lint-group.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/future-incompatible-lint-group" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/future-incompatible-lint-group/auxiliary"
--- stderr -------------------------------
--- stderr -------------------------------
error[E0453]: deny(future_incompatible) incompatible with previous forbid
   |
   |
LL | #![deny(future_incompatible)]
   |         ^^^^^^^^^^^^^^^^^^^ overruled by previous forbid
   |
   = note: `forbid` lint level is the default for where_clauses_object_safety
warning: anonymous parameters are deprecated and will be removed in the next edition
##[warning]  --> /checkout/tests/ui/future-incompatible-lint-group.rs:7:10
   |
   |
LL |     fn f(u8) {} //~ WARN anonymous parameters are deprecated
   |          ^^ help: try naming the parameter or explicitly ignoring it: `_: u8`
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
   = note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
   = note: `#[warn(anonymous_parameters)]` on by default


error: this attribute can only be applied at the crate level
##[error]  --> /checkout/tests/ui/future-incompatible-lint-group.rs:13:12
   |
LL |     #![doc(test(some_test))]
   |
   |
   = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
   = note: `#[deny(invalid_doc_attributes)]` on by default
error: aborting due to 2 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0453`.
------------------------------------------
------------------------------------------


---- [ui] tests/ui/issues/issue-50781.rs stdout ----
diff of stderr:

+ error[E0453]: deny(where_clauses_object_safety) incompatible with previous forbid
+    |
+    |
+ LL | #![deny(where_clauses_object_safety)]
+    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid
+    |
+    = note: `forbid` lint level is the default for where_clauses_object_safety
+ 
1 error: the trait `X` cannot be made into an object
3    |


20 LL | #![deny(where_clauses_object_safety)]
22 
- error: aborting due to 1 previous error
+ error: aborting due to 2 previous errors
+ 
+ 
+ For more information about this error, try `rustc --explain E0453`.
+ Future incompatibility report: Future breakage diagnostic:
+ error: the trait `X` cannot be made into an object
+    |
+    |
+ LL |     fn foo(&self) where Self: Trait;
+    |
+    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+    = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
+ note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
+ note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
+   --> $DIR/issue-50781.rs:6:8
+    |
+ LL | trait X {
+    |       - this trait cannot be made into an object...
+ LL |     fn foo(&self) where Self: Trait;
+    |        ^^^ ...because method `foo` references the `Self` type in its `where` clause
+    = help: consider moving `foo` to another trait
+ note: the lint level is defined here
+    |
+    |
+ LL | #![deny(where_clauses_object_safety)]
24 
25 



The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-50781/issue-50781.stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args issues/issue-50781.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/issues/issue-50781.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-50781" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-50781/auxiliary"
--- stderr -------------------------------
--- stderr -------------------------------
error[E0453]: deny(where_clauses_object_safety) incompatible with previous forbid
   |
   |
LL | #![deny(where_clauses_object_safety)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid
   |
   = note: `forbid` lint level is the default for where_clauses_object_safety

error: the trait `X` cannot be made into an object
   |
   |
LL |     fn foo(&self) where Self: Trait; //~ ERROR the trait `X` cannot be made into an object
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
  --> /checkout/tests/ui/issues/issue-50781.rs:6:8
   |
LL | trait X {
   |       - this trait cannot be made into an object...
LL |     fn foo(&self) where Self: Trait; //~ ERROR the trait `X` cannot be made into an object
   |        ^^^ ...because method `foo` references the `Self` type in its `where` clause
   = help: consider moving `foo` to another trait
  --> /checkout/tests/ui/issues/issue-50781.rs:1:9
   |
   |
LL | #![deny(where_clauses_object_safety)]

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0453`.
For more information about this error, try `rustc --explain E0453`.
Future incompatibility report: Future breakage diagnostic:
error: the trait `X` cannot be made into an object
   |
   |
LL |     fn foo(&self) where Self: Trait; //~ ERROR the trait `X` cannot be made into an object
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
  --> /checkout/tests/ui/issues/issue-50781.rs:6:8
   |
LL | trait X {
   |       - this trait cannot be made into an object...
LL |     fn foo(&self) where Self: Trait; //~ ERROR the trait `X` cannot be made into an object
   |        ^^^ ...because method `foo` references the `Self` type in its `where` clause
   = help: consider moving `foo` to another trait
  --> /checkout/tests/ui/issues/issue-50781.rs:1:9
   |
   |
LL | #![deny(where_clauses_object_safety)]
------------------------------------------


---- [ui] tests/ui/object-safety/issue-106247.rs stdout ----
---- [ui] tests/ui/object-safety/issue-106247.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/object-safety/issue-106247.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/object-safety/issue-106247" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/object-safety/issue-106247/auxiliary"
--- stderr -------------------------------
--- stderr -------------------------------
error[E0453]: deny(where_clauses_object_safety) incompatible with previous forbid
   |
   |
LL | #![deny(where_clauses_object_safety)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid
   |
   = note: `forbid` lint level is the default for where_clauses_object_safety
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0453`.
------------------------------------------
------------------------------------------


---- [ui] tests/ui/traits/vtable/vtable-vacant.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/traits/vtable/vtable-vacant.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/traits/vtable/vtable-vacant" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/traits/vtable/vtable-vacant/auxiliary"
--- stderr -------------------------------
--- stderr -------------------------------
error[E0453]: allow(where_clauses_object_safety) incompatible with previous forbid
   |
   |
LL | #![allow(where_clauses_object_safety)]
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid
   |
   = note: `forbid` lint level is the default for where_clauses_object_safety
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0453`.
------------------------------------------
------------------------------------------


---- [ui] tests/ui/where-clauses/self-in-where-clause-allowed.rs stdout ----
diff of stderr:

+ error[E0453]: deny(where_clauses_object_safety) incompatible with previous forbid
+    |
+    |
+ LL | #![deny(where_clauses_object_safety)]
+    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid
+    |
+    = note: `forbid` lint level is the default for where_clauses_object_safety
1 error[E0277]: the trait bound `dyn Trait: AutoTrait` is not satisfied
2   --> $DIR/self-in-where-clause-allowed.rs:22:18
3    |


10 LL |     fn autotrait_bound(&self) where Self: AutoTrait {}
12 
- error: aborting due to 1 previous error
+ error: aborting due to 2 previous errors
14 
---
To only update this specific test, also pass `--test-args where-clauses/self-in-where-clause-allowed.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/where-clauses/self-in-where-clause-allowed.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/where-clauses/self-in-where-clause-allowed" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/where-clauses/self-in-where-clause-allowed/auxiliary"
--- stderr -------------------------------
--- stderr -------------------------------
error[E0453]: deny(where_clauses_object_safety) incompatible with previous forbid
   |
   |
LL | #![deny(where_clauses_object_safety)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid
   |
   = note: `forbid` lint level is the default for where_clauses_object_safety
error[E0277]: the trait bound `dyn Trait: AutoTrait` is not satisfied
##[error]  --> /checkout/tests/ui/where-clauses/self-in-where-clause-allowed.rs:22:18
   |
   |
LL |     trait_object.autotrait_bound(); //~ ERROR: the trait bound `dyn Trait: AutoTrait` is not satisfied
   |                  ^^^^^^^^^^^^^^^ the trait `AutoTrait` is not implemented for `dyn Trait`
note: required by a bound in `Trait::autotrait_bound`
  --> /checkout/tests/ui/where-clauses/self-in-where-clause-allowed.rs:13:43
   |
   |
LL |     fn autotrait_bound(&self) where Self: AutoTrait {}

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0277, E0453.

@bors
Copy link
Contributor

bors commented Apr 23, 2024

☀️ Try build successful - checks-actions
Build commit: 4452337 (44523379467bbd2050af931a040d10c2b764b443)

@compiler-errors
Copy link
Member Author

@craterbot check

@craterbot
Copy link
Collaborator

👌 Experiment pr-124305 created and queued.
🤖 Automatically detected try build 4452337
🔍 You can check out the queue and this experiment's details.

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot craterbot added S-waiting-on-crater Status: Waiting on a crater run to be completed. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 23, 2024
@craterbot
Copy link
Collaborator

🚧 Experiment pr-124305 is now running

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot
Copy link
Collaborator

🎉 Experiment pr-124305 is completed!
📊 676 regressed and 2 fixed (441751 total)
📰 Open the full report.

⚠️ If you notice any spurious failure please add them to the blacklist!
ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot craterbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-crater Status: Waiting on a crater run to be completed. labels Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants