This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Activity
cc54612ac3
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 13:28:34 +03:00
#[
link(name =
"
"
)
]
//~ ERROR: link name must not be empty
Update tests for extern block linting
2020-09-01 17:12:52 -04: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 14:48:57 -07:00
fn
main
(
)
{
}
Copy permalink