Frank Steffahn
04fa1d81dd
Fix typo “a Rc” → “an Rc”
2021-08-24 02:23:16 +02:00
Frank Steffahn
be9d2699ca
Fix more “a”/“an” typos
2021-08-22 16:35:29 +02:00
Frank Steffahn
bf88b113ea
Fix typos “a”→“an”
2021-08-22 15:35:11 +02:00
Elichai Turkel
45099e6cf6
Add inline attr to private CString::into_inner
2021-05-26 13:12:54 +03:00
Guillaume Gomez
0d3bee8be0
Rollup merge of #85275 - CDirkx:memchr, r=m-ou-se
...
Move `std::memchr` to `sys_common`
`std::memchr` is a thin abstraction over the different `memchr` implementations in `sys`, along with documentation and tests. The module is only used internally by `std`, nothing is exported externally. Code like this is exactly what the `sys_common` module is for, so this PR moves it there.
2021-05-20 17:56:46 +02:00
Mateusz Gacek
d730cc6646
Add diagnostic item to CStr
2021-05-18 15:45:30 +02:00
Christiaan Dirkx
5353c5c3fb
Move std::memchr
to sys_common
2021-05-14 03:54:46 +02:00
Brent Kerby
6679f5ceb1
Change 'NULL' to 'null'
2021-05-02 17:46:00 -06:00
klensy
a0ff4612f2
ffi::c_str smaller as_bytes
2021-03-29 15:32:25 +03:00
Mara Bos
7b71719faf
Use io::Error::new_const everywhere to avoid allocations.
2021-03-21 20:22:38 +01:00
Joshua Nelson
9a75f4fed1
Convert primitives to use intra-doc links
2021-02-25 20:31:53 -05:00
Mark Rousskov
8a3edb1d66
Update tests for extern block linting
2021-01-13 07:49:16 -05:00
Jake Goulding
dcef5ff372
Bump bootstrap compiler version
2020-11-19 19:23:36 -05:00
Nathan Whitaker
39941e6281
Fix bootstrap doctest failure
2020-10-26 22:09:47 -04:00
Nathan Whitaker
cb8b9012db
Address review comments
2020-10-26 19:19:06 -04:00
Nathan Whitaker
1bcd2452fe
Address review comments
2020-10-26 18:19:48 -04:00
Nathan Whitaker
737bfeffd2
Change to warn by default / fix typo
2020-10-26 18:19:48 -04:00
Nathan Whitaker
ce95122e95
Update doctest
2020-10-26 18:19:47 -04:00
Joshua Nelson
65835d1059
Deny broken intra-doc links in linkchecker
...
Since rustdoc isn't warning about these links, check for them manually.
2020-10-15 20:22:16 -04:00
Flying-Toast
c66789d572
Capitalize safety comments
2020-09-08 22:26:44 -04:00
Lzu Tao
a4e926daee
std: move "mod tests/benches" to separate files
...
Also doing fmt inplace as requested.
2020-08-31 02:56:59 +00:00
Joshua Nelson
6f4681bacc
Convert str -> prim@str in std
2020-08-23 22:40:20 -04:00
Tyler Mandry
ad1bfd2f3e
Rollup merge of #75501 - poliorcetics:intra-links-std-ffi, r=jyn514
...
Move to intra doc links in std::ffi
Helps with #75080 .
@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
2020-08-14 14:46:52 -07:00
Alexis Bourget
e97fa1e3da
libstd/ffi/c_str.rs: #![deny(unsafe_op_in_unsafe_fn)], enclose unsafe operations in unsafe blocks
2020-08-14 19:33:04 +02:00
Poliorcetics
ee4f893e27
Apply suggestions from code review
...
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2020-08-14 19:08:09 +02:00
Alexis Bourget
2adc8c0e5f
Move to intra doc links in std::ffi
2020-08-13 23:19:45 +02:00
mark
2c31b45ae8
mv std libs to library/
2020-07-27 19:51:13 -05:00