Skip to content

Instantly share code, notes, and snippets.

View mrhota's full-sized avatar

A.J. Gardner mrhota

  • Chattanooga, TN
View GitHub Profile
@mrhota
mrhota / rfc_documentation_status.md
Last active January 21, 2018 23:49 — forked from chriskrycho/rfc_documentation_status.md
Status (as best it is known) of RFCs not yet documented or tracked in https://github.com/rust-lang-nursery/reference/issues/9

I have included the more recent contributions of @matthewjasper, which brought us up to (roughly) the August timeframe for RFCs. I added all additional RFCs which had been accepted as of 21 Jan 2018.

With full credit where it is due: to @EH2406, who put the original together (here). Note that I'm doing a quick pass and confirming each of these as I get to them.

Legend

  • Not Reviewed at all: I simply added items in this list which weren't already in this document. I haven't determined what their stability status is, or whether any documentation exists for them yet
  • Need documentation: I (or someone else) determined that the feature is stabilized but no documentation for the feature exists in either the reference or libstd docs. They need documentation as soon as possible.
  • If an item is crossed off, I think that means some documentation exists (but maybe it isn'
#![feature(plugin)]
#![plugin(regex_macros)]
extern crate regex;
use regex::Regex;
const LANGUAGE_TAG_REGEX: Regex = regex!(r"(?ix)
(?P<language>[:alpha:]{2,3}(-(?P<extlang>[:alpha:]{3}(-[:alpha:]{3}){0,2}))?)
(?P<script>-[:alpha:]{4})?
(?P<region>-([:alpha:]{2}|[:digit:]{3}))?
(?P<variant>-([:alnum:]{5,8}|[:digit:][:alnum:]{3}))*
fn foo() {
let x = &4i;
match x {
// wanted to type `e @ &1 ... &4`
e @ &1 ... 4 => println!("Got a small value: {}", e),
&val => println!("Got a value: {}", val),
}
}
#![forbid(shadowed_name)]
#![allow(unused_variables)]
pub fn main() {
let foo = 0i;
{
let foo = Some(2.0f64); //~ ERROR foo is shadowed
}
}
#![forbid(shadowed_name)]
#![allow(unused_variables)]
pub fn main() {
let foo = 0i;
{
let foo = Some(2.0f64); //~ ERROR foo is shadowed
}
}