Skip to content

Conversation

@ahomescu
Copy link
Contributor

No description provided.

@ahomescu ahomescu force-pushed the ahomescu/restore_cross_checks_part1 branch from 1b3ac45 to 9731c3a Compare January 29, 2026 01:27
Copy link
Contributor

@thedataking thedataking left a comment

Choose a reason for hiding this comment

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

🚀

@ahomescu ahomescu merged commit bbcff96 into master Jan 29, 2026
11 checks passed
@ahomescu ahomescu deleted the ahomescu/restore_cross_checks_part1 branch January 29, 2026 01:57
Copy link
Contributor

@kkysen kkysen left a comment

Choose a reason for hiding this comment

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

Don't we need to add cross-checks either to members or exclude in the top-level Cargo.toml?

Comment on lines +1265 to +1272
out_items.push(
mk().single_attr("macro_use")
.extern_crate_item("c2rust_xcheck_derive", None),
);
out_items.push(
mk().single_attr("macro_use")
.extern_crate_item("c2rust_xcheck_runtime", None),
);
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need #[macro_use]s anymore.

Comment on lines +1 to +4
#ifndef CROSS_CHECKS_H
#define CROSS_CHECKS_H

#pragma once
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need both of these?

Comment on lines +44 to +55
[dependencies.c2rust-xcheck-plugin]
version = "*"

[dependencies.c2rust-xcheck-derive]
version = "*"

[dependencies.c2rust-xcheck-runtime]
version = "*"
features = ["libc-hash", "fixed-length-array-hash"]

[dependencies.c2rust-xcheck-backend-{{cross_check_backend}}]
version = "*"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
[dependencies.c2rust-xcheck-plugin]
version = "*"
[dependencies.c2rust-xcheck-derive]
version = "*"
[dependencies.c2rust-xcheck-runtime]
version = "*"
features = ["libc-hash", "fixed-length-array-hash"]
[dependencies.c2rust-xcheck-backend-{{cross_check_backend}}]
version = "*"
c2rust-xcheck-plugin = "*"
c2rust-xcheck-derive = "*"
c2rust-xcheck-runtime = { version = "*", features = ["libc-hash", "fixed-length-array-hash"] }
c2rust-xcheck-backend-{{cross_check_backend}} = "*"

Also, what's the reason for "*" instead of a specific version?

Comment on lines +4 to +5
version = "0.9.0"
edition = "2018"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we update these?

Comment on lines +135 to +136
# clang 3.6.0 is known to work; 3.4.0 known to not work.
ensure_clang_version([3, 6, 0])
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you test on a more recent clang? Pretty sure we don't support anything anywhere near this old anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants