Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

etc,rustdoc: few changes #11989

Merged
merged 3 commits into from
Feb 6, 2014
Merged

etc,rustdoc: few changes #11989

merged 3 commits into from
Feb 6, 2014

Conversation

adrientetar
Copy link
Contributor

Closes #11985
Closes #4533

@huonw, @alexcrichton

@@ -1,7 +1,14 @@
#!/usr/bin/env python
# xfail-license
# Copyright 2011-2013 The Rust Project Developers. See the COPYRIGHT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this should be changed to 2014

@alexcrichton
Copy link
Member

This looks fine to me, I'd want @brson's input to make sure we can just add a license to all these files.

@adrientetar
Copy link
Contributor Author

They are all from Rust contributors so I think they are covered by the project-wide license.

@flaper87
Copy link
Contributor

flaper87 commented Feb 4, 2014

IMHO, the license should be updated. From my experience, once one of the fiels is modified, the license should reflect the year it was modified in. IANAL, though!

@adrientetar
Copy link
Contributor Author

I don't follow this logic since it would mean that say in 2015 I could update the copyright claim year without changing the files contents but then what's the point of a claim by-years if it doesn't reflect the actual contents? --

@thestinger
Copy link
Contributor

@adridu59: There's no reason to consider each file an individual work. The relevance of the date is when the copyright on the work will expire, so giving it as a range doesn't have any meaning. I don't think there would be any issue with updating every single one to the current year without an initial date, but it would have to be run by Mozilla's lawyers.

@adrientetar
Copy link
Contributor Author

@thestinger Well, the GNU guidelines state otherwise.

@thestinger
Copy link
Contributor

From the link you gave:

Sometimes a program has an overall copyright notice that refers to the whole program. It might be in the README file, or it might be displayed when the program starts up. This copyright notice should mention the year of completion of the most recent major version; it can mention years of completion of previous major versions, but that is optional.

The per-file copyright notice can just be a summary of the copyright across the whole work. Rust is already just including a reference to the list of copyright holders (all contributors) and the real license file. Third party projects included in the tree need to be dealt with separately, but there's no reason for each Rust file to be an independent work. It's just needless complexity.

@brson
Copy link
Contributor

brson commented Feb 4, 2014

I feel comfortable adding the license header to these files - they've been around for a long time and are by contributors who are already contributing under the correct license, should have been converted long ago but weren't. There isn't much risk here.

Regarding dates, I've been told that the declared copyright date has very little legal weight, partly because it is completely obvious who wrote the code and when based on the project history. The advice I've been given is to just make a best effort and don't worry too much about whether a file says '2013', '2014' or '2013-2014'. Personally, I never bother to update dates when I edit a file.

@brson
Copy link
Contributor

brson commented Feb 4, 2014

@adridu59 If you are interested in other tasks along these lines, #4534 is about making licenseck.py check more files. In particular we don't check the license on the test suite.

@alexcrichton
Copy link
Member

I managed to seriously confuse bors, and I think that he'll pick up on this next, but to be extra sure, @adridu59 could you push a rebase on the current master?

@adrientetar
Copy link
Contributor Author

@alexcrichton I rebased about 50 minutes ago, shall I do it again?

@alexcrichton
Copy link
Member

Yeah just to get rid of the bors merge commit (sorry about that)

@adrientetar
Copy link
Contributor Author

@alexcrichton It's there!

@adrientetar
Copy link
Contributor Author

@alexcrichton np

@alexcrichton
Copy link
Member

I interrupted the last set of tests because I believe that they were timing out and #12054 should fix the timeout.

bors added a commit that referenced this pull request Feb 6, 2014
@bors bors closed this Feb 6, 2014
@bors bors merged commit 611c7a6 into rust-lang:master Feb 6, 2014
JohnTitor pushed a commit to JohnTitor/rust that referenced this pull request Aug 30, 2022
fix: Fix panics on GATs involving const generics

This workaround avoids constant crashing of rust analyzer when using GATs with const generics,
even when the const generics are only on the `impl` block.

The workaround treats GATs as non-existing if either itself or the parent has const generics and
removes relevant panicking code-paths.

Fixes rust-lang#11989, fixes rust-lang#12193
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The // SNAP feature of tidy is broken Fix xfail-license files
8 participants