Ronno Das
Ronno Das
### Description The following code terminates before the refactoring but not after: ``` from itertools import count, product def loop(): for x in count(): for y in range(5): if x...
As implemented, comparison between BitFlags is not the same as `contains` and depends on the bit assigned to each variant (explicitly or implicitly via the ordering of the variants). This...
**rust-analyzer version**: 0.3.1850-standalone **rustc version**: rustc 1.76.0 (07dca489a 2024-02-04) **relevant settings**: nothing obviously relevant Using the "Unwrap block" assist at the marked cursor position in the code ```rust fn foo()...
It's often useful to keep track of the intermediate results in a fold, as in Haskell's `scanl`, for example if you want to turn a iterator of numbers into an...
This would be a breaking change either way, but `binomial(n, k)` with `n < 0` should either produce `(-1).pow(k) * binomial(k - n - 1, k) = n(n-1)...(n-k +1)/k!` or...
Instead of `a.is_subset(b)`, we should be able to write `a
With `expr` delimiters ``, trying to use the template ` and ` complains about `and` not being a field. Here is a full example that produces the error "no field...
### Summary If a `&mut String` argument is only used as the input to `clone_into`, then `ptr_arg` triggers erroneously. ### Lint Name ptr_arg ### Reproducer I tried this code: ```rust...
It would be convenient if there was a compile option to have math delimited by `\(` `\)` and `\[` `\]` (for inline and display respectively) instead of ``. This is...
I would like to have a method on "peekable" iterators with roughly the following signature and behavior similar to `PeekingNext::peeking_next`: ```rust fn peeking_next_map(&mut self, parse: impl FnOnce(&Self::Item) -> Option) ->...