This site is being rebuilt and some pages are out of date. For current details, write to [email protected]. This notice goes away when the rebuild is done.

No analytics unless you allow it, no tracking. This site keeps in your browser the language you pick, the theme, its colour, which site you chose, the currency on the pricing page and that you closed this notice; signing in adds session cookies. The legal page has the details.

Sign in

Radar · Rust · #002 · Week 40 · Sep 28 – Oct 4, 2026

Default branch of RFC repository changed to `main`

Nice to knowecosystem

What changed
The default branch for the RFC repository was switched from master to main.
Production impact
The source does not say.
Try it
Clone the RFC repo without specifying a branch and observe the default branch name.
Source
github.com/rust-lang/rfcs/pull/4012

Understand it, then run it

The RFC repository now uses main as its default branch instead of master. When you open the repository on GitHub, the main line of development you see is the main branch. This change aligns the repository with the broader move in the Rust community to use main for new projects. Nothing in the Rust language or tooling itself is affected; it is only a naming change for the Git branch.

Run it now

Todayrust
fn main() {
    // Demonstrate the current default branch name for the RFC repo.
    // The repository now defaults to `main`. We simply print that fact.
    println!("The Rust RFC repository default branch is now `main`.");
}

What it printed when we ran it on Rust 1.98.1 (edition 2024)

The Rust RFC repository default branch is now `main`.

Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.

Written by gpt-oss-120b from the linked source · claims checked against the sources · human-reviewed