100+ results for 'crate_type'
Not the results you expected?
trait_defs.rs (https://gitlab.com/jianglu/rust) Rust · 1056 lines
struct_defs.rs (https://gitlab.com/jianglu/rust) Rust · 469 lines
arm-types.rs (https://gitlab.com/rust-lang/rust) Rust · 530 lines
function_interfaces.rs (https://gitlab.com/jianglu/rust) Rust · 361 lines
struct_constructors.rs (https://gitlab.com/jianglu/rust) Rust · 250 lines
test_bad_config.rs (https://gitlab.com/alx741/cargo) Rust · 456 lines
lint_stability.rs (https://gitlab.com/alx741/rust) Rust · 179 lines
issue-74564-if-expr-stack-overflow.rs (https://gitlab.com/rust-lang/rust) Rust · 2548 lines
trait_impls.rs (https://gitlab.com/rust-lang/rust) Rust · 616 lines
trait_defs.rs (https://gitlab.com/rust-lang/rust) Rust · 1400 lines
inherent_impls.rs (https://gitlab.com/rust-lang/rust) Rust · 790 lines
enum_defs.rs (https://gitlab.com/rust-lang/rust) Rust · 718 lines
simd-intrinsic-generic-arithmetic-saturating.rs (https://gitlab.com/rust-lang/rust) Rust · 692 lines
rustc.rs (https://gitlab.com/frewsxcv/cargo) Rust · 817 lines
137 #[cargo_test]
138 fn fails_with_crate_type_and_without_unstable_options() {
139 let p = project().file("src/lib.rs", r#" "#).build();
151 #[cargo_test]
152 fn fails_with_crate_type_to_multi_binaries() {
153 let p = project()
154 .file("src/bin/foo.rs", "fn main() {}")
170 #[cargo_test]
171 fn fails_with_crate_type_to_multi_examples() {
172 let p = project()
173 .file(
metadata.rs (https://gitlab.com/frewsxcv/cargo) Rust · 1533 lines
test_cargo_compile_plugins.rs (https://gitlab.com/alx741/cargo) Rust · 269 lines
subdiagnostic-derive.rs (https://gitlab.com/rust-lang/rust) Rust · 501 lines
if_expressions.rs (https://gitlab.com/rust-lang/rust) Rust · 228 lines
match_expressions.rs (https://gitlab.com/jianglu/rust) Rust · 329 lines
let_expressions.rs (https://gitlab.com/jianglu/rust) Rust · 216 lines
read_manifest.rs (https://gitlab.com/frewsxcv/cargo) Rust · 206 lines
lib.rs (https://gitlab.com/0072016/0072016-rusty) Rust · 218 lines
lib.rs (https://gitlab.com/0072016/0072016-rusty) Rust · 124 lines
entry.rs (https://gitlab.com/alx741/rust) Rust · 168 lines
debug-vtable.rs (https://gitlab.com/rust-lang/rust) Rust · 107 lines
entry.rs (https://gitlab.com/0072016/0072016-rusty) Rust · 165 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 111 lines
riscv64-lp64-lp64f-lp64d-abi.rs (https://gitlab.com/rust-lang/rust) Rust · 189 lines
unstable_generic_param.rs (https://gitlab.com/rust-lang/rust) Rust · 229 lines
unit_graph.rs (https://gitlab.com/frewsxcv/cargo) Rust · 233 lines
x86-modifiers.rs (https://gitlab.com/rust-lang/rust) Rust · 205 lines
lint_stability.rs (https://gitlab.com/pranith/rust) Rust · 170 lines
builtin.rs (https://gitlab.com/0072016/0072016-rusty) Rust · 178 lines
procedural_mbe_matching.rs (https://gitlab.com/pranith/rust) Rust · 69 lines
lib.rs (https://gitlab.com/pranith/rust) Rust · 89 lines
struct_point.rs (https://gitlab.com/jianglu/rust) Rust · 110 lines
riscv64-lp64f-lp64d-abi.rs (https://gitlab.com/rust-lang/rust) Rust · 277 lines
unused_type_parameters.rs (https://gitlab.com/rust-lang/rust) Rust · 322 lines
indexing_expressions.rs (https://gitlab.com/rust-lang/rust) Rust · 137 lines
lint-dead-code-1.rs (https://gitlab.com/pranith/rust) Rust · 120 lines
plugins.rs (https://gitlab.com/frewsxcv/cargo) Rust · 439 lines
function_interfaces.rs (https://gitlab.com/rust-lang/rust) Rust · 414 lines
if_expressions.rs (https://gitlab.com/jianglu/rust) Rust · 216 lines
struct_point.rs (https://gitlab.com/jianglu/rust) Rust · 111 lines
weak_lang_items.rs (https://gitlab.com/alx741/rust) Rust · 126 lines
main.rs (https://gitlab.com/motorica-org/telemetry-hardware-teensy-3-rust) Rust · 167 lines
repr-transparent-aggregates-1.rs (https://gitlab.com/rust-lang/rust) Rust · 86 lines
attributes-included.rs (https://gitlab.com/jianglu/rust) Rust · 161 lines
msp430-types.rs (https://gitlab.com/rust-lang/rust) Rust · 158 lines
packed.rs (https://gitlab.com/rust-lang/rust) Rust · 153 lines
riscv-types.rs (https://gitlab.com/rust-lang/rust) Rust · 210 lines
packed.rs (https://gitlab.com/jianglu/rust) Rust · 128 lines
proc_macro_attr.rs (https://gitlab.com/rust-lang/rust) Rust · 101 lines
2 // no-prefer-dynamic
4 #![crate_type = "proc-macro"]
5 #![feature(repr128, proc_macro_hygiene, proc_macro_quote, box_patterns)]
6 #![allow(incomplete_features)]
37 let my_block = quote_spanned!( brace.span => {
38 // Should not trigger `empty_line_after_outer_attr`
39 #[crate_type = "lib"]
40 #sig #block
41 Vec::new()
inline_asm.rs (https://gitlab.com/rust-lang/rust) Rust · 222 lines
function-arguments.rs (https://gitlab.com/rust-lang/rust) Rust · 224 lines
avr-types.rs (https://gitlab.com/rust-lang/rust) Rust · 222 lines
lint-dead-code-1.rs (https://gitlab.com/alx741/rust) Rust · 116 lines
in-signature.rs (https://gitlab.com/rust-lang/rust) Rust · 61 lines
lib.rs (https://gitlab.com/anispy211/rust) Rust · 135 lines
function-arguments.rs (https://gitlab.com/alx741/rust) Rust · 146 lines
prefetch.rs (https://gitlab.com/jianglu/rust) Rust · 73 lines
rustdoc.rs (https://gitlab.com/frewsxcv/cargo) Rust · 252 lines
align-struct.rs (https://gitlab.com/rust-lang/rust) Rust · 71 lines
inline_asm.rs (https://gitlab.com/jianglu/rust) Rust · 238 lines
simd-intrinsic-float-exp2.rs (https://gitlab.com/rust-lang/rust) Rust · 92 lines
custom_target.rs (https://gitlab.com/frewsxcv/cargo) Rust · 236 lines
regular-modules.rs (https://gitlab.com/jianglu/rust) Rust · 82 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 54 lines
debuginfo-generic-closure-env-names.rs (https://gitlab.com/rust-lang/rust) Rust · 89 lines
local-drop-glue.rs (https://gitlab.com/jianglu/rust) Rust · 64 lines
arm-modifiers.rs (https://gitlab.com/rust-lang/rust) Rust · 144 lines
parent-source-spans.rs (https://gitlab.com/jianglu/rust) Rust · 51 lines
missing_inline.rs (https://gitlab.com/rust-lang/rust) Rust · 170 lines
lint_stability.rs (https://gitlab.com/jianglu/rust) Rust · 193 lines
mod.rs (https://gitlab.com/pranith/rust) Rust · 57 lines
lib.rs (https://gitlab.com/jianglu/rust) Rust · 83 lines
local-inlining-but-not-all.rs (https://gitlab.com/jianglu/rust) Rust · 54 lines
riscv64-lp64d-abi.rs (https://gitlab.com/rust-lang/rust) Rust · 293 lines
lib.rs (https://gitlab.com/pranith/rust) Rust · 59 lines
call_expressions.rs (https://gitlab.com/rust-lang/rust) Rust · 200 lines
issue-14421.rs (https://gitlab.com/pranith/rust) Rust · 35 lines
extern_mods.rs (https://gitlab.com/jianglu/rust) Rust · 244 lines
rsbegin.rs (https://gitlab.com/alx741/rust) Rust · 78 lines
struct_point.rs (https://gitlab.com/jianglu/rust) Rust · 162 lines
lib.rs (https://gitlab.com/0072016/0072016-rusty) Rust · 60 lines
test.rs (https://gitlab.com/rust-lang/rust) Rust · 66 lines
non-integer-atomic.rs (https://gitlab.com/rust-lang/rust) Rust · 92 lines
atomic-operations.rs (https://gitlab.com/rust-lang/rust) Rust · 60 lines
link_section.rs (https://gitlab.com/jianglu/rust) Rust · 44 lines
slice-ref-equality.rs (https://gitlab.com/rust-lang/rust) Rust · 38 lines
powerpc-types.rs (https://gitlab.com/rust-lang/rust) Rust · 208 lines
lower_intrinsics.rs (https://gitlab.com/rust-lang/rust) Rust · 78 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 127 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 52 lines
issue-35813-postfix-after-cast.rs (https://gitlab.com/rust-lang/rust) Rust · 171 lines
allocator-dummy.rs (https://gitlab.com/0072016/0072016-rusty) Rust · 55 lines
attribute.rs (https://gitlab.com/rust-lang/rust) Rust · 73 lines
slice-init.rs (https://gitlab.com/rust-lang/rust) Rust · 64 lines
simd-wide-sum.rs (https://gitlab.com/rust-lang/rust) Rust · 54 lines
roman_numerals.rs (https://gitlab.com/alx741/rust) Rust · 79 lines
inherited_stability.rs (https://gitlab.com/pranith/rust) Rust · 55 lines
repr-transparent-aggregates-3.rs (https://gitlab.com/jianglu/rust) Rust · 49 lines
lib.rs (https://gitlab.com/Fraser999/DataName) Rust · 35 lines
3 #![forbid(bad_style, exceeding_bitshifts, mutable_transmutes, no_mangle_const_items,
4 unknown_crate_types, warnings)]
5 #![deny(deprecated, drop_with_repr_extern, improper_ctypes, non_shorthand_field_patterns,
6 overflowing_literals, plugin_as_library, private_no_mangle_fns, private_no_mangle_statics,
stack-protector-target-support.rs (https://gitlab.com/rust-lang/rust) Rust · 286 lines
statics.rs (https://gitlab.com/rust-lang/rust) Rust · 186 lines
lib.rs (https://gitlab.com/aw1231/redox) Rust · 85 lines
independent_cgus_dont_affect_each_other.rs (https://gitlab.com/rust-lang/rust) Rust · 58 lines
simd.rs (https://gitlab.com/rust-lang/rust) Rust · 82 lines
lib.rs (https://gitlab.com/Fraser999/DataName) Rust · 127 lines
issue-32031.rs (https://gitlab.com/jianglu/rust) Rust · 33 lines
abi-x86-interrupt.rs (https://gitlab.com/jianglu/rust) Rust · 27 lines
stable-symbol-names1.rs (https://gitlab.com/jianglu/rust) Rust · 41 lines
indexing_expressions.rs (https://gitlab.com/jianglu/rust) Rust · 142 lines
lib.rs (https://gitlab.com/pranith/rust) Rust · 54 lines
global_asm_x2.rs (https://gitlab.com/jianglu/rust) Rust · 88 lines
regular-modules.rs (https://gitlab.com/alx741/rust) Rust · 84 lines
test-macros.rs (https://gitlab.com/jianglu/rust) Rust · 36 lines
issue-22638.rs (https://gitlab.com/jianglu/rust) Rust · 69 lines
macro-only-syntax.rs (https://gitlab.com/rust-lang/rust) Rust · 89 lines
lint-exceeding-bitshifts.rs (https://gitlab.com/rust-lang/rust) Rust · 79 lines
lib.rs (https://gitlab.com/anispy211/rust) Rust · 56 lines
statics.rs (https://gitlab.com/jianglu/rust) Rust · 48 lines
lint-dead-code-3.rs (https://gitlab.com/jianglu/rust) Rust · 88 lines
proc_macro_def.rs (https://gitlab.com/jianglu/rust) Rust · 44 lines
issue_49595.rs (https://gitlab.com/jianglu/rust) Rust · 42 lines
extern-drop-glue.rs (https://gitlab.com/alx741/rust) Rust · 46 lines
unused-traits-and-generics.rs (https://gitlab.com/alx741/rust) Rust · 89 lines
stores.rs (https://gitlab.com/alx741/rust) Rust · 43 lines
return_self_not_must_use.rs (https://gitlab.com/rust-lang/rust) Rust · 58 lines
sanitizer-memory-track-orgins.rs (https://gitlab.com/rust-lang/rust) Rust · 30 lines
extern_mods.rs (https://gitlab.com/rust-lang/rust) Rust · 224 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 57 lines
feature-gate-cfg-target-has-atomic.rs (https://gitlab.com/jianglu/rust) Rust · 86 lines
rustc.rs (https://gitlab.com/frewsxcv/cargo) Rust · 99 lines
5 const PRINT_ARG_NAME: &str = "print";
6 const CRATE_TYPE_ARG_NAME: &str = "crate-type";
8 pub fn cli() -> App {
38 )
39 .arg(multi_opt(
40 CRATE_TYPE_ARG_NAME,
41 "CRATE-TYPE",
42 "Comma separated list of types of crates for the compiler to emit (unstable)",
85 return Ok(());
86 }
87 let crate_types = values(args, CRATE_TYPE_ARG_NAME);
88 compile_opts.target_rustc_crate_types = if crate_types.is_empty() {
91 config
92 .cli_unstable()
93 .fail_if_stable_opt(CRATE_TYPE_ARG_NAME, 10083)?;
94 Some(crate_types)