Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Remove Rust 1.79.0 section from Anchor installation #568

Conversation

acheroncrypto
Copy link
Contributor

Problem

The section about the problem mentioned in coral-xyz/anchor#3143 is now resolved (coral-xyz/anchor#3315), which made the following section redundant:

If you encounter the error `type annotations needed for Box<_>` when installing
the Anchor CLI, try changing your Rust version to 1.79.0 and attempt the
installation again.
<Accordion>
<AccordionItem title={"error[E0282]: type annotations needed for `Box<_>`"}>
```
Compiling time v0.3.29
error[E0282]: type annotations needed for `Box<_>`
--> /home/x/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.29/src/format_description/parse/mod.rs:83:9
|
83 | let items = format_items
| ^^^^^
...
86 | Ok(items.into())
| ---- type must be known at this point
|
help: consider giving `items` an explicit type, where the placeholders `_` are specified
|
83 | let items: Box<_> = format_items
| ++++++++
```
You can find more context regarding this error
[here](https://github.com/coral-xyz/anchor/pull/3143)
</AccordionItem>
</Accordion>
Run the following command to install Rust 1.79.0:
```shell
rustup default 1.79.0
```

Summary of changes

Remove all references to Rust 1.79.0 installation from the Anchor installation section.

@ZYJLiu ZYJLiu self-requested a review October 17, 2024 17:00
@ZYJLiu ZYJLiu merged commit b322491 into solana-foundation:main Oct 17, 2024
2 checks passed
adpthegreat pushed a commit to adpthegreat/developer-content that referenced this pull request Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants