rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.3k stars 732 forks source link

rust: Update `builtins` and sample file #1922

Closed nsfisis closed 1 year ago

nsfisis commented 1 year ago

Lexer

rust

Versions

Problems

Proposals

The built-in items

Things that should be removed

These structs or traits are not defined in newer versions of Rust, at least v1.66.

Things that should be added

Based on std::prelude: https://doc.rust-lang.org/std/prelude/index.html

You can use any items in std::prelude module without importing.

The sample file

The sample file may be written in pre-1.0 Rust.

EDIT: