Rename AsyncIterator back to Stream, introduce an AFIT-based AsyncIterator trait by yoshuawuyts · Pull Request #119550 · rust-lang/rust (original) (raw)
GITHUB_ACTION=__run_7
GITHUB_ACTIONS=true
GITHUB_ACTION_REF=
GITHUB_ACTION_REPOSITORY=
GITHUB_ACTOR=yoshuawuyts
GITHUB_API_URL=https://api.github.com
GITHUB_BASE_REF=master
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_12857ce6-dd04-4b06-bf52-e1f1c0cdb282
GITHUB_EVENT_NAME=pull_request
GITHUB_EVENT_NAME=pull_request
GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
GITHUB_HEAD_REF=async-iterator
GITHUB_JOB=pr
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_12857ce6-dd04-4b06-bf52-e1f1c0cdb282
GITHUB_REF=refs/pull/119550/merge
GITHUB_REF_NAME=119550/merge
GITHUB_REF_PROTECTED=false
---
GITHUB_SERVER_URL=https://github.com
GITHUB_SHA=2afd8542a138b8485c1210bff510111234ac7945
GITHUB_STATE=/home/runner/work/_temp/_runner_file_commands/save_state_12857ce6-dd04-4b06-bf52-e1f1c0cdb282
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_12857ce6-dd04-4b06-bf52-e1f1c0cdb282
GITHUB_TRIGGERING_ACTOR=yoshuawuyts
GITHUB_WORKFLOW_REF=rust-lang/rust/.github/workflows/ci.yml@refs/pull/119550/merge
GITHUB_WORKFLOW_SHA=2afd8542a138b8485c1210bff510111234ac7945
GITHUB_WORKSPACE=/home/runner/work/rust/rust
GOROOT_1_19_X64=/opt/hostedtoolcache/go/1.19.13/x64
---
Built container sha256:9c3c93a371e5aed5c18185b24f130d95d5140dbd72a9b325e7b6b49e521a4faa
Looks like docker image is the same as before, not uploading
https://ci-caches.rust-lang.org/docker/7ebc15c01a233894034d277c8cce4e949f4e7791f66b4727c8fb6e058a0b8171d6152e1441d677cef0653843ceeee469c097b8699b2bb74249e674f6aa1a8813
sha256:9c3c93a371e5aed5c18185b24f130d95d5140dbd72a9b325e7b6b49e521a4faa
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-16]
##[group]Clock drift check
local time: Mon Jan 22 12:37:51 UTC 2024
network time: Mon, 22 Jan 2024 12:37:51 GMT
network time: Mon, 22 Jan 2024 12:37:51 GMT
##[endgroup]
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-16', '--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', '--set', 'build.optimized-compiler-builtins', '--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-16/bin/llvm-config
configure: llvm.link-shared := True
configure: rust.thin-lto-import-instr-limit := 10
configure: change-id := 99999999
---
---- [ui] tests/ui/associated-inherent-types/issue-109071.rs#with_gate stdout ----
diff of stderr:
32 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33 LL | fn T() -> Option<<Windows<T> as IntoIterator>::Item> {}
34 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ LL | fn T() -> Option<<Windows<T> as IntoStream>::Item> {}
35
36 error: aborting due to 3 previous errors
37
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-inherent-types/issue-109071.with_gate/issue-109071.with_gate.stderr
To only update this specific test, also pass `--test-args associated-inherent-types/issue-109071.rs`
error in revision `with_gate`: 1 errors occurred comparing output.
status: exit status: 1
status: exit status: 1
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/associated-inherent-types/issue-109071.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" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--cfg" "with_gate" "--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/associated-inherent-types/issue-109071.with_gate" "-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/associated-inherent-types/issue-109071.with_gate/auxiliary"
--- stderr -------------------------------
--- stderr -------------------------------
error[E0637]: `&` without an explicit lifetime name cannot be used here
|
|
LL | type Item = &[T]; //~ ERROR: `&` without an explicit lifetime name cannot be used here
| ^ explicit lifetime name needed here
error[E0107]: missing generics for struct `Windows`
##[error] --> /checkout/tests/ui/associated-inherent-types/issue-109071.rs:7:9
|
|
LL | impl<T> Windows { //~ ERROR: missing generics for struct `Windows`
| ^^^^^^^ expected 1 generic argument
note: struct defined here, with 1 generic parameter: `T`
--> /checkout/tests/ui/associated-inherent-types/issue-109071.rs:5:8
|
|
LL | struct Windows<T> { t: T }
help: add missing generic argument
|
|
LL | impl<T> Windows<T> { //~ ERROR: missing generics for struct `Windows`
error[E0223]: ambiguous associated type
##[error] --> /checkout/tests/ui/associated-inherent-types/issue-109071.rs:15:22
|
|
LL | fn T() -> Option<Self::Item> {}
|
help: use fully-qualified syntax
|
|
LL | fn T() -> Option<<Windows<T> as IntoAsyncIterator>::Item> {}
Build completed unsuccessfully in 0:13:17
Build completed unsuccessfully in 0:13:17
LL | fn T() -> Option<<Windows<T> as IntoIterator>::Item> {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LL | fn T() -> Option<<Windows<T> as IntoStream>::Item> {}
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0107, E0223, E0637.
---
--- stderr -------------------------------
error[E0425]: cannot find value `stream` in this scope
##[error] --> /checkout/tests/ui/coroutine/async-gen-yield-ty-is-unit.rs:15:5
|
LL | stream.poll_next(ctx);
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0425`.