-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Compilation error in the vulkano crate on nightly expected isize, found i32
#137662
Comments
Thank you for the report! It would be useful to bisect the regression using cargo-bisect-rustc to make it easier to figure out what happened and ping the relevant people. |
working on reducing this |
reduction: macro_rules! vulkan_enum {
{
$repr:ty
} => {
#[repr($repr)]
pub enum Foo {
Bar = 0i32,
}
}
}
vulkan_enum! {
i32
} bisection: searched nightlies: from nightly-2025-02-24 to nightly-2025-02-26 bisected with cargo-bisect-rustc v0.6.9Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start=2025-02-24 @rustbot label:S-has-mcve -E-needs-mcve S-has-bisection -E-needs-bisection |
@rustbot claim Oops, I'll fix this |
WG-prioritization assigning priority (Zulip discussion). (just signaling that this should not getting into the next stable, but given that this is a very recent regression, I think that's no problem) @rustbot label -I-prioritize +P-critical |
Same issue here. |
The simple fix is to make it a tt instead of a ty btw. I've fixed this locally but might not have time to make the pr tonight. |
Given that this is in a crate, that's not that easily applicable 😄. But it's fine if you take another day, people can just wait a bit with their nightly upgrades, or install an older nightly in the meantime. |
#137517 this pr will also fix the bug by reworking how interpolated tokens work. I was just reviewing it and it removes exactly the code I was modifying to fix it. We could wait for that too but that could be too slow |
pushing your fix first is probably reasonable |
…in an attr) and fix it
…cote fix usage of ty decl macro fragments in attributes See the test case. Due to one missing code path (and also the changes in rust-lang#137517), using $ty or other specific fragments as part of an attr wouldn't work. $tt used to work since it wouldn't be parsed anywhere along the way. Closes rust-lang#137662
…cote fix usage of ty decl macro fragments in attributes See the test case. Due to one missing code path (and also the changes in rust-lang#137517), using $ty or other specific fragments as part of an attr wouldn't work. $tt used to work since it wouldn't be parsed anywhere along the way. Closes rust-lang#137662
…cote fix usage of ty decl macro fragments in attributes See the test case. Due to one missing code path (and also the changes in rust-lang#137517), using $ty or other specific fragments as part of an attr wouldn't work. $tt used to work since it wouldn't be parsed anywhere along the way. Closes rust-lang#137662
…cote fix usage of ty decl macro fragments in attributes See the test case. Due to one missing code path (and also the changes in rust-lang#137517), using $ty or other specific fragments as part of an attr wouldn't work. $tt used to work since it wouldn't be parsed anywhere along the way. Closes rust-lang#137662
…cote fix usage of ty decl macro fragments in attributes See the test case. Due to one missing code path (and also the changes in rust-lang#137517), using $ty or other specific fragments as part of an attr wouldn't work. $tt used to work since it wouldn't be parsed anywhere along the way. Closes rust-lang#137662
…cote fix usage of ty decl macro fragments in attributes See the test case. Due to one missing code path (and also the changes in rust-lang#137517), using $ty or other specific fragments as part of an attr wouldn't work. $tt used to work since it wouldn't be parsed anywhere along the way. Closes rust-lang#137662
…cote fix usage of ty decl macro fragments in attributes See the test case. Due to one missing code path (and also the changes in rust-lang#137517), using $ty or other specific fragments as part of an attr wouldn't work. $tt used to work since it wouldn't be parsed anywhere along the way. Closes rust-lang#137662
…cote fix usage of ty decl macro fragments in attributes See the test case. Due to one missing code path (and also the changes in rust-lang#137517), using $ty or other specific fragments as part of an attr wouldn't work. $tt used to work since it wouldn't be parsed anywhere along the way. Closes rust-lang#137662
…cote fix usage of ty decl macro fragments in attributes See the test case. Due to one missing code path (and also the changes in rust-lang#137517), using $ty or other specific fragments as part of an attr wouldn't work. $tt used to work since it wouldn't be parsed anywhere along the way. Closes rust-lang#137662
…cote fix usage of ty decl macro fragments in attributes See the test case. Due to one missing code path (and also the changes in rust-lang#137517), using $ty or other specific fragments as part of an attr wouldn't work. $tt used to work since it wouldn't be parsed anywhere along the way. Closes rust-lang#137662
…cote fix usage of ty decl macro fragments in attributes See the test case. Due to one missing code path (and also the changes in rust-lang#137517), using $ty or other specific fragments as part of an attr wouldn't work. $tt used to work since it wouldn't be parsed anywhere along the way. Closes rust-lang#137662
Rollup merge of rust-lang#137758 - jdonszelmann:fix-137662, r=nnethercote fix usage of ty decl macro fragments in attributes See the test case. Due to one missing code path (and also the changes in rust-lang#137517), using $ty or other specific fragments as part of an attr wouldn't work. $tt used to work since it wouldn't be parsed anywhere along the way. Closes rust-lang#137662
Compiling the vulkano crate fails with the latest nightly.
Error:
(... skipped more of the same ...)
This is using the version 0.34.1 of
vulkano
but I have verified this also fails in the master branch of https://github.com/vulkano-rs/vulkano/The error was noticed because we build with nightly on our CI, and we depends on that crate
Version it worked on
Works on nightly-2025-02-24
rustc 1.87.0-nightly (f8a913b 2025-02-23)
Version with regression
Current nightly
rustc 1.87.0-nightly (85abb27 2025-02-25)
@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged
The text was updated successfully, but these errors were encountered: