100+ results for 'crate_type'
Not the results you expected?
enum_defs.rs (https://gitlab.com/jianglu/rust) Rust · 653 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
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()
170 #[cargo_test]
171 fn fails_with_crate_type_to_multi_examples() {
172 let p = project()
204 #[cargo_test]
205 fn fails_with_crate_type_to_binary() {
206 let p = project().file("src/bin/foo.rs", "fn main() {}").build();
218 #[cargo_test]
219 fn build_with_crate_type_for_foo() {
220 let p = project().file("src/lib.rs", "").build();
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
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
lib.rs (https://gitlab.com/alx741/rust) Rust · 111 lines
entry.rs (https://gitlab.com/pranith/rust) Rust · 148 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
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
weak_lang_items.rs (https://gitlab.com/pranith/rust) Rust · 125 lines
plugins.rs (https://gitlab.com/frewsxcv/cargo) Rust · 439 lines
struct_point.rs (https://gitlab.com/jianglu/rust) Rust · 111 lines
builtin.rs (https://gitlab.com/alx741/rust) Rust · 242 lines
main.rs (https://gitlab.com/motorica-org/telemetry-hardware-teensy-3-rust) Rust · 167 lines
attributes-included.rs (https://gitlab.com/jianglu/rust) Rust · 161 lines
msp430-types.rs (https://gitlab.com/rust-lang/rust) Rust · 158 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
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
rustdoc.rs (https://gitlab.com/frewsxcv/cargo) Rust · 252 lines
inline_asm.rs (https://gitlab.com/jianglu/rust) Rust · 238 lines
custom_target.rs (https://gitlab.com/frewsxcv/cargo) Rust · 236 lines
float_math.rs (https://gitlab.com/jianglu/rust) Rust · 60 lines
allocator-dummy.rs (https://gitlab.com/alx741/rust) Rust · 55 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
missing_inline.rs (https://gitlab.com/rust-lang/rust) Rust · 170 lines
roman_numerals.rs (https://gitlab.com/pranith/rust) Rust · 71 lines
mod.rs (https://gitlab.com/pranith/rust) Rust · 57 lines
lib.rs (https://gitlab.com/pranith/rust) Rust · 59 lines
extern_mods.rs (https://gitlab.com/jianglu/rust) Rust · 244 lines
rsbegin.rs (https://gitlab.com/alx741/rust) Rust · 78 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
attr-stmt-expr-rpass.rs (https://gitlab.com/rust-lang/rust) Rust · 51 lines
powerpc-types.rs (https://gitlab.com/rust-lang/rust) Rust · 208 lines
issue-14421.rs (https://gitlab.com/alx741/rust) Rust · 35 lines
lower_intrinsics.rs (https://gitlab.com/rust-lang/rust) Rust · 78 lines
issue-35813-postfix-after-cast.rs (https://gitlab.com/rust-lang/rust) Rust · 171 lines
simd-wide-sum.rs (https://gitlab.com/rust-lang/rust) Rust · 54 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
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
simd.rs (https://gitlab.com/rust-lang/rust) Rust · 82 lines
lib.rs (https://gitlab.com/Fraser999/DataName) Rust · 127 lines
abi-x86-interrupt.rs (https://gitlab.com/jianglu/rust) Rust · 27 lines
lib.rs (https://gitlab.com/pranith/rust) Rust · 54 lines
global_asm_x2.rs (https://gitlab.com/jianglu/rust) Rust · 88 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
proc_macro_def.rs (https://gitlab.com/jianglu/rust) Rust · 44 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
return_self_not_must_use.rs (https://gitlab.com/rust-lang/rust) Rust · 58 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";
39 .arg(multi_opt(
40 CRATE_TYPE_ARG_NAME,
41 "CRATE-TYPE",
86 }
87 let crate_types = values(args, CRATE_TYPE_ARG_NAME);
88 compile_opts.target_rustc_crate_types = if crate_types.is_empty() {
92 .cli_unstable()
93 .fail_if_stable_opt(CRATE_TYPE_ARG_NAME, 10083)?;
94 Some(crate_types)
test_cargo_profiles.rs (https://gitlab.com/alx741/cargo) Rust · 107 lines
crate_with_invalid_spans.rs (https://gitlab.com/alx741/rust) Rust · 30 lines
issue-40001-plugin.rs (https://gitlab.com/rust-lang/rust) Rust · 57 lines
repr-transparent.rs (https://gitlab.com/rust-lang/rust) Rust · 169 lines
the_backend.rs (https://gitlab.com/jianglu/rust) Rust · 82 lines
64 .expect("in join_codegen_and_link: ongoing_codegen is not a Symbol");
65 for &crate_type in sess.opts.crate_types.iter() {
66 if crate_type != CrateType::CrateTypeExecutable {
67 sess.fatal(&format!("Crate type is {:?}", crate_type));
68 }
69 let output_name =
70 out_filename(sess, crate_type, &outputs, &*crate_name.as_str());
71 let mut out_file = ::std::fs::File::create(output_name).unwrap();