Skip to content

Disallow 'extern' on main/start functions #7646

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from

Conversation

alexcrichton
Copy link
Member

Translation currently doesn't allow for this attribute to be present (not even extern "Rust" fn)

Closes #6451

@thestinger
Copy link
Contributor

Landing as part of #7657.

@thestinger thestinger closed this Jul 9, 2013
@thestinger thestinger reopened this Jul 9, 2013
@thestinger
Copy link
Contributor

@alexcrichton: has some test failures in run-pass, they just seem to need the error patterns updated

@thestinger thestinger closed this Jul 9, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Sep 28, 2021
Target directory cleanup

changelog: none

* .cargo/config now has `target-dir` specified so that it is inherited by child projects. The target directory needs to be shared with clippy_dev, but not necessarily at the project root. (cc rust-lang#7625)
* Uses `std::env::current_exe` (and its parent directories) whenever possible
* `CLIPPY_DRIVER_PATH` and `TARGET_LIBS` are no longer required from rustc bootstrap (but `HOST_LIBS` still is). These can be removed from the rustc side after merging.
* `CLIPPY_DOGFOOD` and the separate target directory are removed. This was originally added to mitigate rust-lang#7343.

r? `@flip1995`
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rustc asserts on extern fn main() {}
2 participants