We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am working on https://github.com/alisterd51/gratOS
A bug seems to have been introduced in clippy nightly.
git clone https://github.com/alisterd51/gratOS cd gratOS cargo clippy
The problematic code seems to be the following:
use super::{BUFFER_WIDTH, Screen, ScreenChar, ScreenCharLine}; use crate::io::outb; #[repr(transparent)] struct Buffer { chars: Screen, } [...]
rustc 1.87.0-nightly (00f245915 2025-02-26) binary: rustc commit-hash: 00f245915b0c7839d42c26f9628220c4f1b93bf6 commit-date: 2025-02-26 host: x86_64-unknown-linux-gnu release: 1.87.0-nightly LLVM version: 20.1.0
thread 'rustc' panicked at /rustc/00f245915b0c7839d42c26f9628220c4f1b93bf6/compiler/rustc_hir/src/hir.rs:1165:18: can't get the span of an arbitrary parsed attribute: Parsed(Repr([(ReprTransparent, src/driver/vga/text_mode.rs:4:8: 4:19 (#0))])) stack backtrace: 0: 0x72c89322fe25 - std::backtrace::Backtrace::create::h1e3c43ff134d0a33 1: 0x72c8915af2a5 - std::backtrace::Backtrace::force_capture::h75965a4aa80bbf9e 2: 0x72c8907242fe - std[63ccf99907648090]::panicking::update_hook::<alloc[40f330a4b1dfe34e]::boxed::Box<rustc_driver_impl[44d86c3fd4736e11]::install_ice_hook::{closure#1}>>::{closure#0} 3: 0x72c8915c79d3 - std::panicking::rust_panic_with_hook::hc531b406179c95b0 4: 0x72c8915c76ca - std::panicking::begin_panic_handler::{{closure}}::hcdc071f581557557 5: 0x72c8915c4f89 - std::sys::backtrace::__rust_end_short_backtrace::h0fbed5a87d7f358d 6: 0x72c8915c738d - rust_begin_unwind 7: 0x72c88e259d50 - core::panicking::panic_fmt::h459d961e1d0721af 8: 0x556cc99b5699 - <clippy_lints[fa263d50b990e5dd]::macro_use::MacroUseImports as rustc_lint[462e4f7eae09b0af]::passes::LateLintPass>::check_attribute 9: 0x72c890c0c606 - <rustc_lint[462e4f7eae09b0af]::late::LateContextAndPass<rustc_lint[462e4f7eae09b0af]::late::RuntimeCombinedLateLintPass> as rustc_hir[d00047872d62e706]::intravisit::Visitor>::visit_nested_item 10: 0x72c890c0c820 - <rustc_lint[462e4f7eae09b0af]::late::LateContextAndPass<rustc_lint[462e4f7eae09b0af]::late::RuntimeCombinedLateLintPass> as rustc_hir[d00047872d62e706]::intravisit::Visitor>::visit_nested_item 11: 0x72c890c0c820 - <rustc_lint[462e4f7eae09b0af]::late::LateContextAndPass<rustc_lint[462e4f7eae09b0af]::late::RuntimeCombinedLateLintPass> as rustc_hir[d00047872d62e706]::intravisit::Visitor>::visit_nested_item 12: 0x72c890c0c820 - <rustc_lint[462e4f7eae09b0af]::late::LateContextAndPass<rustc_lint[462e4f7eae09b0af]::late::RuntimeCombinedLateLintPass> as rustc_hir[d00047872d62e706]::intravisit::Visitor>::visit_nested_item 13: 0x72c892e8e7cb - rustc_lint[462e4f7eae09b0af]::late::check_crate::{closure#0} 14: 0x72c892e8eaab - rustc_lint[462e4f7eae09b0af]::late::check_crate 15: 0x72c892e92432 - rustc_interface[e696fb279c73d43f]::passes::analysis 16: 0x72c892e92219 - rustc_query_impl[14741ea0e0b48805]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[14741ea0e0b48805]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[fe836999645634e1]::query::erase::Erased<[u8; 0usize]>> 17: 0x72c892e8daea - rustc_query_system[964dfde9a4346c01]::query::plumbing::try_execute_query::<rustc_query_impl[14741ea0e0b48805]::DynamicConfig<rustc_query_system[964dfde9a4346c01]::query::caches::SingleCache<rustc_middle[fe836999645634e1]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[14741ea0e0b48805]::plumbing::QueryCtxt, true> 18: 0x72c892e8d4e2 - rustc_query_impl[14741ea0e0b48805]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace 19: 0x72c892f3777c - rustc_interface[e696fb279c73d43f]::passes::create_and_enter_global_ctxt::<core[e205c6c2c408574d]::option::Option<rustc_interface[e696fb279c73d43f]::queries::Linker>, rustc_driver_impl[44d86c3fd4736e11]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0} 20: 0x72c892f282e0 - rustc_interface[e696fb279c73d43f]::interface::run_compiler::<(), rustc_driver_impl[44d86c3fd4736e11]::run_compiler::{closure#0}>::{closure#1} 21: 0x72c892daedc8 - std[63ccf99907648090]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[e696fb279c73d43f]::util::run_in_thread_with_globals<rustc_interface[e696fb279c73d43f]::util::run_in_thread_pool_with_globals<rustc_interface[e696fb279c73d43f]::interface::run_compiler<(), rustc_driver_impl[44d86c3fd4736e11]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> 22: 0x72c892daf574 - <<std[63ccf99907648090]::thread::Builder>::spawn_unchecked_<rustc_interface[e696fb279c73d43f]::util::run_in_thread_with_globals<rustc_interface[e696fb279c73d43f]::util::run_in_thread_pool_with_globals<rustc_interface[e696fb279c73d43f]::interface::run_compiler<(), rustc_driver_impl[44d86c3fd4736e11]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[e205c6c2c408574d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 23: 0x72c892db0a6f - std::sys::pal::unix::thread::Thread::new::thread_start::h8f2a48bb719a6902 24: 0x72c88cc9caa4 - start_thread at ./nptl/pthread_create.c:447:8 25: 0x72c88cd29c3c - clone3 at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0 26: 0x0 - <unknown> rustc version: 1.87.0-nightly (00f245915 2025-02-26) platform: x86_64-unknown-linux-gnu query stack during panic: #0 [analysis] running analysis passes on this crate end of query stack
The text was updated successfully, but these errors were encountered:
Duplicate of #14303
Sorry, something went wrong.
No branches or pull requests
Summary
I am working on https://github.com/alisterd51/gratOS
A bug seems to have been introduced in clippy nightly.
Bug reproduction
git clone https://github.com/alisterd51/gratOS cd gratOS cargo clippy
The problematic code seems to be the following:
Version
Error output
Backtrace
The text was updated successfully, but these errors were encountered: