Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upstart / generated C main is the wrong type #20064
Comments
thestinger
added
I-wrong
I-nominated
labels
Dec 20, 2014
This comment has been minimized.
This comment has been minimized.
|
I'd prefer any lang items to use rust types and for the compiler or libs to generate any potentially platform-specific code necessary to glue things together. |
This comment has been minimized.
This comment has been minimized.
|
If we have compiler glue anyway, I'm not so sure about the return type, |
brson
added this to the 1.0 beta milestone
Jan 15, 2015
brson
added
the
P-medium
label
Jan 15, 2015
This comment has been minimized.
This comment has been minimized.
|
Let's just gate it until we can think harder. |
brson
assigned
alexcrichton
Jan 15, 2015
alexcrichton
removed
the
I-nominated
label
Jan 15, 2015
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jan 16, 2015
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jan 16, 2015
alexcrichton
referenced this issue
Jan 16, 2015
Merged
syntax: Feature gate #[start] and #[main] #21257
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jan 16, 2015
bors
added a commit
that referenced
this issue
Jan 19, 2015
bors
added a commit
that referenced
this issue
Jan 20, 2015
This comment has been minimized.
This comment has been minimized.
|
Nominating for removal from milestone, this is now feature gated. |
alexcrichton
added
the
I-nominated
label
Jan 20, 2015
This comment has been minimized.
This comment has been minimized.
|
Still P-high, but not 1.0 anymore since its gated. |
pnkfelix
removed this from the 1.0 beta milestone
Jan 22, 2015
pnkfelix
removed
the
I-nominated
label
Jan 22, 2015
alexcrichton
removed their assignment
Apr 2, 2015
This comment has been minimized.
This comment has been minimized.
|
This issue has been superceded by #29633, I will make note of this specific concern in that thread, since it does not seem to be mentioned there. |
comex commentedDec 20, 2014
fn lang_start(main: *const u8, argc: int, argv: *const *const u8) -> int {This is the signature both required for
startfns and given to the C main wrapper function generated bycreate_entry_fninlibrustc_trans/trans/base.rs. But it's clearly the wrong type:argcand the return value should bec_intori32, notint.