aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-03-21 13:43:14 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-03-21 13:43:14 +0100
commit63f69d6f2fa4d27dae9c3068c1df16cdcad669d1 (patch)
treec966c88b13c3add85514cb4ce6c12ac86695e0d0
parent8eac00f007a6d2cb7ea5a57a9f917b9098fe4228 (diff)
downloadglutin-63f69d6f2fa4d27dae9c3068c1df16cdcad669d1.tar.gz
glutin-63f69d6f2fa4d27dae9c3068c1df16cdcad669d1.zip
Rustup
-rw-r--r--build.rs1
-rw-r--r--src/lib.rs4
-rw-r--r--src/win32/callback.rs5
-rw-r--r--src/win32/mod.rs8
4 files changed, 12 insertions, 6 deletions
diff --git a/build.rs b/build.rs
index 867e170..7137d3e 100644
--- a/build.rs
+++ b/build.rs
@@ -1,4 +1,3 @@
-#![feature(path)]
extern crate gl_generator;
extern crate khronos_api;
diff --git a/src/lib.rs b/src/lib.rs
index 916b699..1776541 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -211,7 +211,9 @@ pub struct PixelFormat {
}
/// Attributes
-struct BuilderAttribs<'a> {
+// FIXME: remove `pub` (https://github.com/rust-lang/rust/issues/23585)
+#[doc(hidden)]
+pub struct BuilderAttribs<'a> {
#[allow(dead_code)]
headless: bool,
strict: bool,
diff --git a/src/win32/callback.rs b/src/win32/callback.rs
index 5423fc3..f9ec653 100644
--- a/src/win32/callback.rs
+++ b/src/win32/callback.rs
@@ -36,8 +36,9 @@ fn send_event(input_window: winapi::HWND, event: Event) {
/// This is the callback that is called by `DispatchMessage` in the events loop.
///
/// Returning 0 tells the Win32 API that the message has been processed.
-pub extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT,
- wparam: winapi::WPARAM, lparam: winapi::LPARAM) -> winapi::LRESULT
+pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT,
+ wparam: winapi::WPARAM, lparam: winapi::LPARAM)
+ -> winapi::LRESULT
{
match msg {
winapi::WM_DESTROY => {
diff --git a/src/win32/mod.rs b/src/win32/mod.rs
index 8ba5ed5..07f76e8 100644
--- a/src/win32/mod.rs
+++ b/src/win32/mod.rs
@@ -49,7 +49,9 @@ unsafe impl Send for Window {}
unsafe impl Sync for Window {}
/// A simple wrapper that destroys the context when it is destroyed.
-struct ContextWrapper(pub winapi::HGLRC);
+// FIXME: remove `pub` (https://github.com/rust-lang/rust/issues/23585)
+#[doc(hidden)]
+pub struct ContextWrapper(pub winapi::HGLRC);
impl Drop for ContextWrapper {
fn drop(&mut self) {
@@ -60,7 +62,9 @@ impl Drop for ContextWrapper {
}
/// A simple wrapper that destroys the window when it is destroyed.
-struct WindowWrapper(pub winapi::HWND, pub winapi::HDC);
+// FIXME: remove `pub` (https://github.com/rust-lang/rust/issues/23585)
+#[doc(hidden)]
+pub struct WindowWrapper(pub winapi::HWND, pub winapi::HDC);
impl Drop for WindowWrapper {
fn drop(&mut self) {