Skip to content

Commit adceaeb

Browse files
author
Alejandro Baez
committed
updated api/tags to rs v1.20.0
1 parent 6ad2286 commit adceaeb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+7375
-6840
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extensions, strings, and numbers lexer definitions.
3030
* Make this module the damn bloody best way to code in Rust.
3131

3232
### REQUIREMENT
33-
* Rust >= v1.18.0 (rev: [03fc9d62])
33+
* Rust >= v1.20.0 (rev: [f3d6973f])
3434
* Textadept >= v9.0
3535
* (optional) [racer]
3636
* (optional) [textadept ctags][6]
@@ -68,7 +68,7 @@ Check the [USERGUIDE] for more information on how to use this wonderful module.
6868
[5]: http://foicica.com/textadept
6969
[6]: http://foicica.com/hg/ctags/
7070
[7]: http://foicica.com/textadept/api.html#io.get_project_root
71-
[03fc9d62]: https://github.com/rust-lang/rust/commit/03fc9d622e0ea26a3d37f5ab030737fcca6928b9
71+
[f3d6973f]: https://github.com/rust-lang/rust/commit/f3d6973f41a7d1fb83029c9c0ceaf0f5d4fd7208
7272
[8i]: https://img.shields.io/badge/license-MIT-green.svg
7373
[8p]: ./LICENSE
7474
[9i]: https://img.shields.io/badge/twitter-a_baez-blue.svg

