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
e53d6dd35bb38b81dff4b00497f4c152e9009499
rust/tests/ui/issues/issue-26997.rs

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

16 lines
227 B
Rust
Raw Normal View History

Use build-pass in ui tests where appropriate
2019-10-29 00:00:00 +00:00
// build-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)]
Add regression test for Issue 26997. https://github.com/rust-lang/rust/issues/26997
2016-03-21 22:40:28 -04:00
pub struct Foo {
x: isize,
y: isize
}
impl Foo {
lints: add `improper_ctypes_definitions` This commit adds a new lint - `improper_ctypes_definitions` - which functions identically to `improper_ctypes`, but on `extern "C" fn` definitions (as opposed to `improper_ctypes`'s `extern "C" {}` declarations). Signed-off-by: David Wood <david@davidtw.co>
2020-05-28 15:57:09 +01:00
#[allow(improper_ctypes_definitions)]
Update code to account for extern ABI requirement
2020-09-01 17:28:11 -04:00
pub extern "C" fn foo_new() -> Foo {
Add regression test for Issue 26997. https://github.com/rust-lang/rust/issues/26997
2016-03-21 22:40:28 -04:00
Foo { x: 21, y: 33 }
}
}
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3715ms 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