Skip to content

Conversation

@lilyball
Copy link
Contributor

@lilyball lilyball commented Sep 5, 2014

When running sudo make install, we only want to run the actual install
as root, the building of the documentation and the distribution folder
should happen as the non-root user.

Related to #13728.

When running `sudo make install`, we only want to run the actual install
as root, the building of the documentation and the distribution folder
should happen as the non-root user.

Related to rust-lang#13728.
@pnkfelix
Copy link
Contributor

pnkfelix commented Sep 5, 2014

(I will try to look at this, to determine whether it is preferable over the other solution previously discussed by team as noted by #13728 (comment) )

@pnkfelix pnkfelix self-assigned this Sep 5, 2014
@lilyball
Copy link
Contributor Author

lilyball commented Sep 5, 2014

@pnkfelix A benefit of this approach is ./configure && sudo make install will actually work. Simply building docs during make doesn't fix the issue where sudo make install may actually build Rust if it's out of date.

@alexcrichton
Copy link
Member

ping @pnkfelix, @kballard, is this ready to go?

@lilyball
Copy link
Contributor Author

AFAIK it's good. I don't know if @pnkfelix has looked at it yet.

bors added a commit that referenced this pull request Oct 17, 2014
When running `sudo make install`, we only want to run the actual install
as root, the building of the documentation and the distribution folder
should happen as the non-root user.

Related to #13728.
@bors bors closed this Oct 18, 2014
@bors bors merged commit 23c2661 into rust-lang:master Oct 18, 2014
@lilyball lilyball deleted the install_no_sudo branch December 20, 2014 01:34
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Apr 26, 2024
…ykril

Support hovering limits for adts

Fix rust-lang#17009

1. Currently, r-a supports limiting the number of struct fields displayed when hovering. This PR extends it to support enum variants and union fields. Since the display of these three (ADTs) is similar, this PR extends 'hover_show_structFields' to 'hover_show_adtFieldsOrVariants'.
2. This PR also resolved the problem that the layout of ADT was not restricted by display limitations when hovering on the Self type.
3. Additionally, this PR changes the default value of display limitations to `10` (instead of the original `null`), which helps users discover this feature.
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Apr 27, 2024
…ykril

Support hovering limits for adts

Fix rust-lang#17009

1. Currently, r-a supports limiting the number of struct fields displayed when hovering. This PR extends it to support enum variants and union fields. Since the display of these three (ADTs) is similar, this PR extends 'hover_show_structFields' to 'hover_show_adtFieldsOrVariants'.
2. This PR also resolved the problem that the layout of ADT was not restricted by display limitations when hovering on the Self type.
3. Additionally, this PR changes the default value of display limitations to `10` (instead of the original `null`), which helps users discover this feature.
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.

5 participants