-
Notifications
You must be signed in to change notification settings - Fork 21
cargo: patch darling to avoid getters2 breakage #158
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
Conversation
13ee4a7
to
070e92a
Compare
I own getters2, I can just fix it if that's easier (or if you need it done fast, I'll accept any PR you throw my way) |
b51f9ee
to
f88b93c
Compare
@novafacing thanks for telling you had ownership on |
f88b93c
to
ca38e26
Compare
Current status: Compiling simics-test v0.1.1 (https://github.com/Wenzel/simulator-bindings.git?rev=efbbec4561a2efe7e87269c239757b1ee4f7060c#efbbec45)
warning: tsffs@0.2.2: No SIMICS_BASE environment variable found, using ispm to find installed packages and using latest base version
warning: tsffs@0.2.2: Using Simics base version 6.0.185
Compiling ispm-wrapper v0.1.1
error[E0277]: the trait bound `HashSet<ispm_wrapper::data::ProjectPackage>: From<[ProjectPackage; 3]>` is not satisfied
--> tests/riscv_64_kernel_from_userspace_magic_6_0_185.rs:16:19
|
16 | .packages([
| __________--------_^
| | |
| | required by a bound introduced by this call
17 | | ProjectPackage::builder()
18 | | .package_number(1000)
19 | | .version("6.0.185")
... |
28 | | .build(),
29 | | ])
| |_________^ the trait `From<[ProjectPackage; 3]>` is not implemented for `HashSet<ispm_wrapper::data::ProjectPackage>`
|
= help: the trait `From<[ProjectPackage; 3]>` is not implemented for `HashSet<ispm_wrapper::data::ProjectPackage>`
but trait `From<[ispm_wrapper::data::ProjectPackage; _]>` is implemented for it
= help: for that trait implementation, expected `ispm_wrapper::data::ProjectPackage`, found `ProjectPackage`
= note: required for `[ProjectPackage; 3]` to implement `Into<HashSet<ispm_wrapper::data::ProjectPackage>>`
note: required by a bound in `TestEnvSpecBuilder::<(__cargo_target_tmpdir, __name, (), __nonrepo_packages, __files, __directories, __simics_home, __package_repo, __install_all, __package_crates, __build_simics_version, __run_simics_version)>::packages`
--> /github/home/.cargo/git/checkouts/simulator-bindings-33fb754bb701870e/efbbec4/simics-test/src/lib.rs:170:10
|
170 | #[derive(TypedBuilder, Debug)]
| ^^^^^^^^^^^^ required by this bound in `TestEnvSpecBuilder::<(__cargo_target_tmpdir, __name, (), __nonrepo_packages, __files, __directories, __simics_home, __package_repo, __install_all, __package_crates, __build_simics_version, __run_simics_version)>::packages`
...
178 | packages: HashSet<ProjectPackage>,
| -------- required by a bound in this associated function
= note: this error originates in the derive macro `TypedBuilder` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `HashSet<ispm_wrapper::data::ProjectPackage>: From<[ProjectPackage; 5]>` is not satisfied
--> tests/x86_userspace_magic_6_0_185.rs:16:19
|
16 | .packages([
| __________--------_^
| | |
| | required by a bound introduced by this call
17 | | ProjectPackage::builder()
18 | | .package_number(1000)
19 | | .version("6.0.185")
... |
36 | | .build(),
37 | | ])
| |_________^ the trait `From<[ProjectPackage; 5]>` is not implemented for `HashSet<ispm_wrapper::data::ProjectPackage>`
|
= help: the trait `From<[ProjectPackage; 5]>` is not implemented for `HashSet<ispm_wrapper::data::ProjectPackage>`
but trait `From<[ispm_wrapper::data::ProjectPackage; _]>` is implemented for it
= help: for that trait implementation, expected `ispm_wrapper::data::ProjectPackage`, found `ProjectPackage`
= note: required for `[ProjectPackage; 5]` to implement `Into<HashSet<ispm_wrapper::data::ProjectPackage>>`
note: required by a bound in `TestEnvSpecBuilder::<(__cargo_target_tmpdir, __name, (), __nonrepo_packages, __files, __directories, __simics_home, __package_repo, __install_all, __package_crates, __build_simics_version, __run_simics_version)>::packages`
--> /github/home/.cargo/git/checkouts/simulator-bindings-33fb754bb701870e/efbbec4/simics-test/src/lib.rs:170:10
|
170 | #[derive(TypedBuilder, Debug)]
| ^^^^^^^^^^^^ required by this bound in `TestEnvSpecBuilder::<(__cargo_target_tmpdir, __name, (), __nonrepo_packages, __files, __directories, __simics_home, __package_repo, __install_all, __package_crates, __build_simics_version, __run_simics_version)>::packages`
...
178 | packages: HashSet<ProjectPackage>,
| -------- required by a bound in this associated function
= note: this error originates in the derive macro `TypedBuilder` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `HashSet<ispm_wrapper::data::ProjectPackage>: From<[ProjectPackage; 3]>` is not satisfied
--> tests/riscv_64_userspace_magic_6_0_185.rs:16:19
|
16 | .packages([
| __________--------_^
| | |
| | required by a bound introduced by this call
17 | | ProjectPackage::builder()
18 | | .package_number(1000)
19 | | .version("6.0.185")
... |
28 | | .build(),
29 | | ])
| |_________^ the trait `From<[ProjectPackage; 3]>` is not implemented for `HashSet<ispm_wrapper::data::ProjectPackage>`
|
= help: the trait `From<[ProjectPackage; 3]>` is not implemented for `HashSet<ispm_wrapper::data::ProjectPackage>`
but trait `From<[ispm_wrapper::data::ProjectPackage; _]>` is implemented for it
= help: for that trait implementation, expected `ispm_wrapper::data::ProjectPackage`, found `ProjectPackage`
= note: required for `[ProjectPackage; 3]` to implement `Into<HashSet<ispm_wrapper::data::ProjectPackage>>`
note: required by a bound in `TestEnvSpecBuilder::<(__cargo_target_tmpdir, __name, (), __nonrepo_packages, __files, __directories, __simics_home, __package_repo, __install_all, __package_crates, __build_simics_version, __run_simics_version)>::packages`
--> /github/home/.cargo/git/checkouts/simulator-bindings-33fb754bb701870e/efbbec4/simics-test/src/lib.rs:170:10
|
170 | #[derive(TypedBuilder, Debug)]
| ^^^^^^^^^^^^ required by this bound in `TestEnvSpecBuilder::<(__cargo_target_tmpdir, __name, (), __nonrepo_packages, __files, __directories, __simics_home, __package_repo, __install_all, __package_crates, __build_simics_version, __run_simics_version)>::packages`
...
178 | packages: HashSet<ProjectPackage>,
| -------- required by a bound in this associated function
= note: this error originates in the derive macro `TypedBuilder` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `HashSet<ispm_wrapper::data::ProjectPackage>: From<[ProjectPackage; 3]>` is not satisfied
--> tests/riscv_64_kernel_from_userspace_magic_6_0_185.rs:85:19
|
85 | .packages([
| __________--------_^
| | |
| | required by a bound introduced by this call
86 | | ProjectPackage::builder()
87 | | .package_number(1000)
88 | | .version("6.0.185")
... |
97 | | .build(),
98 | | ])
| |_________^ the trait `From<[ProjectPackage; 3]>` is not implemented for `HashSet<ispm_wrapper::data::ProjectPackage>`
|
= help: the trait `From<[ProjectPackage; 3]>` is not implemented for `HashSet<ispm_wrapper::data::ProjectPackage>`
but trait `From<[ispm_wrapper::data::ProjectPackage; _]>` is implemented for it
= help: for that trait implementation, expected `ispm_wrapper::data::ProjectPackage`, found `ProjectPackage`
= note: required for `[ProjectPackage; 3]` to implement `Into<HashSet<ispm_wrapper::data::ProjectPackage>>`
note: required by a bound in `TestEnvSpecBuilder::<(__cargo_target_tmpdir, __name, (), __nonrepo_packages, __files, __directories, __simics_home, __package_repo, __install_all, __package_crates, __build_simics_version, __run_simics_version)>::packages`
--> /github/home/.cargo/git/checkouts/simulator-bindings-33fb754bb701870e/efbbec4/simics-test/src/lib.rs:170:10
|
170 | #[derive(TypedBuilder, Debug)]
| ^^^^^^^^^^^^ required by this bound in `TestEnvSpecBuilder::<(__cargo_target_tmpdir, __name, (), __nonrepo_packages, __files, __directories, __simics_home, __package_repo, __install_all, __package_crates, __build_simics_version, __run_simics_version)>::packages`
...
178 | packages: HashSet<ProjectPackage>,
| -------- required by a bound in this associated function
= note: this error originates in the derive macro `TypedBuilder` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0277`. |
@novafacing could you help me figure out this one ? Compiling simics-test v0.1.1 (https://github.com/Wenzel/simulator-bindings.git?rev=efbbec4561a2efe7e87269c239757b1ee4f7060c#efbbec45)
warning: tsffs@0.2.2: No SIMICS_BASE environment variable found, using ispm to find installed packages and using latest base version
warning: tsffs@0.2.2: Using Simics base version 6.0.185
Compiling ispm-wrapper v0.1.1
error[E0277]: the trait bound `HashSet<ispm_wrapper::data::ProjectPackage>: From<[ProjectPackage; 3]>` is not satisfied
--> tests/riscv_64_kernel_from_userspace_magic_6_0_185.rs:16:19
|
16 | .packages([
| __________--------_^
| | |
| | required by a bound introduced by this call
17 | | ProjectPackage::builder()
18 | | .package_number(1000)
19 | | .version("6.0.185")
... |
28 | | .build(),
29 | | ])
| |_________^ the trait `From<[ProjectPackage; 3]>` is not implemented for `HashSet<ispm_wrapper::data::ProjectPackage>`
|
= help: the trait `From<[ProjectPackage; 3]>` is not implemented for `HashSet<ispm_wrapper::data::ProjectPackage>`
but trait `From<[ispm_wrapper::data::ProjectPackage; _]>` is implemented for it
= help: for that trait implementation, expected `ispm_wrapper::data::ProjectPackage`, found `ProjectPackage`
= note: required for `[ProjectPackage; 3]` to implement `Into<HashSet<ispm_wrapper::data::ProjectPackage>>`
note: required by a bound in `TestEnvSpecBuilder::<(__cargo_target_tmpdir, __name, (), __nonrepo_packages, __files, __directories, __simics_home, __package_repo, __install_all, __package_crates, __build_simics_version, __run_simics_version)>::packages`
--> /github/home/.cargo/git/checkouts/simulator-bindings-33fb754bb701870e/efbbec4/simics-test/src/lib.rs:170:10
|
170 | #[derive(TypedBuilder, Debug)]
| ^^^^^^^^^^^^ required by this bound in `TestEnvSpecBuilder::<(__cargo_target_tmpdir, __name, (), __nonrepo_packages, __files, __directories, __simics_home, __package_repo, __install_all, __package_crates, __build_simics_version, __run_simics_version)>::packages`
...
178 | packages: HashSet<ProjectPackage>,
| -------- required by a bound in this associated function
= note: this error originates in the derive macro `TypedBuilder` (in Nightly builds, run with -Z macro-backtrace for more info) I'm clueless as to why this suddenly breaks ? |
Are there two versions of ispm_wrapper in your dependency tree? |
@novafacing thanks, i had multiple references to the online crate while i was using a local copy:
The build passes now: diff --git a/Cargo.toml b/Cargo.toml
index f622a8f..b5ad1d1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -64,12 +64,12 @@ yaxpeax-riscv = { git = "https://github.com/DrChat/yaxpeax-riscv", version = "0.
"serde",
], rev = "5973ff8" }
crc32fast = "1.4.2"
-simics = "0.1.2"
+simics = { path = "./simulator-bindings/simics" }
indoc = "2.0.5"
serde = { version = "1.0.210", features = ["derive"] }
serde_json = "1.0.128"
versions = { version = "6.2.0", features = ["serde"] }
-ffi = "0.1.1"
+ffi = { git = "https://github.com/Wenzel/ffi", rev = "496832d73717bb8e1ec82ea6603bbf393f451167" }
num-traits = "0.2.19"
num-derive = "0.4.2"
tracing-subscriber = "0.3.18"
@@ -105,16 +105,16 @@ thiserror = "1.0.63"
lcov2 = "0.1.0"
[dev-dependencies]
-simics-test = { git = "https://github.com/Wenzel/simulator-bindings.git", rev = "4a33e71c3f688fd889924a357f742378cfd2ccc9" }
+simics-test = { path = "./simulator-bindings/simics-test" }
anyhow = "1.0.86"
command-ext = "0.1.2"
indoc = "2.0.5"
-ispm-wrapper = "0.1.1"
+ispm-wrapper = { path = "./simulator-bindings/ispm-wrapper" }
versions = { version = "6.2.0", features = ["serde"] }
[build-dependencies]
-simics = "0.1.2"
-simics-build-utils = "0.1.1"
+simics = { path = "./simulator-bindings/simics" }
+simics-build-utils = { path = "./simulator-bindings/simics-build-utils" }
PRs to pin darling are on the way |
02a7bdd
to
4b1ae32
Compare
[profile.release] | ||
lto = true | ||
codegen-units = 1 | ||
opt-level = 3 | ||
debug = true | ||
|
||
# Temporary patch to pin darling to v0.20.10 | ||
[patch.crates-io] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@novafacing i'll merge this patch in the meantime to fix the CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brandonmarken can i have your review ?
Uh oh!
There was an error while loading. Please reload this page.