diff options
author | Sam James <sam@gentoo.org> | 2021-03-13 21:34:25 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-03-13 21:34:25 +0000 |
commit | 5ad2581618e97d502c699246f2736138a17e483e (patch) | |
tree | 6a678fc9c06f420bb819e4f9443aa5b618afdf1d /dev-lang/rust/files/0040-rls-atomics.patch | |
parent | dev-lang/rust: sync with ::smaeul (diff) | |
download | musl-5ad2581618e97d502c699246f2736138a17e483e.tar.gz musl-5ad2581618e97d502c699246f2736138a17e483e.tar.bz2 musl-5ad2581618e97d502c699246f2736138a17e483e.zip |
Revert "dev-lang/rust: sync with ::smaeul"
This reverts commit 48d382e968f4e4cad77b7c70eb9b3e08c31ffdd1.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/rust/files/0040-rls-atomics.patch')
-rw-r--r-- | dev-lang/rust/files/0040-rls-atomics.patch | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/dev-lang/rust/files/0040-rls-atomics.patch b/dev-lang/rust/files/0040-rls-atomics.patch index d9aedb9a..8e441001 100644 --- a/dev-lang/rust/files/0040-rls-atomics.patch +++ b/dev-lang/rust/files/0040-rls-atomics.patch @@ -1,6 +1,6 @@ ---- rustc-1.35.0-src/src/tools/rls/rls/src/cmd.rs -+++ rustc-1.35.0-src/src/tools/rls/rls/src/cmd.rs -@@ -7,7 +7,7 @@ use crate::config::Config; +--- a/src/tools/rls/rls/src/cmd.rs ++++ b/src/tools/rls/rls/src/cmd.rs +@@ -17,7 +17,7 @@ use crate::config::Config; use crate::server::{self, LsService, Notification, Request, RequestId}; use rls_analysis::{AnalysisHost, Target}; use rls_vfs::Vfs; @@ -9,7 +9,7 @@ use lsp_types::{ ClientCapabilities, CodeActionContext, CodeActionParams, CompletionItem, -@@ -313,8 +313,8 @@ fn url(file_name: &str) -> Url { +@@ -323,8 +323,8 @@ fn url(file_name: &str) -> Url { } fn next_id() -> RequestId { @@ -20,9 +20,9 @@ } // Custom reader and output for the RLS server. ---- rustc-1.35.0-src/src/tools/rls/rls/src/server/io.rs -+++ rustc-1.35.0-src/src/tools/rls/rls/src/server/io.rs -@@ -7,7 +7,7 @@ use crate::lsp_data::{LSPNotification, LSPRequest}; +--- a/src/tools/rls/rls/src/server/io.rs ++++ b/src/tools/rls/rls/src/server/io.rs +@@ -17,7 +17,7 @@ use crate::lsp_data::{LSPNotification, LSPRequest}; use std::fmt; use std::io::{self, BufRead, Write}; @@ -31,7 +31,7 @@ use std::sync::Arc; use jsonrpc_core::{self as jsonrpc, response, version, Id}; -@@ -171,13 +171,13 @@ pub trait Output: Sync + Send + Clone + 'static { +@@ -182,13 +182,13 @@ pub trait Output: Sync + Send + Clone + 'static { /// An output that sends notifications and responses on `stdout`. #[derive(Clone)] pub(super) struct StdioOutput { @@ -40,14 +40,14 @@ } impl StdioOutput { - /// Constructs a new `stdout` output. + /// Construct a new `stdout` output. pub(crate) fn new() -> StdioOutput { - StdioOutput { next_id: Arc::new(AtomicU64::new(1)) } + StdioOutput { next_id: Arc::new(AtomicU32::new(1).into()) } } } -@@ -194,7 +194,7 @@ impl Output for StdioOutput { +@@ -205,7 +205,7 @@ impl Output for StdioOutput { } fn provide_id(&self) -> RequestId { |