builder/crates.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,19 @@ return {
1111
"arena",
1212
"backtrace",
1313
"collections",
14-
"collectionstest",
1514
"compiler_builtins",
1615
"core",
17-
"coretest",
18-
"flate",
1916
"fmt_macros",
2017
"getopts",
2118
"graphviz",
2219
"libc",
23-
"log",
2420
"panic_abort",
2521
"panic_unwind",
2622
"proc_macro",
27-
"proc_macro_plugin",
23+
"profiler_builtins",
2824
"rand",
2925
"rustc",
26+
"rustc_allocator",
3027
"rustc_asan",
3128
"rustc_back",
3229
"rustc_bitflags",

ta/api_alloc

Lines changed: 1784 additions & 24 deletions
Large diffs are not rendered by default.

ta/api_alloc_jemalloc

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
1-
__rust_allocate pub extern "C" fn __rust_allocate(_size: usize, _align: usize) -> *mut u8
2-
__rust_allocate pub extern "C" fn __rust_allocate(size: usize, align: usize) -> *mut u8
3-
__rust_allocate_zeroed pub extern "C" fn __rust_allocate_zeroed(_size: usize, _align: usize) -> *mut u8
4-
__rust_allocate_zeroed pub extern "C" fn __rust_allocate_zeroed(size: usize, align: usize) -> *mut u8
5-
__rust_deallocate pub extern "C" fn __rust_deallocate(_ptr: *mut u8, _old_size: usize, _align: usize)
6-
__rust_deallocate pub extern "C" fn __rust_deallocate(ptr: *mut u8, old_size: usize, align: usize)
7-
__rust_reallocate pub extern "C" fn __rust_reallocate(_ptr: *mut u8,
8-
__rust_reallocate pub extern "C" fn __rust_reallocate(ptr: *mut u8,
9-
__rust_reallocate_inplace pub extern "C" fn __rust_reallocate_inplace(_ptr: *mut u8,
10-
__rust_reallocate_inplace pub extern "C" fn __rust_reallocate_inplace(ptr: *mut u8,
11-
__rust_usable_size pub extern "C" fn __rust_usable_size(_size: usize, _align: usize) -> usize
12-
__rust_usable_size pub extern "C" fn __rust_usable_size(size: usize, align: usize) -> usize
131
align_to_flags fn align_to_flags(align: usize) -> c_int
14-
bogus fn bogus() -> !
152
calloc fn calloc(size: size_t, flags: c_int) -> *mut c_void;
16-
imp mod imp
3+
contents mod contents
174
main fn main()
185
mallocx fn mallocx(size: size_t, flags: c_int) -> *mut c_void;
196
mallocx_align fn mallocx_align(a: usize) -> c_int

ta/api_alloc_system

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,48 @@
1+
Alloc unsafe impl<'a> Alloc for &'a System
2+
Alloc for System unsafe impl Alloc for System
13
GetLastError fn GetLastError() -> DWORD;
4+
GetLastError fn GetLastError() -> DWORD;
5+
GetProcessHeap fn GetProcessHeap() -> HANDLE;
26
GetProcessHeap fn GetProcessHeap() -> HANDLE;
7+
GetStdHandle fn GetStdHandle(which: DWORD) -> HANDLE;
38
Header struct Header(*mut u8);
9+
Header struct Header(*mut u8);
10+
HeapAlloc fn HeapAlloc(hHeap: HANDLE, dwFlags: DWORD, dwBytes: SIZE_T) -> LPVOID;
411
HeapAlloc fn HeapAlloc(hHeap: HANDLE, dwFlags: DWORD, dwBytes: SIZE_T) -> LPVOID;
512
HeapFree fn HeapFree(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPVOID) -> BOOL;
13+
HeapFree fn HeapFree(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPVOID) -> BOOL;
14+
HeapReAlloc fn HeapReAlloc(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPVOID, dwBytes: SIZE_T) -> LPVOID;
615
HeapReAlloc fn HeapReAlloc(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPVOID, dwBytes: SIZE_T) -> LPVOID;
7-
__rust_allocate pub extern "C" fn __rust_allocate(size: usize, align: usize) -> *mut u8
8-
__rust_allocate_zeroed pub extern "C" fn __rust_allocate_zeroed(size: usize, align: usize) -> *mut u8
9-
__rust_deallocate pub extern "C" fn __rust_deallocate(ptr: *mut u8, old_size: usize, align: usize)
10-
__rust_reallocate pub extern "C" fn __rust_reallocate(ptr: *mut u8,
11-
__rust_reallocate_inplace pub extern "C" fn __rust_reallocate_inplace(ptr: *mut u8,
12-
__rust_usable_size pub extern "C" fn __rust_usable_size(size: usize, align: usize) -> usize
16+
Stderr struct Stderr;
17+
System pub struct System;
18+
Write for Stderr impl Write for Stderr
19+
WriteFile fn WriteFile(hFile: HANDLE,
1320
align_ptr unsafe fn align_ptr(ptr: *mut u8, align: usize) -> *mut u8
21+
align_ptr unsafe fn align_ptr(ptr: *mut u8, align: usize) -> *mut u8
22+
aligned_malloc unsafe fn aligned_malloc(layout: &Layout) -> *mut u8
1423
aligned_malloc unsafe fn aligned_malloc(size: usize, align: usize) -> *mut u8
24+
alloc unsafe fn alloc(&mut self, layout: Layout) -> Result<*mut u8, AllocErr>
25+
alloc_excess unsafe fn alloc_excess(&mut self, layout: Layout) -> Result<Excess, AllocErr>
26+
alloc_zeroed unsafe fn alloc_zeroed(&mut self, layout: Layout)
1527
allocate pub unsafe fn allocate(size: usize, align: usize) -> *mut u8
28+
allocate_with_flags unsafe fn allocate_with_flags(layout: Layout, flags: DWORD)
1629
allocate_with_flags unsafe fn allocate_with_flags(size: usize, align: usize, flags: DWORD) -> *mut u8
1730
allocate_zeroed pub unsafe fn allocate_zeroed(size: usize, align: usize) -> *mut u8
31+
dealloc unsafe fn dealloc(&mut self, ptr: *mut u8, _layout: Layout)
32+
dealloc unsafe fn dealloc(&mut self, ptr: *mut u8, layout: Layout)
1833
deallocate pub unsafe fn deallocate(ptr: *mut u8, _old_size: usize, _align: usize)
1934
deallocate pub unsafe fn deallocate(ptr: *mut u8, _old_size: usize, align: usize)
2035
get_header unsafe fn get_header<'a>(ptr: *mut u8) -> &'a mut Header
36+
get_header unsafe fn get_header<'a>(ptr: *mut u8) -> &'a mut Header
37+
grow_in_place unsafe fn grow_in_place(&mut self,
2138
imp mod imp
22-
reallocate pub unsafe fn reallocate(ptr: *mut u8, _old_size: usize, size: usize, align: usize) -> *mut u8
39+
new mod new
40+
old mod old;
41+
oom fn oom(&mut self, err: AllocErr) -> !
42+
platform mod platform
43+
realloc unsafe fn realloc(&mut self,
44+
realloc_excess unsafe fn realloc_excess(&mut self,
2345
reallocate pub unsafe fn reallocate(ptr: *mut u8, old_size: usize, size: usize, align: usize) -> *mut u8
24-
reallocate_inplace pub unsafe fn reallocate_inplace(_ptr: *mut u8,
25-
reallocate_inplace pub unsafe fn reallocate_inplace(ptr: *mut u8,
26-
usable_size pub fn usable_size(size: usize, _align: usize) -> usize
46+
shrink_in_place unsafe fn shrink_in_place(&mut self,
47+
usable_size fn usable_size(&self, layout: &Layout) -> (usize, usize)
48+
write_str fn write_str(&mut self, s: &str) -> fmt::Result

0 commit comments

Comments
 (0)