Repository navigation
1.98 beta rustdoc crater regression: "no method named ... found" #159476
Copy link
Copy link
Closed
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyC-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityS-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Description
This regression was found by the 1.98 beta rustdoc crater run. (Edit: this also affects normal compilation.)
Error output
[INFO] [stdout] error[E0599]: no method named `array_max` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:275:19
[INFO] [stdout] |
[INFO] [stdout] 275 | Ok(s.array()?.array_max().into())
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_max` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout] help: there is a method `array_arg_max` with a similar name
[INFO] [stdout] |
[INFO] [stdout] 275 | Ok(s.array()?.array_arg_max().into())
[INFO] [stdout] | ++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_min` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:279:19
[INFO] [stdout] |
[INFO] [stdout] 279 | Ok(s.array()?.array_min().into())
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_min` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout] help: there is a method `array_median` with a similar name
[INFO] [stdout] |
[INFO] [stdout] 279 - Ok(s.array()?.array_min().into())
[INFO] [stdout] 279 + Ok(s.array()?.array_median().into())
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_sum` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:283:16
[INFO] [stdout] |
[INFO] [stdout] 283 | s.array()?.array_sum().map(Column::from)
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: there is a method `array_std` with a similar name, but with different arguments
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-ops-0.51.0/src/chunked_array/array/namespace.rs:70:5
[INFO] [stdout] |
[INFO] [stdout] 70 | fn array_std(&self, ddof: u8) -> PolarsResult<Series> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_sum` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_std` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:287:16
[INFO] [stdout] |
[INFO] [stdout] 287 | s.array()?.array_std(ddof).map(Column::from)
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: there is a method `array_sum` with a similar name, but with different arguments
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-ops-0.51.0/src/chunked_array/array/namespace.rs:46:5
[INFO] [stdout] |
[INFO] [stdout] 46 | fn array_sum(&self) -> PolarsResult<Series> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_std` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_var` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:291:16
[INFO] [stdout] |
[INFO] [stdout] 291 | s.array()?.array_var(ddof).map(Column::from)
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: there is a method `array_max` with a similar name, but with different arguments
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-ops-0.51.0/src/chunked_array/array/namespace.rs:36:5
[INFO] [stdout] |
[INFO] [stdout] 36 | fn array_max(&self) -> Series {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_var` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_mean` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:295:16
[INFO] [stdout] |
[INFO] [stdout] 295 | s.array()?.array_mean().map(Column::from)
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_mean` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout] help: there is a method `array_median` with a similar name
[INFO] [stdout] |
[INFO] [stdout] 295 | s.array()?.array_median().map(Column::from)
[INFO] [stdout] | ++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_median` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:299:16
[INFO] [stdout] |
[INFO] [stdout] 299 | s.array()?.array_median().map(Column::from)
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_median` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout] help: there is a method `array_mean` with a similar name
[INFO] [stdout] |
[INFO] [stdout] 299 - s.array()?.array_median().map(Column::from)
[INFO] [stdout] 299 + s.array()?.array_mean().map(Column::from)
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_unique_stable` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:305:12
[INFO] [stdout] |
[INFO] [stdout] 305 | ca.array_unique_stable()
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_unique_stable` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout] help: there is a method `array_unique` with a similar name
[INFO] [stdout] |
[INFO] [stdout] 305 - ca.array_unique_stable()
[INFO] [stdout] 305 + ca.array_unique()
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_unique` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:307:12
[INFO] [stdout] |
[INFO] [stdout] 307 | ca.array_unique()
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_unique` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout] help: there is a method `array_n_unique` with a similar name
[INFO] [stdout] |
[INFO] [stdout] 307 | ca.array_n_unique()
[INFO] [stdout] | ++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_n_unique` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:313:19
[INFO] [stdout] |
[INFO] [stdout] 313 | Ok(s.array()?.array_n_unique()?.into_column())
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_n_unique` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout] help: there is a method `array_unique` with a similar name
[INFO] [stdout] |
[INFO] [stdout] 313 - Ok(s.array()?.array_n_unique()?.into_column())
[INFO] [stdout] 313 + Ok(s.array()?.array_unique()?.into_column())
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_sort` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:332:19
[INFO] [stdout] |
[INFO] [stdout] 332 | Ok(s.array()?.array_sort(options)?.into_column())
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: there is a method `array_get` with a similar name, but with different arguments
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-ops-0.51.0/src/chunked_array/array/namespace.rs:136:5
[INFO] [stdout] |
[INFO] [stdout] 136 | fn array_get(&self, index: &Int64Chunked, null_on_oob: bool) -> PolarsResult<Series> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_sort` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_reverse` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:336:19
[INFO] [stdout] |
[INFO] [stdout] 336 | Ok(s.array()?.array_reverse().into_column())
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_reverse` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout] help: there is a method `reverse` with a similar name
[INFO] [stdout] |
[INFO] [stdout] 336 - Ok(s.array()?.array_reverse().into_column())
[INFO] [stdout] 336 + Ok(s.array()?.reverse().into_column())
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_arg_min` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:340:19
[INFO] [stdout] |
[INFO] [stdout] 340 | Ok(s.array()?.array_arg_min().into_column())
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_arg_min` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout] help: there is a method `array_min` with a similar name
[INFO] [stdout] |
[INFO] [stdout] 340 - Ok(s.array()?.array_arg_min().into_column())
[INFO] [stdout] 340 + Ok(s.array()?.array_min().into_column())
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_arg_max` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:344:19
[INFO] [stdout] |
[INFO] [stdout] 344 | Ok(s.array()?.array_arg_max().into_column())
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_arg_max` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout] help: there is a method `array_max` with a similar name
[INFO] [stdout] |
[INFO] [stdout] 344 - Ok(s.array()?.array_arg_max().into_column())
[INFO] [stdout] 344 + Ok(s.array()?.array_max().into_column())
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_get` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:351:8
[INFO] [stdout] |
[INFO] [stdout] 351 | ca.array_get(index, null_on_oob).map(Column::from)
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: there is a method `array_max` with a similar name, but with different arguments
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-ops-0.51.0/src/chunked_array/array/namespace.rs:36:5
[INFO] [stdout] |
[INFO] [stdout] 36 | fn array_max(&self) -> Series {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_get` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_join` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:357:8
[INFO] [stdout] |
[INFO] [stdout] 357 | ca.array_join(separator, ignore_nulls).map(Column::from)
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: there is a method `array_min` with a similar name, but with different arguments
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-ops-0.51.0/src/chunked_array/array/namespace.rs:41:5
[INFO] [stdout] |
[INFO] [stdout] 41 | fn array_min(&self) -> Series {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_join` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_shift` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:394:8
[INFO] [stdout] |
[INFO] [stdout] 394 | ca.array_shift(n.as_materialized_series()).map(Column::from)
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: there is a method `array_slice` with a similar name, but with different arguments
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-ops-0.51.0/src/chunked_array/array/namespace.rs:208:5
[INFO] [stdout] |
[INFO] [stdout] 208 | fn array_slice(&self, offset: i64, length: i64) -> PolarsResult<Series> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_shift` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `array_slice` found for reference `&polars_core::chunked_array::ChunkedArray<FixedSizeListType>` in the current scope
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-plan-0.51.0/src/plans/aexpr/function_expr/array.rs:399:8
[INFO] [stdout] |
[INFO] [stdout] 399 | ca.array_slice(offset, length).map(Column::from)
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: there is a method `array_shift` with a similar name, but with different arguments
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/polars-ops-0.51.0/src/chunked_array/array/namespace.rs:152:5
[INFO] [stdout] |
[INFO] [stdout] 152 | fn array_shift(&self, n: &Series) -> PolarsResult<Series> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: trait `ArrayNameSpace` which provides `array_slice` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout] |
[INFO] [stdout] 1 + use polars_ops::chunked_array::array::ArrayNameSpace;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] For more information about this error, try `rustc --explain E0599`.
Affects dependencies of an old version of polars-plan (polars-plan-0.51.0):
- https://crater-reports.s3.amazonaws.com/beta-rustdoc-1.98-3/1.98.0-beta.1/reg/pephub-client-0.2.0/log.txt
- https://crater-reports.s3.amazonaws.com/beta-rustdoc-1.98-3/1.98.0-beta.1/reg/peprs-cli-0.2.1/log.txt
- https://crater-reports.s3.amazonaws.com/beta-rustdoc-1.98-3/1.98.0-beta.1/reg/peprs-core-0.2.2/log.txt
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyC-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityS-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Activity
theemathas commentedon Jul 19, 2026
This regression is reproducible with an
cargo checkon an empty crate with the following dependency:theemathas commentedon Jul 19, 2026
Bisection result:
The only relevant PR from that rollup seems to be #145108? cc @petrochenkov @LorrensP-2158466
petrochenkov commentedon Jul 19, 2026
polars-planis a familiar name, we've seen in various crater reports related to ambiguous glob imports - https://github.com/rust-lang/rust/pulls?q=is%3Apr+"polars+plan"+is%3Aclosed.This case looks most similar to what #152822 tries to prevent.
4 remaining items
theemathas commentedon Jul 20, 2026
Self-contained reproducer (compiles on stable, errors on beta):
The regression seems to be very sensitive to the exact way the code is written.
LorrensP-2158466 commentedon Jul 20, 2026
Yeah, the lint tracks names that are glob imported. So for that example:
We track such ambiguously glob-imported traits so that we can report the lint in method picking (in this case the one you pasted).
That issue should be the tracking issue, seems that we missed that? @petrochenkov
Though, the self-contained reproducer should report the same lint:
So there is something wrong with resolution and ambiguity tracking of those traits, I am looking into it.
theemathas commentedon Jul 20, 2026
@LorrensP-2158466 It does report the same lint on stable.
LorrensP-2158466 commentedon Jul 20, 2026
Yeah, I just noticed, excuse me...
LorrensP-2158466 commentedon Jul 20, 2026
I think I found it. In
ensure_traits(the function used to record traits of a module):The problem here is that if a struct and trait are ambiguous, then it is possible that the struct will be the "main" declaration and the trait will be the ambiguous declaration:
And we thus never record that ambiguous trait, not even for the lint in question. So the fix is to also look at the ambiguous decl if the main decl is not a trait and check if that is a trait and push it to the
collected_traitsas an ambiguous one.petrochenkov commentedon Jul 20, 2026
Yes, this tracking issue was created after the PR was merged, and the link wasn't updated
rustbot commentedon Jul 20, 2026
Assigning P-high (discussion on Zulip).
Rollup merge of rust-lang#159599 - LorrensP-2158466:fix-ambig-trait-g…
Unrolled build for #159599
theemathas commentedon Jul 25, 2026
Fixed by #159599 and backported in #159791.
Rollup merge of #159599 - LorrensP-2158466:fix-ambig-trait-glob-lint,…