I'm new to rustlang and I have been working on an application which seems to give deprecation warnings for the inclusive range syntax. The recommended syntax is ..= but that causes compilation with rustc 1.24 to fail (since this new syntax was intriduced in 1.26).
What is the correct way to handle such issues?
It would be great if you could tell a generic way of handling any such issues rather than just this one.
Thank you for your time.
Thanks! This works but I was expecting ..= to work with 1.24, turns out, this allows ... in the newer versions and throws Warn-by-default Lints - The rustc book in 1.24. Is this how its supposed to be?
Thanks a lot. Although, I'm not sure if that is a good thing to do. That would suppress all the warnings about unknown lints and it might be tough to catch spelling mistakes in lints thereafter.
Shrug. I'm not sure what else you expect here. This is the price one pays for maintaining an old MSRV: the rest of the ecosystem will eventually leave you behind. My suggestion is to just stop maintaining such an old MSRV (even though I do the same for some crates, I tend to only be strict about it for very widely used crates).
Otherwise, if this really bothers you, then you can use #[allow(ellipsis_inclusive_range_patterns, unknown_lints)] at each use of ... directly in order to limit its scope instead of applying it to the entire crate.