| /third_party/rust/rust/tests/ui/asm/ |
| D | naked-functions-unused.rs | 10 extern "C" fn trait_associated(a: usize, b: usize) -> usize; in trait_associated() 11 extern "C" fn trait_method(&self, a: usize, b: usize) -> usize; in trait_method() 17 pub extern "C" fn function(a: usize, b: usize) -> usize { in function() 26 pub extern "C" fn associated(a: usize, b: usize) -> usize { in associated() 32 pub extern "C" fn method(&self, a: usize, b: usize) -> usize { in method() 40 extern "C" fn trait_associated(a: usize, b: usize) -> usize { in trait_associated() 46 extern "C" fn trait_method(&self, a: usize, b: usize) -> usize { in trait_method() 58 pub extern "C" fn function(a: usize, b: usize) -> usize { in function() 66 pub extern "C" fn associated(a: usize, b: usize) -> usize { in associated() 71 pub extern "C" fn method(&self, a: usize, b: usize) -> usize { in method() [all …]
|
| /third_party/rust/rust/tests/ui/nll/ |
| D | outlives-suggestion-more.rs | 4 fn foo1<'a, 'b, 'c, 'd>(x: &'a usize, y: &'b usize) -> (&'c usize, &'d usize) { in foo1() 10 fn foo2<'a, 'b, 'c>(x: &'a usize, y: &'b usize) -> (&'c usize, &'static usize) { in foo2() 17 x: &'a usize, in foo3() 18 y: &'b usize, in foo3() 19 z: &'c usize, in foo3() 20 ) -> (&'b usize, &'a usize, &'static usize) { in foo3()
|
| D | issue-21114-ebfull.rs | 6 fn i_used_to_be_able_to(foo: &Mutex<HashMap<usize, usize>>) -> Vec<(usize, usize)> { in i_used_to_be_able_to() argument 12 fn but_after_nightly_update_now_i_gotta(foo: &Mutex<HashMap<usize, usize>>) -> Vec<(usize, usize)> { in but_after_nightly_update_now_i_gotta() argument
|
| /third_party/rust/rust/tests/mir-opt/pre-codegen/ |
| D | slice_filter.rs | 6 pub fn variant_a(input: &[(usize, usize, usize, usize)]) -> usize { in variant_a() argument 10 pub fn variant_b(input: &[(usize, usize, usize, usize)]) -> usize { in variant_b() argument
|
| /third_party/rust/rust/src/tools/clippy/tests/ui/ |
| D | only_used_in_recursion.rs | 11 fn _one_unused(flag: u32, a: usize) -> usize { in _one_unused() 15 fn _two_unused(flag: u32, a: u32, b: i32) -> usize { in _two_unused() 19 fn _with_calc(flag: u32, a: i64) -> usize { in _with_calc() 28 fn _used_with_flag(flag: u32, a: u32) -> usize { in _used_with_flag() 32 fn _used_with_unused(flag: u32, a: i32, b: i32) -> usize { in _used_with_unused() 40 fn _codependent_unused(flag: u32, a: i32, b: i32) -> usize { in _codependent_unused() 48 fn _not_primitive(flag: u32, b: String) -> usize { in _not_primitive() 55 fn _method(flag: usize, a: usize) -> usize { in _method() 59 fn _method_self(&self, flag: usize, a: usize) -> usize { in _method_self() 65 fn method(flag: u32, a: usize) -> usize; in method() [all …]
|
| D | no_mangle_with_rust_abi.rs | 5 fn rust_abi_fn_one(arg_one: u32, arg_two: usize) {} in rust_abi_fn_one() 8 pub fn rust_abi_fn_two(arg_one: u32, arg_two: usize) {} in rust_abi_fn_two() 13 pub unsafe fn rust_abi_fn_three(arg_one: u32, arg_two: usize) {} in rust_abi_fn_three() 18 unsafe fn rust_abi_fn_four(arg_one: u32, arg_two: usize) {} in rust_abi_fn_four() 23 arg_two: usize, in rust_abi_multiline_function_really_long_name_to_overflow_args_to_multiple_lines() 31 extern "Rust" fn rust_abi_fn_explicit_opt_in(arg_one: u32, arg_two: usize) {} in rust_abi_fn_explicit_opt_in() 33 fn rust_abi_fn_again(arg_one: u32, arg_two: usize) {} in rust_abi_fn_again() 36 extern "C" fn c_abi_fn(arg_one: u32, arg_two: usize) {} in c_abi_fn() 38 extern "C" fn c_abi_fn_again(arg_one: u32, arg_two: usize) {} in c_abi_fn_again() 41 fn c_abi_in_block(arg_one: u32, arg_two: usize); in c_abi_in_block()
|
| D | needless_question_mark.rs | 20 fn simple_option_bad1(to: TO) -> Option<usize> { in simple_option_bad1() 28 fn simple_option_bad2(to: TO) -> Option<usize> { in simple_option_bad2() 33 fn simple_option_bad3(to: TO) -> Option<usize> { in simple_option_bad3() 38 fn simple_option_bad4(to: Option<TO>) -> Option<usize> { in simple_option_bad4() 46 fn simple_option_bad5(to: Option<TO>) -> Option<usize> { in simple_option_bad5() 53 fn simple_result_bad1(tr: TR) -> Result<usize, bool> { in simple_result_bad1() 60 fn simple_result_bad2(tr: TR) -> Result<usize, bool> { in simple_result_bad2() 64 fn simple_result_bad3(tr: TR) -> Result<usize, bool> { in simple_result_bad3() 68 fn simple_result_bad4(tr: Result<TR, bool>) -> Result<usize, bool> { in simple_result_bad4() argument 75 fn simple_result_bad5(tr: Result<TR, bool>) -> Result<usize, bool> { in simple_result_bad5() argument [all …]
|
| /third_party/rust/rust/tests/ui/generics/ |
| D | issue-94923.rs | 6 fn f0<T>(mut x: usize) -> usize { in f0() 14 fn f1<T>(x: usize) -> usize { in f1() 18 fn f2<T>(x: usize) -> usize { in f2() 22 fn f3<T>(x: usize) -> usize { in f3() 26 fn f4<T>(x: usize) -> usize { in f4() 30 fn f5<T>(x: usize) -> usize { in f5() 34 fn f6<T>(x: usize) -> usize { in f6() 38 fn f7<T>(x: usize) -> usize { in f7() 42 fn f8<T>(x: usize) -> usize { in f8()
|
| /third_party/rust/rust/library/core/src/slice/ |
| D | select.rs | 23 mut index: usize, in partition_at_index_loop() 107 fn min_index<T, F: FnMut(&T, &T) -> bool>(slice: &[T], is_less: &mut F) -> Option<usize> { in min_index() 117 fn max_index<T, F: FnMut(&T, &T) -> bool>(slice: &[T], is_less: &mut F) -> Option<usize> { in max_index() 128 index: usize, in partition_at_index() 162 fn median_of_medians<T, F: FnMut(&T, &T) -> bool>(mut v: &mut [T], is_less: &mut F, mut k: usize) { in median_of_medians() 212 fn median_of_ninthers<T, F: FnMut(&T, &T) -> bool>(v: &mut [T], is_less: &mut F) -> usize { in median_of_ninthers() 244 a: usize, in ninther() 245 mut b: usize, in ninther() 246 c: usize, in ninther() 247 mut d: usize, in ninther() [all …]
|
| /third_party/rust/rust/tests/ui/regions/ |
| D | regions-free-region-ordering-callee.rs | 5 fn ordering1<'a, 'b>(x: &'a &'b usize) -> &'a usize { in ordering1() 11 fn ordering2<'a, 'b>(x: &'a &'b usize, y: &'a usize) -> &'b usize { in ordering2() 17 fn ordering3<'a, 'b>(x: &'a usize, y: &'b usize) -> &'a &'b usize { in ordering3() 26 fn ordering5<'a, 'b>(a: &'a usize, b: &'b usize, x: Option<&'a &'b usize>) { in ordering5()
|
| /third_party/rust/rust/tests/ui/invalid/ |
| D | invalid-rustc_legacy_const_generics-arguments.rs | 7 fn foo2<const X: usize>() {} in foo2() 13 fn foo4<const X: usize>() {} in foo4() 16 fn foo5<const X: usize, const Y: usize, const Z: usize, const W: usize>() {} in foo5() 22 fn foo6<const X: usize>() {} in foo6() 26 fn foo7<const X: usize>(); //~ ERROR foreign items may not have const parameters in foo7() 34 fn foo9<const X: usize>() {} in foo9()
|
| /third_party/rust/rust/tests/run-make/c-link-to-rust-va-list-fn/ |
| D | checkrust.rs | 28 pub unsafe extern "C" fn check_list_0(mut ap: VaList) -> usize { in check_list_0() 36 pub unsafe extern "C" fn check_list_1(mut ap: VaList) -> usize { in check_list_1() 48 pub unsafe extern "C" fn check_list_2(mut ap: VaList) -> usize { in check_list_2() 60 pub unsafe extern "C" fn check_list_copy_0(mut ap: VaList) -> usize { in check_list_copy_0() 75 pub unsafe extern "C" fn check_varargs_0(_: c_int, mut ap: ...) -> usize { in check_varargs_0() 82 pub unsafe extern "C" fn check_varargs_1(_: c_int, mut ap: ...) -> usize { in check_varargs_1() 91 pub unsafe extern "C" fn check_varargs_2(_: c_int, _ap: ...) -> usize { in check_varargs_2() 96 pub unsafe extern "C" fn check_varargs_3(_: c_int, mut ap: ...) -> usize { in check_varargs_3() 111 pub unsafe extern "C" fn check_varargs_4(_: c_double, mut ap: ...) -> usize { in check_varargs_4() 126 pub unsafe extern "C" fn check_varargs_5(_: c_int, mut ap: ...) -> usize { in check_varargs_5()
|
| /third_party/rust/crates/memchr/src/memchr/ |
| D | mod.rs | 87 pub fn memchr(needle: u8, haystack: &[u8]) -> Option<usize> { in memchr() 90 fn imp(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr() 96 fn imp(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr() 106 fn imp(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr() 116 fn imp(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr() 151 pub fn memchr2(needle1: u8, needle2: u8, haystack: &[u8]) -> Option<usize> { in memchr2() 154 fn imp(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2() 160 fn imp(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2() 169 fn imp(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2() 209 ) -> Option<usize> { in memchr3() [all …]
|
| /third_party/rust/rust/src/tools/rustfmt/tests/source/configs/indent_style/ |
| D | block_args.rs | 6 fn lorem(ipsum: usize) {} in lorem() 8 fn lorem(ipsum: usize, dolor: usize, sit: usize, amet: usize, consectetur: usize, adipiscing: usize… in lorem()
|
| D | visual_args.rs | 6 fn lorem(ipsum: usize) {} in lorem() 8 fn lorem(ipsum: usize, dolor: usize, sit: usize, amet: usize, consectetur: usize, adipiscing: usize… in lorem()
|
| /third_party/rust/rust/tests/ui/associated-type-bounds/ |
| D | fn-inline.rs | 13 fn inline_bound<B: Beta<Gamma: Alpha>>(beta: B) -> usize { in inline_bound() 17 fn inline_bound_region<B: Beta<Gamma: 'static>>(beta: B) -> usize { in inline_bound_region() 21 fn inline_bound_multi<B: Copy + Beta<Gamma: Alpha + 'static + Delta>>( in inline_bound_multi() 27 fn inline_bound_region_specific<'a, B: Beta<Gamma: 'a + Epsilon<'a>>>( in inline_bound_region_specific() 33 fn inline_bound_region_forall<B: Beta<Gamma: Copy + for<'a> Epsilon<'a>>>( in inline_bound_region_forall() 39 fn inline_bound_region_forall2<B: Beta<Gamma: Copy + for<'a> Epsilon<'a, Zeta: Eta>>>( in inline_bound_region_forall2() 45 fn inline_bound_nested<B: Beta<Gamma: Copy + Alpha + Beta<Gamma: Delta>>>( in inline_bound_nested()
|
| /third_party/rust/rust/src/tools/rustfmt/tests/target/configs/indent_style/ |
| D | block_args.rs | 6 fn lorem(ipsum: usize) {} in lorem() 9 ipsum: usize, in lorem() 10 dolor: usize, in lorem() 11 sit: usize, in lorem() 12 amet: usize, in lorem() 13 consectetur: usize, in lorem() 14 adipiscing: usize, in lorem() 15 elit: usize, in lorem()
|
| D | visual_args.rs | 6 fn lorem(ipsum: usize) {} in lorem() 8 fn lorem(ipsum: usize, in lorem() 9 dolor: usize, in lorem() 10 sit: usize, in lorem() 11 amet: usize, in lorem() 12 consectetur: usize, in lorem() 13 adipiscing: usize, in lorem() 14 elit: usize) { in lorem()
|
| /third_party/rust/crates/rustix/src/io/ |
| D | read_write.rs | 28 pub fn read<Fd: AsFd>(fd: Fd, buf: &mut [u8]) -> io::Result<usize> { in read() 43 pub fn write<Fd: AsFd>(fd: Fd, buf: &[u8]) -> io::Result<usize> { in write() 58 pub fn pread<Fd: AsFd>(fd: Fd, buf: &mut [u8], offset: u64) -> io::Result<usize> { in pread() 77 pub fn pwrite<Fd: AsFd>(fd: Fd, buf: &[u8], offset: u64) -> io::Result<usize> { in pwrite() 92 pub fn readv<Fd: AsFd>(fd: Fd, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> { in readv() 107 pub fn writev<Fd: AsFd>(fd: Fd, bufs: &[IoSlice<'_>]) -> io::Result<usize> { in writev() 120 pub fn preadv<Fd: AsFd>(fd: Fd, bufs: &mut [IoSliceMut<'_>], offset: u64) -> io::Result<usize> { in preadv() 137 pub fn pwritev<Fd: AsFd>(fd: Fd, bufs: &[IoSlice<'_>], offset: u64) -> io::Result<usize> { in pwritev() 156 ) -> io::Result<usize> { in preadv2() 175 ) -> io::Result<usize> { in pwritev2()
|
| /third_party/rust/rust/tests/rustdoc/ |
| D | manual_impl.rs | 8 fn a_method(&self) -> usize; in a_method() 11 fn b_method(&self) -> usize { in b_method() 18 fn c_method(&self) -> usize { in c_method() 36 fn a_method(&self) -> usize { in a_method() 51 fn a_method(&self) -> usize { in a_method() 56 fn c_method(&self) -> usize { in c_method() 69 fn a_method(&self) -> usize { in a_method() 74 fn b_method(&self) -> usize { in b_method()
|
| /third_party/rust/crates/regex/src/ |
| D | re_trait.rs | 22 pub fn pos(&self, i: usize) -> Option<(usize, usize)> { in pos() argument 41 pub fn len(&self) -> usize { in len() 66 fn next(&mut self) -> Option<Option<(usize, usize)>> { in next() argument 78 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint() 83 fn count(self) -> usize { in count() 110 fn slots_len(&self) -> usize; in slots_len() 122 fn next_after_empty(&self, text: &Self::Text, i: usize) -> usize; in next_after_empty() 128 start: usize, in shortest_match_at() 129 ) -> Option<usize>; in shortest_match_at() 138 start: usize, in find_at() [all …]
|
| D | exec.rs | 387 fn slots_len(&self) -> usize { in slots_len() 391 fn next_after_empty(&self, text: &str, i: usize) -> usize { in next_after_empty() 396 fn shortest_match_at(&self, text: &str, start: usize) -> Option<usize> { in shortest_match_at() 406 fn find_at(&self, text: &str, start: usize) -> Option<(usize, usize)> { in find_at() argument 415 start: usize, in captures_read_at() 416 ) -> Option<(usize, usize)> { in captures_read_at() argument 427 fn slots_len(&self) -> usize { in slots_len() 431 fn next_after_empty(&self, _text: &[u8], i: usize) -> usize { in next_after_empty() 438 fn shortest_match_at(&self, text: &[u8], start: usize) -> Option<usize> { in shortest_match_at() 537 fn find_at(&self, text: &[u8], start: usize) -> Option<(usize, usize)> { in find_at() argument [all …]
|
| /third_party/rust/rust/tests/ui/suggestions/ |
| D | fn-or-tuple-struct-without-args.rs | 1 fn foo(a: usize, b: usize) -> usize { a } in foo() 13 fn baz(x: usize, y: usize) -> usize { x } in baz() 14 fn bat(x: usize) -> usize { 42 } in bat() 15 fn bax(x: usize) -> usize { 42 } in bax() 16 fn bach(x: usize) -> usize; in bach() 17 fn ban(&self) -> usize { 42 } in ban() 18 fn bal(&self) -> usize; in bal() 24 fn bach(x: usize) -> usize { 42 } in bach() 25 fn bal(&self) -> usize { 42 } in bal()
|
| /third_party/rust/crates/regex/src/literal/ |
| D | mod.rs | 31 pub fn find(&self, _: &[u8]) -> Option<(usize, usize)> { in find() argument 35 pub fn find_start(&self, _: &[u8]) -> Option<(usize, usize)> { in find_start() argument 39 pub fn find_end(&self, _: &[u8]) -> Option<(usize, usize)> { in find_end() argument 47 pub fn len(&self) -> usize { in len() 51 pub fn approximate_size(&self) -> usize { in approximate_size()
|
| /third_party/rust/rust/tests/ui/expr/if/ |
| D | if-without-else-as-fn-expr.rs | 1 fn foo(bar: usize) -> usize { in foo() 8 fn foo2(bar: usize) -> usize { in foo2() 16 fn foo3(bar: usize) -> usize { in foo3() 23 fn foo_let(bar: usize) -> usize { in foo_let() 30 fn foo2_let(bar: usize) -> usize { in foo2_let() 38 fn foo3_let(bar: usize) -> usize { in foo3_let()
|