Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
master
rust/tests/pretty/auto-trait.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
116 B
Rust
Raw Permalink Normal View History

Rename `optin_builtin_traits` to `auto_traits` They were originally called "opt-in, built-in traits" (OIBITs), but people realized that the name was too confusing and a mouthful, and so they were renamed to just "auto traits". The feature flag's name wasn't updated, though, so that's what this PR does. There are some other spots in the compiler that still refer to OIBITs, but I don't think changing those now is worth it since they are internal and not particularly relevant to this PR. Also see <https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/opt-in.2C.20built-in.20traits.20(auto.20traits).20feature.20name>.
2020-11-22 19:54:31 -08:00
#![feature(auto_traits)]
Test all the things
2015-01-27 01:07:31 +01:00
//@ pp-exact
Pretty print empty blocks as {}
2021-12-01 11:45:14 -08:00
auto trait MyTrait {}
Test all the things
2015-01-27 01:07:31 +01:00
Pretty print empty blocks as {}
2021-12-01 11:45:14 -08:00
unsafe auto trait UnsafeMyTrait {}
Fix unsafe auto trait pretty print. It was being printed wrong as auto unsafe trait
2017-11-03 16:13:02 -02:00
Pretty print empty blocks as {}
2021-12-01 11:45:14 -08:00
pub fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1546ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API