You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…roto
Fix incorrect suggestion when `clone_on_ref_ptr` is triggered in macros
In the lint `clone_on_ref_ptr`, if the `span` is in a macro, don't expand it for suggestion.
Fixes: rust-lang#2076
changelog: none
r? @ebroto
Lets say you've got an extern module called 'X':
And files A, B, and C (lets say they define tests, or something), in a structure something like this:
If one was to define B and C like so to load module X:
b.rs:
c.rs:
And then include both in 'a.rs'
a.rs:
The compiler would throw an error such as:
x.rs:0:0: 0:1 error: library 'MY_LIBRARY_LINK_NAME' already added: can't specify link_args.
The text was updated successfully, but these errors were encountered: