<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/rust-1-86-released-trait-upcasting-mutable-indexing-and-deprecation-of-i586-pc-windows-msvc-1uerqnfww" -->

---
title: Rust 1.86 Released: Trait Upcasting, Mutable Indexing,...
description: Rust 1.86 introduces notable new features and improvements, including trait upcasting for greater flexibility in the type system, mutable indexing support for...
canonical: https://daily.dev/posts/rust-1-86-released-trait-upcasting-mutable-indexing-and-deprecation-of-i586-pc-windows-msvc-1uerqnfww
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Rust 1.86 Released: Trait Upcasting, Mutable Indexing, and Deprecation of i586-PC-Windows-MSVC | daily.dev
og:description: Rust 1.86 introduces notable new features and improvements, including trait upcasting for greater flexibility in the type system, mutable indexing support for...
og:url: https://daily.dev/posts/rust-1-86-released-trait-upcasting-mutable-indexing-and-deprecation-of-i586-pc-windows-msvc-1uerqnfww
og:image: https://api.daily.dev/og/posts/1UeRqNfwW.png
og:image:alt: Rust 1.86 Released: Trait Upcasting, Mutable Indexing, and Deprecation of i586-PC-Windows-MSVC
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Rust 1.86 Released: Trait Upcasting, Mutable Indexing, and Deprecation of i586-PC-Windows-MSVC

**[Collections](https://daily.dev/sources/collections)** · 2 min read · 1 upvotes · 0 comments

## Summary

Rust 1.86 introduces notable new features and improvements, including trait upcasting for greater flexibility in the type system, mutable indexing support for `HashMap` and slices, and several compiler enhancements for improved pointer safety. The release also includes API stabilizations and the ability to mark safe functions with the `#[target_feature]` attribute. Additionally, a deprecation warning has been issued for the `i586-pc-windows-msvc` target, which will be phased out in version 1.87.0.

## Content

Rust 1.86 has been released, bringing a host of new features and improvements to the language. Among the most notable updates is the introduction of trait upcasting, a long-awaited feature that allows developers to upcast trait objects to their supertrait objects. This enhancement is expected to bring more flexibility and power to Rust's type system.

In addition to trait upcasting, Rust 1.86 introduces mutable indexing support for `HashMap` and slices, enabling developers to perform mutable operations on multiple elements more efficiently. This update also includes several compiler enhancements aimed at improving pointer safety, such as the addition of debug assertions to ensure pointers are non-null when required for soundness. Similarly, the `missing_abi` lint now issues warnings by default, helping developers catch and address missing ABI declarations early in the development process.

The new release also brings significant API stabilizations, allowing more functions to be used in const contexts. Furthermore, it is now possible to mark safe functions with the `#[target_feature]` attribute, providing greater control over feature-specific code.

As part of this release, a deprecation warning has been issued for the `i586-pc-windows-msvc` target, which will be phased out in version 1.87.0. This move is part of Rust's ongoing effort to phase out older and less commonly used targets, ensuring the language remains modern and efficient.

Developers are encouraged to refer to the release notes for detailed information on all the changes and improvements included in Rust 1.86. This release continues to build on Rust's strengths, making it a more powerful and reliable choice for modern software development.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#rust](https://daily.dev/tags/rust)

[View this post on daily.dev](https://daily.dev/posts/rust-1-86-released-trait-upcasting-mutable-indexing-and-deprecation-of-i586-pc-windows-msvc-1uerqnfww)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Rust 1.86 Released: Trait Upcasting, Mutable Indexing, and Deprecation of i586-PC-Windows-MSVC","url":"https://daily.dev/posts/rust-1-86-released-trait-upcasting-mutable-indexing-and-deprecation-of-i586-pc-windows-msvc-1uerqnfww","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/rust-1-86-released-trait-upcasting-mutable-indexing-and-deprecation-of-i586-pc-windows-msvc-1uerqnfww"},"datePublished":"2025-04-03T10:40:09.438Z","dateModified":"2025-04-03T20:46:52.381Z","description":"Rust 1.86 introduces notable new features and improvements, including trait upcasting for greater flexibility in the type system, mutable indexing support for...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a35b43f3fce88e9a51a06f15a0a5f40d?_a=AQAEuj9","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a35b43f3fce88e9a51a06f15a0a5f40d?_a=AQAEuj9","isAccessibleForFree":true,"articleSection":"Collections","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Collections","logo":"https://media.daily.dev/image/upload/s--fk_6ycEi--/f_auto,q_auto/v1780996001/logos/collections?_a=BAMAMiWQ0","url":"https://daily.dev/sources/collections"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/rust-1-86-released-trait-upcasting-mutable-indexing-and-deprecation-of-i586-pc-windows-msvc-1uerqnfww","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"rust","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Collections","item":"https://daily.dev/sources/collections"},{"@type":"ListItem","position":3,"name":"Rust 1.86 Released: Trait Upcasting, Mutable Indexing, and Deprecation of i586-PC-Windows-MSVC"}]}
```

