Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
14e59bb317c3c901bce83deb16ee9bfa5cc90e28
rust/tests/ui/drop/no-drop-flag-size.rs

16 lines
223 B
Rust
Raw Normal View History

Add `// run-pass` annotations to all the tests under `ui/run-pass/`. (I may have accidentally added it to some auxilliary crates as well; my emacs-macro-based methodology was pretty crude.)
2018-08-30 14:18:55 +02:00
// run-pass
Add `#![allow(..)]` as necessary to get re-migrated run-pass tests compiling with clean stderr again. Most were added mechanically.
2018-09-25 23:51:35 +02:00
#![allow(dead_code)]
std: Move size/align functions to std::mem. #2240
2013-10-16 18:34:01 -07:00
use std::mem::size_of;
Set #[no_drop_flag] on Rc<T> and AtomicOption. Add Test
2013-06-23 16:13:29 +12:00
struct Test<T> {
a: T
}
impl<T> Drop for Test<T> {
switch Drop to `&mut self`
2013-09-16 21:18:07 -04:00
fn drop(&mut self) { }
Set #[no_drop_flag] on Rc<T> and AtomicOption. Add Test
2013-06-23 16:13:29 +12:00
}
Fix run-pass tests to have 'pub fn main' This is required by the check-fast target because each test is slurped up into a submodule.
2013-09-25 00:43:37 -07:00
pub fn main() {
Mass rename uint/int to usize/isize Now that support has been removed, all lingering use cases are renamed.
2015-03-25 17:06:52 -07:00
assert_eq!(size_of::<isize>(), size_of::<Test<isize>>());
Set #[no_drop_flag] on Rc<T> and AtomicOption. Add Test
2013-06-23 16:13:29 +12:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3460ms 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