-
I tried this code:
```rust
#[inline(never)]
pub const fn f(n: u8) {
assert!(n >= 4);
assert!(2 [!note]
> I've tried:
> - removing `const`
> - replacing `u8` by `usize`
> - replacing `4` by `…
-
When I try to publish the crate: https://github.com/rust-openvr/rust-openvr-sys I get the following error:
```
cargo publish --verbose
Updating registry `https://github.com/rust-lang/crates.io-in…
-
This is a Major Change Proposal for "Relink, don't rebuild" (RDR), which is a shorthand for reducing the amount of crate rebuilds happening when working with large multi-crate workspaces.
[Cargo issu…
-
### Check for existing issues
- [X] Completed
### Describe the feature
as of right now rust tests are being detected by custom code. It would probably be easier to use rust-analyzer for that.…
-
I just ran into this while working on https://github.com/launchbadge/sqlx/pull/3383
It'd be really nice to have syntax highlighting for TOML in crate docs, because I'm including a _lot_ of it.
I…
-
In a proc-macro that generates a macro_rules macro that triggers lints like `unsafe_op_in_unsafe_fn`, or `unsafe_attr_outside_unsafe`, the suggestion ends up suggesting that the `unsafe` should go aro…
-
Constify methods of `core::pin::Pin` under the feature `const_pin`.
Implementation: #76655
Methods in `const_pin` (stable since https://github.com/rust-lang/rust/pull/130136):
- `new`
- `new_uncheck…
-
Currently, `libusb-rs` is [unmaintained](https://github.com/dcuddeback/libusb-rs/issues/49). What's worse, latest Rust (1.79) isn't able to compile it anymore because of the cargo changes:
- https://…
-
The function
https://github.com/rust-lang/rust/blob/9b67bd42b7cbf97f72d039afcba02f5177d0d68c/src/librustc/hir/mod.rs#L2150-L2155
can abort compilation in case of errors. We're trying to eliminat…
-
This is not a duplicate of #6183 because
1. the import resolves.
2. `procMacro.enable` is set to `true`.
---
**rust-analyzer version**: 0.3.1983-standalone (7852a4c77 2024-06-02)
**rustc version*…