This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
5c99175a9e
rust
/
tests
/
run-make
/
suspicious-library
/
foo.rs
4 lines
42 B
Rust
Raw
Normal View
History
Unescape
Escape
Use new attribute syntax in python files in src/etc too (#13478)
2014-04-14 10:30:31 -05:00
#![
crate_type =
"
dylib
"
]
rustc: Prevent false positives in crate loading Previously, any library of the pattern `lib<name>-<hash>-<version>.so` was >considered a candidate (rightly so) for loading a crate. Sets are generated for each unique `<hash>`, and then from these sets a candidate is selected. If a set contained more than one element, then it immediately generated an error saying that multiple copies of the same dylib were found. This is incorrect because each candidate needs to be validated to actually contain a rust library (valid metadata). This commit alters the logic to filter each set of candidates for a hash to only libraries which are actually rust libraries. This means that if multiple false positives are found with the right name pattern, they're all ignored. Closes #13010
2014-03-19 10:47:59 -05:00
pub
fn
foo
(
)
{
}
Reference in New Issue
Copy Permalink