-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Latest cargo nightly is segfaulting in toml #344
Comments
Sadly this is a dupe of rust-lang/rust#15763, hopefully it'll be fixed by rust-lang/rust#16081 soon though! The root cause is the invalid TOML. |
geomaster
added a commit
to geomaster/cargo
that referenced
this issue
Dec 23, 2014
rust-lang/rust#19253 and rust-lang/rust@25f8051 have introduced changes to the namespacing within the std::collections::hash_map, breaking some of Cargo code which imported these. rust-lang/rust@cf350ea, implementing changes proposed by RFC rust-lang#344, have also broken some code which relies on hash_set::SetItems (now renamed to hash_set::Iter). This commit fixes the incompatibilities: imports of std::collections::hash_map::{Occupied, Vacant} have been replaced by imports of std::collections::hash_map::Entry::{Occupied, Vacant} and one instance where the SetItems has been used was replaced by the proper usage of Iter.
Merged
bors
added a commit
that referenced
this issue
Dec 25, 2014
rust-lang/rust#19253 and rust-lang/rust@25f8051 have introduced changes to the namespacing within the std::collections::hash_map, breaking some of Cargo code which imported these. rust-lang/rust@cf350ea, implementing changes proposed by RFC #344, have also broken some code which relies on hash_set::SetItems (now renamed to hash_set::Iter). This PR fixes the incompatibilities: imports of std::collections::hash_map::{Occupied, Vacant} have been replaced by imports of std::collections::hash_map::Entry::{Occupied, Vacant} and one instance where the SetItems has been used was replaced by the proper usage of Iter.
bors
added a commit
that referenced
this issue
Mar 25, 2024
refactor: Make lint names snake_case When working on #13621, I somehow missed that lint names should be `snake_case` according to the [`rustc-dev-guide`](https://rustc-dev-guide.rust-lang.org/diagnostics.html#lint-naming) as well as [`RFC #344`](https://rust-lang.github.io/rfcs/0344-conventions-galore.html#lints). This PR renames: - `implicit-features` => `implicit_featires` - `rust-2024-compatibility` => `rust_2024_compatibility`. <hr> Note: We should probably have some tooling to enforce this, but I was unsure if it belonged to this PR or another one. One solution would be to use a macro to create the `const LINT_NAME: Lint = {...}`, where `LINT_NAME` would be the `ident` as well as the `name: &'static str` and then have a method on `Lint` to make it lowercase as needed. This is what `rustc` does, and it could work well here. It would ensure snake case as `const` names need to be [`SCREAMING_SNAKE_CASE`](https://rust-lang.github.io/rfcs/0430-finalizing-naming-conventions.html#general-naming-conventions), or a warning is shown.
bors
added a commit
that referenced
this issue
May 1, 2024
fix(lints): Remove ability to specify `-` in lint name In a recent Cargo Team meeting, it was discussed whether our lint should use `-` or `_` and if we should rewrite the wrong form to the correct one. It was decided that Cargo would use `_` for lint names and would not convert `-` to `_` automatically; instead, we would warn about an "unknown lint" and mention the similarly named lint with `_`, if found. The decision to ise `_` was made because it is the canonical representation, as well as [RFC #344](https://rust-lang.github.io/rfcs/0344-conventions-galore.html#lints) specifies: > Use snake case in the same way you would for function names. This PR implements these changes. Note: This adds an `unknown_lints` lint, that tries to mirror [the lint `rustc` has with the same name](https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#unknown-lints).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I installed the latest Cargo nightly on a clean ubuntu box:
My manifest:
The text was updated successfully, but these errors were encountered: