This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-04-29 19:47:38 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
14e59bb317
rust
/
tests
/
ui
/
empty
/
empty-linkname.rs
5 lines
86 B
Rust
Raw
Normal View
History
Unescape
Escape
rustc: Stricter checking for #[link] attributes
2022-03-14 10:28:34 +00:00
#[
link(name =
"
"
)
]
//~ ERROR: link name must not be empty
Update tests for extern block linting
2020-09-01 21:12:52 +00:00
extern
"
C
"
{
}
rustc: Remove a number of mutable fields in cstore This commit started by moving methods from `CrateStore` to queries, but it ended up necessitating some deeper refactorings to move more items in general to queries. Before this commit the *resolver* would walk over the AST and process foreign modules (`extern { .. }` blocks) and collect `#[link]` annotations. It would then also process the command line `-l` directives and such. This information was then stored as precalculated lists in the `CrateStore` object for iterating over later. After this, commit, however, this pass no longer happens during resolution but now instead happens through queries. A query for the linked libraries of a crate will crawl the crate for `extern` blocks and then process the linkage annotations at that time.
2017-08-30 21:48:57 +00:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink