Skip to content

Update the min vcell version to v0.1.2 #484

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

Merged
merged 1 commit into from
Dec 3, 2020

Conversation

david-sawatzke
Copy link
Contributor

src/generate/generic.rs:53 contains an as_ptr() call on a vcell.
This was only added in vcell v0.1.1 (since yanked).

Thus, the generated crates only build with vcell v0.1.2

`src/generate/generic.rs:53` contains an `as_ptr()` call on a vcell.
This was only added in `vcell` v0.1.1 (since yanked).

Thus, the generated crates only build with vcell v0.1.2
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @therealprof (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-tools labels Dec 2, 2020
david-sawatzke added a commit to david-sawatzke/atsamd that referenced this pull request Dec 2, 2020
The `register.rs` file included in the output of svd2rust uses
`as_ptr()`, which was only added in vcell v0.1.1 (now yanked).

See rust-embedded/svd2rust#484
@therealprof
Copy link
Contributor

Hm, a specification of "0.1.0" should automatically pick up "0.1.2", so this should not cause a build problem unless there's an outdated Cargo.lock in your project.

Copy link
Contributor

@therealprof therealprof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

bors r+

@bors bors bot merged commit f8da18d into rust-embedded:master Dec 3, 2020
@david-sawatzke
Copy link
Contributor Author

david-sawatzke commented Dec 3, 2020

Hm, a specification of "0.1.0" should automatically pick up "0.1.2", so this should not cause a build problem unless there's an outdated Cargo.lock in your project.

(you already merged this, but I wanna get this in here) That works, but it should build with all allowed combinations, not just the most obvious ones. This could (but pretty unlikely) also lead to problems if some other dependency pins it's vcell version with "=0.1.0". It is a pretty small problem, because otherwise someone else would have noticed before me.

@david-sawatzke david-sawatzke deleted the refresh_vcell_min_ver branch December 3, 2020 13:19
sajattack pushed a commit to atsamd-rs/atsamd that referenced this pull request Dec 3, 2020
The `register.rs` file included in the output of svd2rust uses
`as_ptr()`, which was only added in vcell v0.1.1 (now yanked).

See rust-embedded/svd2rust#484
kaizensparc pushed a commit to kaizensparc/atsamd that referenced this pull request Dec 24, 2021
The `register.rs` file included in the output of svd2rust uses
`as_ptr()`, which was only added in vcell v0.1.1 (now yanked).

See rust-embedded/svd2rust#484
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-tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants