You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Very minor changes causing unrelated module to fail to compile in a nonsense fashion #32222
Unfortunately, I can't reproduce this at a smaller scale. This issue occurs with https://github.com/sgrif/diesel as of commit 9084bb62d74f50e5686a85d6145cfe655ee2a3ba. Rust version is rustc 1.9.0-nightly (c9629d61c 2016-03-10)
Currently the tests (run from the diesel_tests directory with cargo test --no-default-features --features "unstable postgres") pass. However, applying the following patch:
diff --git a/diesel_tests/tests/boxed_queries.rs b/diesel_tests/tests/boxed_queries.rs
new file mode 100644
index 0000000..5cb4cbb
--- /dev/null+++ b/diesel_tests/tests/boxed_queries.rs@@ -0,0 +1,2 @@+use super::schema::*;+use diesel::*;diff --git a/diesel_tests/tests/lib.rs b/diesel_tests/tests/lib.rs
index aef11d1..901a091 100644
--- a/diesel_tests/tests/lib.rs+++ b/diesel_tests/tests/lib.rs@@ -11,6 +11,7 @@ include!("lib.in.rs");
include!(concat!(env!("OUT_DIR"), "/lib.rs"));
mod associations;
+mod boxed_queries;
mod expressions;
mod connection;
mod filter;
causes the following compiler error:
tests/types_roundtrip.rs:87:9: 87:18 error: a module named `connection` has already been imported in this module [E0252]
tests/types_roundtrip.rs:87 use super::*;
^~~~~~~~~
tests/types_roundtrip.rs:87:9: 87:18 help: run `rustc --explain E0252` to see a detailed explanation
tests/types_roundtrip.rs:87:9: 87:18 note: previous import of `connection` here
tests/types_roundtrip.rs:87 use super::*;
which is claiming that an import conflicts with itself. I have pushed up the branch compiler-error-demo with that change applied for easy reproduction. Again, I'm sorry that I cannot provide a report on a smaller scale, but this appears to be some edge case blowing up. I have no clue why adding a module with a few imports and nothing else would be causing this issue.
I can confirm that this issue does not occur on nightly-2016-03-05. Unfortunately, there was a bug that prevented us from compiling on nightly-2016-03-06 that wasn't fixed until nightly-2016-03-11, so I cannot provide anything more specific than that.
Activity
sgrif commentedon Mar 13, 2016
Bisecting to find the nightly which caused this
sgrif commentedon Mar 13, 2016
I can confirm that this issue does not occur on
nightly-2016-03-05. Unfortunately, there was a bug that prevented us from compiling onnightly-2016-03-06that wasn't fixed untilnightly-2016-03-11, so I cannot provide anything more specific than that.Add `#into_boxed` to all queries, for conditional changes
alexcrichton commentedon Mar 13, 2016
cc @jseyfried
jseyfried commentedon Mar 13, 2016
@sgrif Thanks for the report!
This bug was introduced in #31726. I diagnosed the issue and will fix it ASAP.
Auto merge of #32227 - jseyfried:fix_import_resolution_bug, r=alexcri…
Add `#into_boxed` to all queries, for conditional changes
Add `#into_boxed` to all queries, for conditional changes